summary refs log tree commit diff stats
path: root/include/migration/misc.h
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-10-27 04:22:57 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2020-12-10 12:15:14 -0500
commite69d50d621ccc1ab8b1048a3075ad944afebfed5 (patch)
treeb5051df8b4510f3d0392e339759100e90106f5f4 /include/migration/misc.h
parentcca686b44aa1315df4cda4dee56ca601050fab71 (diff)
downloadfocaccia-qemu-e69d50d621ccc1ab8b1048a3075ad944afebfed5.tar.gz
focaccia-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.h1
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);