Marcel Apfelbaum
fc67208f22
hw/pci-bridge: fix pcie root port's IO hints capability
...
The gen_pcie_root_port mem-reserve and pref32-reserve properties are
defined as size (so uint64_t), but passed as uint32_t when building
the 'IO hints' vendor specific capability.
Passing 4G (or more) gets truncated and passed as a zero reservation.
Is not a huge issue since the guest firmware will always compare the
hints with the default value and take the maximum.
Fix it by passing the values as uint64_t and failing to init the
gen_pcie_root_port id invalid values are used.
Signed-off-by: Marcel Apfelbaum <marcel@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2018-02-13 18:25:48 +02:00
..
2018-01-29 14:22:50 -05:00
2016-10-04 13:28:07 +01:00
2018-01-26 11:09:09 +01:00
2018-02-02 08:19:25 +01:00
2017-12-19 09:25:28 +00:00
2017-07-17 13:36:08 +01:00
2016-10-04 13:28:09 +01:00
2017-12-18 17:07:02 +03:00
2017-01-27 18:07:59 +01:00
2017-12-18 17:07:02 +03:00
2017-01-24 23:26:52 +03:00
2017-02-28 17:10:00 +00:00
2018-02-02 08:19:25 +01:00
2018-01-18 21:52:38 +02:00
2018-01-19 16:04:57 -05:00
2017-06-23 11:51:50 +02:00
2018-01-26 11:09:09 +01:00
2016-05-18 15:04:27 +03:00
2017-04-26 12:41:55 +10:00
2017-12-21 09:30:32 +01:00
2013-04-08 18:13:10 +02:00
2016-10-04 10:00:25 +02:00
2017-02-16 14:06:56 +01:00
2018-01-19 11:18:51 -02:00
2017-10-27 16:04:28 +02:00
2017-12-18 17:07:02 +03:00
2018-01-11 13:25:38 +00:00
2017-10-15 05:54:40 +03:00
2018-02-13 18:25:48 +02:00
2018-01-24 19:19:50 +00:00
2018-01-24 19:19:51 +00:00
2018-01-29 14:24:55 +11:00
2017-12-14 17:56:54 +01:00
2018-01-26 07:58:34 +01:00
2018-01-25 11:45:30 +00:00
2017-01-27 18:07:59 +01:00
2017-12-05 19:13:45 +02:00
2018-01-09 21:48:20 +00:00
2017-12-13 17:59:26 +00:00
2017-12-18 17:07:02 +03:00
2016-07-12 16:19:16 +02:00
2017-12-18 17:07:02 +03:00
2016-07-12 16:20:46 +02:00
2017-07-14 12:04:41 +02:00
2018-02-08 21:06:40 +02:00
2017-09-04 15:21:54 +01:00
2017-12-05 19:13:45 +02:00
2017-12-18 21:26:19 -08:00
2018-01-19 11:18:51 -02:00
2017-01-27 18:07:59 +01:00
2018-02-08 21:06:41 +02:00
2017-04-24 12:32:12 +01:00
2017-09-04 15:21:53 +01:00
2016-07-12 16:20:46 +02:00
2016-07-12 16:20:46 +02:00
2016-11-15 17:20:37 +02:00
2017-06-01 18:49:22 +02:00
2017-01-27 15:23:29 -08:00
2014-10-23 16:41:25 +02:00
2017-02-21 23:47:40 +00:00
2017-09-08 16:15:17 +03:00
2016-07-12 16:20:46 +02:00
2017-10-16 21:09:15 +03:00
2016-07-12 16:20:46 +02:00
2016-07-12 16:20:46 +02:00
2017-07-11 17:44:27 +03:00
2018-02-05 13:54:38 +01:00
2014-02-14 21:12:04 +01:00
2018-02-06 11:08:26 -07:00
2013-04-08 18:13:10 +02:00
2017-01-27 15:20:21 +00:00
2017-12-18 17:07:02 +03:00
2016-07-12 16:20:46 +02:00
2016-09-27 17:03:34 -03:00
2018-01-26 07:15:08 +01:00