vfio/migration: Store VFIO migration flags in VFIOMigration
commit6cd1fe11598a304b8d22203365f4fc39172ec9b2
authorAvihai Horon <avihaih@nvidia.com>
Wed, 21 Jun 2023 11:11:59 +0000 (21 14:11 +0300)
committerCédric Le Goater <clg@redhat.com>
Fri, 30 Jun 2023 04:02:51 +0000 (30 06:02 +0200)
tree58e0185da3ad58398950620b3743f0a04a4a9a98
parentcf53efbbda2e45aad2f54b797f2ebfa001aad629
vfio/migration: Store VFIO migration flags in VFIOMigration

VFIO migration flags are queried once in vfio_migration_init(). Store
them in VFIOMigration so they can be used later to check the device's
migration capabilities without re-querying them.

This will be used in the next patch to check if the device supports
precopy migration.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Tested-by: YangHang Liu <yanghliu@redhat.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/migration.c
include/hw/vfio/vfio-common.h