]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
libxl/libxl_qmp.c: Update COLO query replication status API
authorZhang Chen <zhangchen.fnst@cn.fujitsu.com>
Fri, 17 Mar 2017 08:42:32 +0000 (16:42 +0800)
committerWei Liu <wei.liu2@citrix.com>
Mon, 20 Mar 2017 15:27:53 +0000 (15:27 +0000)
The QEMU community has asked us to change QMP command
xen-get-replication-error to query-xen-replication-status. Modify Xen
side to use the new name.

Signed-off-by: Zhang Chen <zhangchen.fnst@cn.fujitsu.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_colo_restore.c
tools/libxl/libxl_colo_save.c
tools/libxl/libxl_internal.h
tools/libxl/libxl_qmp.c

index 7178ae9b84f0cac8bf42e335b3acfc2a456e0a2c..0c535bd95d699df1f4dbcaa545bcf0b314d7d61a 100644 (file)
@@ -986,7 +986,7 @@ static void colo_suspend_vm_done(libxl__egc *egc,
 
     crcs->status = LIBXL_COLO_SUSPENDED;
 
-    if (libxl__qmp_get_replication_error(gc, crs->domid)) {
+    if (libxl__qmp_query_xen_replication_status(gc, crs->domid)) {
         LOGD(ERROR, crs->domid, "replication error occurs when secondary vm is running");
         goto out;
     }
index eabc04c88b0c6cb16fb8a02b6c5ee05bc37b6eeb..f687d5af3877e80a2b1ee5ec8563da8710da6a62 100644 (file)
@@ -345,7 +345,8 @@ static void colo_read_svm_suspended_done(libxl__egc *egc,
         goto out;
     }
 
-    if (!css->paused && libxl__qmp_get_replication_error(gc, dss->domid)) {
+    if (!css->paused &&
+        libxl__qmp_query_xen_replication_status(gc, dss->domid)) {
         LOGD(ERROR, dss->domid,
              "replication error occurs when primary vm is running");
         goto out;
index 9fc05e7093711e1f7ced69aebd7c89914b0d6c41..25cb08ac2d407bf53945c49bbf3c9142e109c73b 100644 (file)
@@ -1829,7 +1829,7 @@ _hidden int libxl__qmp_nbd_server_add(libxl__gc *gc, int domid,
 _hidden int libxl__qmp_start_replication(libxl__gc *gc, int domid,
                                          bool primary);
 /* Get replication error that occurs when the vm is running */
-_hidden int libxl__qmp_get_replication_error(libxl__gc *gc, int domid);
+_hidden int libxl__qmp_query_xen_replication_status(libxl__gc *gc, int domid);
 /* Do checkpoint */
 _hidden int libxl__qmp_colo_do_checkpoint(libxl__gc *gc, int domid);
 /* Stop replication */
index eef772220f7b167b1b535538dbfeeca7ed4fe892..eab993aca93c9529914e793cc51f1ef3decf86ca 100644 (file)
@@ -1079,9 +1079,9 @@ int libxl__qmp_start_replication(libxl__gc *gc, int domid, bool primary)
     return qmp_run_command(gc, domid, "xen-set-replication", args, NULL, NULL);
 }
 
-int libxl__qmp_get_replication_error(libxl__gc *gc, int domid)
+int libxl__qmp_query_xen_replication_status(libxl__gc *gc, int domid)
 {
-    return qmp_run_command(gc, domid, "xen-get-replication-error", NULL,
+    return qmp_run_command(gc, domid, "query-xen-replication-status", NULL,
                            NULL, NULL);
 }