aboutsummaryrefslogtreecommitdiff
path: root/hmp.c
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dgilbert@redhat.com>2017-10-20 10:05:54 +0100
committerJuan Quintela <quintela@redhat.com>2017-10-23 18:03:31 +0200
commit94ae12cba4f18253e3cf5f9a70335e22870053b4 (patch)
tree8fb298a79f6091d344c5df73e4aa81be500df3a1 /hmp.c
parent89cfc02cb6e3fdaf8ae246493ea51e75be2818c1 (diff)
downloadqemu-94ae12cba4f18253e3cf5f9a70335e22870053b4.zip
qemu-94ae12cba4f18253e3cf5f9a70335e22870053b4.tar.gz
qemu-94ae12cba4f18253e3cf5f9a70335e22870053b4.tar.bz2
migrate: HMP migate_continue
HMP equivalent to the just added migrate-continue Unpause a migrate paused at a given state. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r--hmp.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/hmp.c b/hmp.c
index ec61329..41fcce6 100644
--- a/hmp.c
+++ b/hmp.c
@@ -1495,6 +1495,19 @@ void hmp_migrate_cancel(Monitor *mon, const QDict *qdict)
qmp_migrate_cancel(NULL);
}
+void hmp_migrate_continue(Monitor *mon, const QDict *qdict)
+{
+ Error *err = NULL;
+ const char *state = qdict_get_str(qdict, "state");
+ int val = qapi_enum_parse(&MigrationStatus_lookup, state, -1, &err);
+
+ if (val >= 0) {
+ qmp_migrate_continue(val, &err);
+ }
+
+ hmp_handle_error(mon, &err);
+}
+
void hmp_migrate_incoming(Monitor *mon, const QDict *qdict)
{
Error *err = NULL;