[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v7 21/23] hmp/migration: add migrate_recover command
From: |
Peter Xu |
Subject: |
[Qemu-devel] [PATCH v7 21/23] hmp/migration: add migrate_recover command |
Date: |
Fri, 9 Mar 2018 17:15:33 +0800 |
Sister command to migrate-recover in QMP.
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Peter Xu <address@hidden>
---
hmp-commands.hx | 13 +++++++++++++
hmp.c | 10 ++++++++++
hmp.h | 1 +
3 files changed, 24 insertions(+)
diff --git a/hmp-commands.hx b/hmp-commands.hx
index defba474d6..6758c1f6ed 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -955,7 +955,20 @@ STEXI
@findex migrate_incoming
Continue an incoming migration using the @var{uri} (that has the same syntax
as the -incoming option).
+ETEXI
+ {
+ .name = "migrate_recover",
+ .args_type = "uri:s",
+ .params = "uri",
+ .help = "Continue a paused incoming postcopy migration",
+ .cmd = hmp_migrate_recover,
+ },
+
+STEXI
address@hidden migrate_recover @var{uri}
address@hidden migrate_recover
+Continue a paused incoming postcopy migration using the @var{uri}.
ETEXI
{
diff --git a/hmp.c b/hmp.c
index 4ac4fbcb74..0e189e157b 100644
--- a/hmp.c
+++ b/hmp.c
@@ -1502,6 +1502,16 @@ void hmp_migrate_incoming(Monitor *mon, const QDict
*qdict)
hmp_handle_error(mon, &err);
}
+void hmp_migrate_recover(Monitor *mon, const QDict *qdict)
+{
+ Error *err = NULL;
+ const char *uri = qdict_get_str(qdict, "uri");
+
+ qmp_migrate_recover(uri, &err);
+
+ hmp_handle_error(mon, &err);
+}
+
/* Kept for backwards compatibility */
void hmp_migrate_set_downtime(Monitor *mon, const QDict *qdict)
{
diff --git a/hmp.h b/hmp.h
index b89733876d..5cf02a169a 100644
--- a/hmp.h
+++ b/hmp.h
@@ -68,6 +68,7 @@ void hmp_info_snapshots(Monitor *mon, const QDict *qdict);
void hmp_migrate_cancel(Monitor *mon, const QDict *qdict);
void hmp_migrate_continue(Monitor *mon, const QDict *qdict);
void hmp_migrate_incoming(Monitor *mon, const QDict *qdict);
+void hmp_migrate_recover(Monitor *mon, const QDict *qdict);
void hmp_migrate_set_downtime(Monitor *mon, const QDict *qdict);
void hmp_migrate_set_speed(Monitor *mon, const QDict *qdict);
void hmp_migrate_set_capability(Monitor *mon, const QDict *qdict);
--
2.14.3
- [Qemu-devel] [PATCH v7 12/23] migration: new message MIG_RP_MSG_RECV_BITMAP, (continued)
- [Qemu-devel] [PATCH v7 12/23] migration: new message MIG_RP_MSG_RECV_BITMAP, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 13/23] migration: new cmd MIG_CMD_POSTCOPY_RESUME, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 15/23] migration: introduce SaveVMHandlers.resume_prepare, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 16/23] migration: synchronize dirty bitmap for resume, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 17/23] migration: setup ramstate for resume, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 18/23] migration: final handshake for the resume, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 19/23] migration: init dst in migration_object_init too, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 21/23] hmp/migration: add migrate_recover command,
Peter Xu <=
- [Qemu-devel] [PATCH v7 20/23] qmp/migration: new command migrate-recover, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 22/23] migration/qmp: add command migrate-pause, Peter Xu, 2018/03/09
- [Qemu-devel] [PATCH v7 23/23] migration/hmp: add migrate_pause command, Peter Xu, 2018/03/09
- Re: [Qemu-devel] [PATCH v7 00/23] Migration: postcopy failure recovery, no-reply, 2018/03/09
- Re: [Qemu-devel] [PATCH v7 00/23] Migration: postcopy failure recovery, no-reply, 2018/03/09
- Re: [Qemu-devel] [PATCH v7 00/23] Migration: postcopy failure recovery, no-reply, 2018/03/09
- Re: [Qemu-devel] [PATCH v7 00/23] Migration: postcopy failure recovery, no-reply, 2018/03/09