qemu-patch-raspberry4/hw/vfio
Alex Williamson f5793fd9e1 vfio/pci-quirks: Only quirk to size of PCI config space
For quirks that support the full PCIe extended config space, limit the
quirk to only the size of config space available through vfio.  This
allows host systems with broken MMCONFIG regions to still make use of
these quirks without generating bad address faults trying to access
beyond the end of config space exposed through vfio.  This may expose
direct access to the mirror of extended config space, only trapping
the sub-range of standard config space, but allowing this makes the
quirk, and thus the device, functional.  We expect that only device
specific accesses make use of the mirror, not general extended PCI
capability accesses, so any virtualization in this space is likely
unnecessary anyway, and the device is still IOMMU isolated, so it
should only be able to hurt itself through any bogus configurations
enabled by this space.

Link: https://www.redhat.com/archives/vfio-users/2015-November/msg00192.html
Reported-by: Ronnie Swanink <ronnie@ronnieswanink.nl>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2016-01-19 11:33:41 -07:00
..
calxeda-xgmac.c hw/vfio/platform: calxeda xgmac device 2015-06-09 08:17:17 -06:00
common.c vfio: Allow hotplug of containers onto existing guest IOMMU mappings 2015-10-05 12:39:47 -06:00
Makefile.objs vfio/pci: Split quirks to a separate file 2015-09-23 13:04:45 -06:00
pci-quirks.c vfio/pci-quirks: Only quirk to size of PCI config space 2016-01-19 11:33:41 -07:00
pci.c vfio: Use g_new() & friends where that makes obvious sense 2015-11-10 12:11:08 -07:00
pci.h vfio/pci: Add emulated PCI IDs 2015-09-23 13:04:49 -06:00
platform.c vfio: Use g_new() & friends where that makes obvious sense 2015-11-10 12:11:08 -07:00