qemu-patch-raspberry4/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 pci-hotplug-old: Has been dead for five major releases, bury 2015-03-01 12:37:54 +01:00
msi.c pci: Replace pci_add_capability2() with pci_add_capability() 2017-07-03 22:29:49 +03:00
msix.c msix: use DIV_ROUND_UP 2017-08-31 12:29:07 +02:00
pci-stub.c kvm: remove hard dependency on pci 2017-08-30 18:23:25 +02:00
pci.c pci: removed the is_express field since a uniform interface was inserted 2018-02-08 21:06:41 +02:00
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: Clean up includes 2016-01-29 15:07:24 +00:00
pcie.c pci: Eliminate redundant PCIDevice::bus pointer 2017-12-05 19:13:45 +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 pci: Clean up includes 2016-01-29 15:07:24 +00:00
shpc.c pci/shpc: Move function to generic header file 2018-01-18 21:52:38 +02:00
slotid_cap.c pci: Convert shpc_init() to Error 2017-07-03 22:29:49 +03:00
trace-events trace-events: fix code style: %# -> 0x% 2017-08-01 12:13:07 +01:00