summary refs log tree commit diff stats
path: root/hw/vfio/common.c
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2025-03-26 08:50:46 +0100
committerCédric Le Goater <clg@redhat.com>2025-04-25 09:01:37 +0200
commitacea0f0fafcf89f374fd7a69a4cd2c91d6d7d68a (patch)
tree24e2194df6032d9c737e72f455c3c8b6caa92092 /hw/vfio/common.c
parentd5e8e6195bcd37292657b5f69d7633b51670caf1 (diff)
downloadfocaccia-qemu-acea0f0fafcf89f374fd7a69a4cd2c91d6d7d68a.tar.gz
focaccia-qemu-acea0f0fafcf89f374fd7a69a4cd2c91d6d7d68a.zip
vfio: Move vfio_mig_active() into migration.c
vfio_mig_active() is part of the VFIO migration API. Move the
definitions where VFIO migration is implemented.

Reviewed-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Link: https://lore.kernel.org/qemu-devel/20250318095415.670319-2-clg@redhat.com
Link: https://lore.kernel.org/qemu-devel/20250326075122.1299361-2-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/common.c')
-rw-r--r--hw/vfio/common.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 5ef14931cd..2ea4e12c90 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -65,22 +65,6 @@ int vfio_kvm_device_fd = -1;
  * Device state interfaces
  */
 
-bool vfio_mig_active(void)
-{
-    VFIODevice *vbasedev;
-
-    if (QLIST_EMPTY(&vfio_device_list)) {
-        return false;
-    }
-
-    QLIST_FOREACH(vbasedev, &vfio_device_list, global_next) {
-        if (vbasedev->migration_blocker) {
-            return false;
-        }
-    }
-    return true;
-}
-
 static Error *multiple_devices_migration_blocker;
 
 /*