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
2017-12-19 09:25:28 +00:00
2016-10-04 13:28:09 +01:00
2017-01-27 18:07:59 +01:00
2017-01-24 23:26:52 +03:00
2017-06-23 11:51:50 +02:00
2016-05-18 15:04:27 +03:00
2013-04-08 18:13:10 +02:00
2018-01-19 11:18:51 -02:00
2017-10-15 05:54:40 +03:00
2018-01-24 19:19:51 +00:00
2017-12-14 17:56:54 +01:00
2017-01-27 18:07:59 +01:00
2017-12-05 19:13:45 +02:00
2017-01-27 18:07:59 +01:00
2017-04-24 12:32:12 +01:00
2017-06-01 18:49:22 +02:00
2014-10-23 16:41:25 +02:00
2017-09-08 16:15:17 +03:00
2013-04-08 18:13:10 +02:00