]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hmp.c
COLO: Add 'x-colo-lost-heartbeat' command to trigger failover
[mirror_qemu.git] / hmp.c
diff --git a/hmp.c b/hmp.c
index f2b831a4a39eb8c8addf591587006626fce88717..00af4230bff59aa47c7c602010f68870403a0826 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -1451,6 +1451,14 @@ void hmp_migrate_start_postcopy(Monitor *mon, const QDict *qdict)
     hmp_handle_error(mon, &err);
 }
 
+void hmp_x_colo_lost_heartbeat(Monitor *mon, const QDict *qdict)
+{
+    Error *err = NULL;
+
+    qmp_x_colo_lost_heartbeat(&err);
+    hmp_handle_error(mon, &err);
+}
+
 void hmp_set_password(Monitor *mon, const QDict *qdict)
 {
     const char *protocol  = qdict_get_str(qdict, "protocol");