Peter Xu <[email protected]> wrote: > MigrateState object is not ready at that time, so we'll get an > assertion. Use qemu_global_option() instead. > > Reported-by: Eduardo Habkost <[email protected]> > Suggested-by: Eduardo Habkost <[email protected]> > Fixes: 3df663e ("migration: move only_migratable to MigrationState") > Signed-off-by: Peter Xu <[email protected]>
Reviewed-by: Juan Quintela <[email protected]> > 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.
