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 <zhangchen.f...@cn.fujitsu.com> > Signed-off-by: Wen Congyang <we...@cn.fujitsu.com> > ---
> +++ 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. > +# > +# Returns: nothing > +# > +# Since: 2.8 You've missed 2.8. This must be 2.9. > +## > +{ 'command': 'xen-set-replication', > + 'data': { 'enable': 'bool', 'primary': 'bool', '*failover' : 'bool' } } > + > +## > # @GICCapability: > # > # The struct describes capability for a specific GIC (Generic > -- Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature