Message ID | 161550626026.21070.14769998235485704661.stgit@gimli.home (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [PULL,01/10] vfio: Fix vfio_listener_log_sync function name typo | expand |
diff --git a/hw/vfio/migration.c b/hw/vfio/migration.c index 003786f3cd9a..eafb778947c3 100644 --- a/hw/vfio/migration.c +++ b/hw/vfio/migration.c @@ -862,7 +862,8 @@ static int vfio_migration_init(VFIODevice *vbasedev, register_savevm_live(id, VMSTATE_INSTANCE_ID_ANY, 1, &savevm_vfio_handlers, vbasedev); - migration->vm_state = qemu_add_vm_change_state_handler(vfio_vmstate_change, + migration->vm_state = qdev_add_vm_change_state_handler(vbasedev->dev, + vfio_vmstate_change, vbasedev); migration->migration_state.notify = vfio_migration_state_notifier; add_migration_state_change_notifier(&migration->migration_state);