diff options
author | Paolo Bonzini | 2020-10-27 09:22:57 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-10 18:15:14 +0100 |
commit | e69d50d621ccc1ab8b1048a3075ad944afebfed5 (patch) | |
tree | b5051df8b4510f3d0392e339759100e90106f5f4 /include/migration/misc.h | |
parent | vl: move -global check earlier (diff) | |
download | qemu-e69d50d621ccc1ab8b1048a3075ad944afebfed5.tar.gz qemu-e69d50d621ccc1ab8b1048a3075ad944afebfed5.tar.xz qemu-e69d50d621ccc1ab8b1048a3075ad944afebfed5.zip |
migration, vl: start migration via qmp_migrate_incoming
Make qemu_start_incoming_migration local to migration/migration.c.
By using the runstate instead of a separate flag, vl need not do
anything to setup deferred incoming migration.
qmp_migrate_incoming also does not need the deferred_incoming flag
anymore, because "-incoming PROTOCOL" will clear the "once" flag
before the main loop starts. Therefore, later invocations of
the migrate-incoming command will fail with the existing
"The incoming migration has already been started" error message.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/migration/misc.h')
-rw-r--r-- | include/migration/misc.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/migration/misc.h b/include/migration/misc.h index 34e7d75713..bccc1b6b44 100644 --- a/include/migration/misc.h +++ b/include/migration/misc.h @@ -58,7 +58,6 @@ void dump_vmstate_json_to_file(FILE *out_fp); /* migration/migration.c */ void migration_object_init(void); void migration_shutdown(void); -void qemu_start_incoming_migration(const char *uri, Error **errp); bool migration_is_idle(void); bool migration_is_active(MigrationState *); void add_migration_state_change_notifier(Notifier *notify); |