mirror of
https://github.com/qemu/qemu.git
synced 2024-11-30 07:13:38 +08:00
migration: fix handling for --only-migratable
MigrateState object is not ready at that time, so we'll get an
assertion. Use qemu_global_option() instead.
Reported-by: Eduardo Habkost <ehabkost@redhat.com>
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Fixes: 3df663e
("migration: move only_migratable to MigrationState")
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1499242883-2184-2-git-send-email-peterx@redhat.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
This commit is contained in:
parent
6b06e3e49e
commit
b605c47b57
@ -53,7 +53,6 @@ bool migration_has_finished(MigrationState *);
|
||||
bool migration_has_failed(MigrationState *);
|
||||
/* ...and after the device transmission */
|
||||
bool migration_in_postcopy_after_devices(MigrationState *);
|
||||
void migration_only_migratable_set(void);
|
||||
void migration_global_dump(Monitor *mon);
|
||||
|
||||
#endif
|
||||
|
@ -128,11 +128,6 @@ MigrationState *migrate_get_current(void)
|
||||
return current_migration;
|
||||
}
|
||||
|
||||
void migration_only_migratable_set(void)
|
||||
{
|
||||
migrate_get_current()->only_migratable = true;
|
||||
}
|
||||
|
||||
MigrationIncomingState *migration_incoming_get_current(void)
|
||||
{
|
||||
static bool once;
|
||||
|
Loading…
Reference in New Issue
Block a user