qemu-e2k/hw/pci
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
..
Makefile.objs
msi.c
msix.c
pci_bridge.c hw/pci-bridge: fix pcie root port's IO hints capability 2018-02-13 18:25:48 +02:00
pci_host.c
pci-stub.c
pci.c pci: removed the is_express field since a uniform interface was inserted 2018-02-08 21:06:41 +02:00
pcie_aer.c pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
pcie_host.c PCI: PCIe access should always be little endian 2017-10-15 05:54:42 +03:00
pcie_port.c
pcie.c pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +02:00
shpc.c pci/shpc: Move function to generic header file 2018-01-18 21:52:38 +02:00
slotid_cap.c
trace-events