qemu-e2k/include/hw/vfio
Alex Williamson 7da624e26a vfio: Test realized when using VFIOGroup.device_list iterator
VFIOGroup.device_list is effectively our reference tracking mechanism
such that we can teardown a group when all of the device references
are removed.  However, we also use this list from our machine reset
handler for processing resets that affect multiple devices.  Generally
device removals are fully processed (exitfn + finalize) when this
reset handler is invoked, however if the removal is triggered via
another reset handler (piix4_reset->acpi_pcihp_reset) then the device
exitfn may run, but not finalize.  In this case we hit asserts when
we start trying to access PCI helpers since much of the PCI state of
the device is released.  To resolve this, add a pointer to the Object
DeviceState in our common base-device and skip non-realized devices
as we iterate.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2017-07-10 10:39:43 -06:00
..
vfio-amd-xgbe.h hw/vfio/platform: amd-xgbe device 2016-02-19 09:42:29 -07:00
vfio-calxeda-xgmac.h hw/vfio/platform: calxeda xgmac device 2015-06-09 08:17:17 -06:00
vfio-common.h vfio: Test realized when using VFIOGroup.device_list iterator 2017-07-10 10:39:43 -06:00
vfio-platform.h Clean up decorations and whitespace around header guards 2016-07-12 16:20:46 +02:00
vfio.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00