qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 2/3] Add a new qmp command to start/stop replica


From: Zhang Chen
Subject: Re: [Qemu-devel] [PATCH 2/3] Add a new qmp command to start/stop replication
Date: Fri, 2 Dec 2016 11:59:17 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0



On 12/01/2016 10:55 PM, Eric Blake wrote:
On 12/01/2016 12:06 AM, Zhang Chen wrote:
We can call this qmp command to start/stop replication outside of qemu.
Like Xen colo need this function.

Signed-off-by: Zhang Chen <address@hidden>
Signed-off-by: Wen Congyang <address@hidden>
---
+++ b/qapi-schema.json
@@ -4676,6 +4676,24 @@
  { 'command': 'xen-load-devices-state', 'data': {'filename': 'str'} }
##
+# @xen-set-replication
+#
+# Enable or disable replication
+#
+# @enable: true to enable, false to disable.
+#
+# @primary: true for primary or false for secondary
+#
+# @failover: true to do failover, false to stop
Missing an #optional marker, as well as the default value.

I will add this in next version.


+#
+# Returns: nothing
+#
+# Since: 2.8
You've missed 2.8.  This must be 2.9.

good catch.

Thanks
Zhang Chen


+##
+{ 'command': 'xen-set-replication',
+  'data': { 'enable': 'bool', 'primary': 'bool', '*failover' : 'bool' } }
+
+##
  # @GICCapability:
  #
  # The struct describes capability for a specific GIC (Generic


--
Thanks
zhangchen






reply via email to

[Prev in Thread] Current Thread [Next in Thread]