diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c index ff6b45de6b557eeab37fe11bfcef8eefba9a90db..e69b5f2e42681b6086e915e03d2e6019db91b77c 100644 --- a/hw/vfio/migration.c +++ b/hw/vfio/migration.c @@ -805,6 +805,8 @@ static int vfio_migration_init(VFIODevice *vbasedev, } vbasedev->migration = g_new0(VFIOMigration, 1); + vbasedev->migration->device_state = VFIO_DEVICE_STATE_RUNNING; + vbasedev->migration->vm_running = runstate_is_running(); ret = vfio_region_setup(obj, vbasedev, &vbasedev->migration->region, info->index, "migration");