[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 34/41] hmp/migration: add migrate_recover command
From: |
Juan Quintela |
Subject: |
[Qemu-devel] [PULL 34/41] hmp/migration: add migrate_recover command |
Date: |
Wed, 9 May 2018 13:23:59 +0200 |
From: Peter Xu <address@hidden>
Sister command to migrate-recover in QMP.
Reviewed-by: Dr. David Alan Gilbert <address@hidden>
Signed-off-by: Peter Xu <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Juan Quintela <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 078ded20cd..8facba7b4d 100644
--- a/hmp-commands.hx
+++ b/hmp-commands.hx
@@ -957,7 +957,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 59d5341590..4ac2126969 100644
--- a/hmp.c
+++ b/hmp.c
@@ -1517,6 +1517,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 4e2ec375b0..b6b56c8161 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.17.0
- [Qemu-devel] [PULL 22/41] migration: new state "postcopy-recover", (continued)
- [Qemu-devel] [PULL 22/41] migration: new state "postcopy-recover", Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 26/41] migration: new cmd MIG_CMD_POSTCOPY_RESUME, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 25/41] migration: new message MIG_RP_MSG_RECV_BITMAP, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 28/41] migration: introduce SaveVMHandlers.resume_prepare, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 29/41] migration: synchronize dirty bitmap for resume, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 30/41] migration: setup ramstate for resume, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 27/41] migration: new message MIG_RP_MSG_RESUME_ACK, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 32/41] migration: init dst in migration_object_init too, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 31/41] migration: final handshake for the resume, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 34/41] hmp/migration: add migrate_recover command,
Juan Quintela <=
- [Qemu-devel] [PULL 35/41] migration: introduce lock for to_dst_file, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 33/41] qmp/migration: new command migrate-recover, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 36/41] migration/qmp: add command migrate-pause, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 37/41] migration/hmp: add migrate_pause command, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 39/41] migration: update index field when delete or qsort RDMALocalBlock, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 40/41] migration: Textual fixups for blocktime, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 41/41] Migration+TLS: Fix crash due to double cleanup, Juan Quintela, 2018/05/09
- [Qemu-devel] [PULL 38/41] migration: update docs, Juan Quintela, 2018/05/09