On Tue, Feb 27, 2024 at 07:03:29PM +0100, Cédric Le Goater wrote: > @@ -3469,9 +3479,15 @@ static void *bg_migration_thread(void *opaque) > > bql_lock(); > qemu_savevm_state_header(s->to_dst_file); > - qemu_savevm_state_setup(s->to_dst_file); > + ret = qemu_savevm_state_setup(s->to_dst_file, &local_err); > bql_unlock(); > > + if (ret) { > + migrate_set_error(s, local_err); > + error_free(local_err); > + goto fail; > + }
This chunk may need to be moved above bql unlock. > + > qemu_savevm_wait_unplug(s, MIGRATION_STATUS_SETUP, > MIGRATION_STATUS_ACTIVE); > -- Peter Xu