qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Max Reitz <mreitz@redhat.com>
To: Wang WeiWei <wangww.fnst@cn.fujitsu.com>,
	qemu devel <qemu-devel@nongnu.org>,
	qemu block <qemu-block@nongnu.org>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	Fam Zheng <famz@redhat.com>, Kevin Wolf <kwolf@redhat.com>,
	Jeff Cody <jcody@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, John Snow <jsnow@redhat.com>,
	Eric Blake <eblake@redhat.com>,
	Markus Armbruster <armbru@redhat.com>,
	"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
	Dong Eddie <eddie.dong@intel.com>,
	Jiang Yunhong <yunhong.jiang@intel.com>,
	zhanghailiang <zhang.zhanghailiang@huawei.com>,
	Gonglei <arei.gonglei@huawei.com>,
	Wen Congyang <wency@cn.fujitsu.com>,
	Changlong Xie <xiecl.fnst@cn.fujitsu.com>
Subject: Re: [Qemu-devel] [PATCH v22 07/10] Introduce new APIs to do replication operation
Date: Tue, 26 Jul 2016 00:23:49 +0200	[thread overview]
Message-ID: <6ebab295-cf39-176d-4b94-e9b9da20cbca@redhat.com> (raw)
In-Reply-To: <1469182567-3114-8-git-send-email-wangww.fnst@cn.fujitsu.com>

[-- Attachment #1: Type: text/plain, Size: 2151 bytes --]

On 22.07.2016 12:16, Wang WeiWei wrote:
> From: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
> 
> 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 <wency@cn.fujitsu.com>
> Signed-off-by: zhanghailiang <zhang.zhanghailiang@huawei.com>
> Signed-off-by: Gonglei <arei.gonglei@huawei.com>
> Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com>
> Signed-off-by: Wang WeiWei <wangww.fnst@cn.fujitsu.com>
> ---
>  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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 498 bytes --]

  reply	other threads:[~2016-07-25 22:24 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-22 10:15 [Qemu-devel] [PATCH v22 00/10] Block replication for continuous checkpoints Wang WeiWei
2016-07-22 10:15 ` [Qemu-devel] [PATCH v22 01/10] unblock backup operations in backing file Wang WeiWei
2016-07-22 10:15 ` [Qemu-devel] [PATCH v22 02/10] Backup: clear all bitmap when doing block checkpoint Wang WeiWei
2016-07-25 21:18   ` Max Reitz
2016-07-26  1:28     ` Changlong Xie
2016-07-22 10:16 ` [Qemu-devel] [PATCH v22 03/10] Backup: export interfaces for extra serialization Wang WeiWei
2016-07-25 21:50   ` Max Reitz
2016-07-26  2:03     ` Changlong Xie
2016-07-22 10:16 ` [Qemu-devel] [PATCH v22 04/10] Link backup into block core Wang WeiWei
2016-07-22 10:16 ` [Qemu-devel] [PATCH v22 05/10] docs: block replication's description Wang WeiWei
2016-07-22 10:16 ` [Qemu-devel] [PATCH v22 06/10] auto complete active commit Wang WeiWei
2016-07-22 10:16 ` [Qemu-devel] [PATCH v22 07/10] Introduce new APIs to do replication operation Wang WeiWei
2016-07-25 22:23   ` Max Reitz [this message]
2016-07-26  2:08     ` Changlong Xie
2016-07-22 10:16 ` [Qemu-devel] [PATCH v22 08/10] Implement new driver for block replication Wang WeiWei
2016-07-22 10:16 ` [Qemu-devel] [PATCH v22 09/10] tests: add unit test case for replication Wang WeiWei
2016-07-22 10:16 ` [Qemu-devel] [PATCH v22 10/10] support replication driver in blockdev-add Wang WeiWei
2016-07-25 23:00   ` Max Reitz
2016-07-26  2:41     ` Changlong Xie
2016-07-25  3:44 ` [Qemu-devel] [PATCH v22 00/10] Block replication for continuous checkpoints Changlong Xie
2016-07-25 14:34   ` Stefan Hajnoczi
2016-07-25 23:11     ` Max Reitz
2016-07-26  3:00     ` Changlong Xie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=6ebab295-cf39-176d-4b94-e9b9da20cbca@redhat.com \
    --to=mreitz@redhat.com \
    --cc=arei.gonglei@huawei.com \
    --cc=armbru@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=eblake@redhat.com \
    --cc=eddie.dong@intel.com \
    --cc=famz@redhat.com \
    --cc=jcody@redhat.com \
    --cc=jsnow@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-block@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=wangww.fnst@cn.fujitsu.com \
    --cc=wency@cn.fujitsu.com \
    --cc=xiecl.fnst@cn.fujitsu.com \
    --cc=yunhong.jiang@intel.com \
    --cc=zhang.zhanghailiang@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).