vfio: Get migration capability flags for container
commit87ea529c5020124440cd892a038dffe6057fd613
authorKirti Wankhede <kwankhede@nvidia.com>
Mon, 26 Oct 2020 09:36:21 +0000 (26 15:06 +0530)
committerAlex Williamson <alex.williamson@redhat.com>
Sun, 1 Nov 2020 19:30:50 +0000 (1 12:30 -0700)
tree31dc479983a101aa36978d63ec9d08854e7a38e0
parent74ee653799f93dfb119de9a248bdf0a85a68904f
vfio: Get migration capability flags for container

Added helper functions to get IOMMU info capability chain.
Added function to get migration capability information from that
capability chain for IOMMU container.

Similar change was proposed earlier:
https://lists.gnu.org/archive/html/qemu-devel/2018-05/msg03759.html

Disable migration for devices if IOMMU module doesn't support migration
capability.

Signed-off-by: Kirti Wankhede <kwankhede@nvidia.com>
Cc: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Cc: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c
hw/vfio/migration.c
include/hw/vfio/vfio-common.h