vfio: Make vfio-pci device migration capable
authorKirti Wankhede <kwankhede@nvidia.com>
Mon, 26 Oct 2020 09:36:26 +0000 (15:06 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Sun, 1 Nov 2020 19:30:51 +0000 (12:30 -0700)
commita22651053b59b7d40bf921e8819ea696a3b0a9d2
treed81ad15bfed0bdc2d34ea8966355629276e57444
parent9e7b0442f23a92c27204d6f81a954f30f3126d33
vfio: Make vfio-pci device migration capable

If the device is not a failover primary device, call
vfio_migration_probe() and vfio_migration_finalize() to enable
migration support for those devices that support it respectively to
tear it down again.
Removed migration blocker from VFIO PCI device specific structure and use
migration blocker from generic structure of  VFIO device.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Reviewed-by: Neo Jia <cjia@nvidia.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/pci.c
hw/vfio/pci.h