Peter Xu <pet...@redhat.com> wrote: > MigrateState object is not ready at that time, so we'll get an > assertion. Use qemu_global_option() instead. > > Reported-by: Eduardo Habkost <ehabk...@redhat.com> > Suggested-by: Eduardo Habkost <ehabk...@redhat.com> > Fixes: 3df663e ("migration: move only_migratable to MigrationState") > Signed-off-by: Peter Xu <pet...@redhat.com>
Reviewed-by: Juan Quintela <quint...@redhat.com> > bool migration_in_postcopy_after_devices(MigrationState *); > -void migration_only_migratable_set(void); > void migration_global_dump(Monitor *mon); Nice, one less exported function. > - migration_only_migratable_set(); > + qemu_global_option("migration.only-migratable=true"); > break; > case QEMU_OPTION_nodefaults: > has_defaults = 0; aha, that is a much, much nicer way to set functions. Later, Juan.