qemu-patch-raspberry4/hw/vfio
Kirti Wankhede 7c2f5f75f9 vfio: Register SaveVMHandlers for VFIO device
Define flags to be used as delimiter in migration stream for VFIO devices.
Added .save_setup and .save_cleanup functions. Map & unmap migration
region from these functions at source during saving or pre-copy phase.

Set VFIO device state depending on VM's state. During live migration, VM is
running when .save_setup is called, _SAVING | _RUNNING state is set for VFIO
device. During save-restore, VM is paused, _SAVING state is set for VFIO device.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Neo Jia <cjia@nvidia.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Yan Zhao <yan.y.zhao@intel.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2020-11-01 12:30:50 -07:00
..
amd-xgbe.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ap.c Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
calxeda-xgmac.c Include migration/vmstate.h less 2019-08-16 13:31:52 +02:00
ccw.c vfio-ccw: plug memory leak while getting region info 2020-10-02 13:52:49 +02:00
common.c vfio: Add function to unmap VFIO region 2020-11-01 12:30:50 -07:00
display.c vfio: fix use-after-free in display 2020-07-16 10:20:12 +02:00
igd.c hw/vfio: Move the IGD quirk code to a separate file 2020-02-06 11:55:42 -07:00
Kconfig hw/vfio: Move the IGD quirk code to a separate file 2020-02-06 11:55:42 -07:00
meson.build vfio: Add migration region initialization and finalize function 2020-11-01 12:30:50 -07:00
migration.c vfio: Register SaveVMHandlers for VFIO device 2020-11-01 12:30:50 -07:00
pci-quirks.c meson: infrastructure for building emulators 2020-08-21 06:30:17 -04:00
pci.c vfio: Add save and load functions for VFIO PCI devices 2020-11-01 12:30:50 -07:00
pci.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 2020-09-18 14:12:32 -04:00
platform.c vfio/platform: Remove dead assignment in vfio_intp_interrupt() 2020-09-01 12:02:48 +02:00
spapr.c vfio/spapr: Fix page size calculation 2020-04-07 08:55:10 +10:00
trace-events vfio: Register SaveVMHandlers for VFIO device 2020-11-01 12:30:50 -07:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00