qemu-block
[Top][All Lists]
Advanced

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

Re: [Qemu-block] [PATCH v22 07/10] Introduce new APIs to do replication


From: Max Reitz
Subject: Re: [Qemu-block] [PATCH v22 07/10] Introduce new APIs to do replication operation
Date: Tue, 26 Jul 2016 00:23:49 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 22.07.2016 12:16, Wang WeiWei wrote:
> From: Changlong Xie <address@hidden>
> 
> This commit introduces six replication interfaces(for block, network etc).
> Firstly we can use replication_(new/remove) to create/destroy replication
> instances, then in migration we can use replication_(start/stop/do_checkpoint
> /get_error)_all to handle all replication operations. More detail please
> refer to replication.h
> 
> Signed-off-by: Wen Congyang <address@hidden>
> Signed-off-by: zhanghailiang <address@hidden>
> Signed-off-by: Gonglei <address@hidden>
> Signed-off-by: Changlong Xie <address@hidden>
> Signed-off-by: Wang WeiWei <address@hidden>
> ---
>  Makefile.objs        |   1 +
>  qapi/block-core.json |  13 ++++
>  replication.c        | 107 +++++++++++++++++++++++++++++++
>  replication.h        | 174 
> +++++++++++++++++++++++++++++++++++++++++++++++++++
>  4 files changed, 295 insertions(+)
>  create mode 100644 replication.c
>  create mode 100644 replication.h
> 
> diff --git a/Makefile.objs b/Makefile.objs
> index 7f1f0a3..4abdc81 100644
> --- a/Makefile.objs
> +++ b/Makefile.objs
> @@ -15,6 +15,7 @@ block-obj-$(CONFIG_POSIX) += aio-posix.o
>  block-obj-$(CONFIG_WIN32) += aio-win32.o
>  block-obj-y += block/
>  block-obj-y += qemu-io-cmds.o
> +block-obj-y += replication.o
>  
>  block-obj-m = block/
>  
> diff --git a/qapi/block-core.json b/qapi/block-core.json
> index f462345..7f05b68 100644
> --- a/qapi/block-core.json
> +++ b/qapi/block-core.json
> @@ -2147,6 +2147,19 @@
>              '*debug_level': 'int' } }
>  
>  ##
> +# @ReplicationMode
> +#
> +# An enumeration of replication modes.
> +#
> +# @primary: Primary mode, the vm's state will be sent to secondary QEMU.
> +#
> +# @secondary: Secondary mode, receive the vm's state from primary QEMU.
> +#
> +# Since: 2.7

Probably 2.8 now.

Max

> +##
> +{ 'enum' : 'ReplicationMode', 'data' : [ 'primary', 'secondary' ] }
> +
> +##
>  # @BlockdevOptions
>  #
>  # Options for creating a block device.  Many options are available for all

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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