Re: [Qemu-devel] [PATCH v17 6/8] Introduce new APIs to do replication operation

2016-04-13 Thread Changlong Xie
On 04/13/2016 08:47 PM, Stefan Hajnoczi wrote: On Mon, Apr 11, 2016 at 04:22:57PM +0800, Changlong Xie wrote: +/* + * The caller of the function MUST make sure vm stopped + */ +void replication_start_all(ReplicationMode mode, Error **errp) +{ +ReplicationState *rs, *next; + +QLIST_FOREAC

Re: [Qemu-devel] [PATCH v17 6/8] Introduce new APIs to do replication operation

2016-04-13 Thread Stefan Hajnoczi
On Mon, Apr 11, 2016 at 04:22:57PM +0800, Changlong Xie wrote: > +/* > + * The caller of the function MUST make sure vm stopped > + */ > +void replication_start_all(ReplicationMode mode, Error **errp) > +{ > +ReplicationState *rs, *next; > + > +QLIST_FOREACH_SAFE(rs, &replication_states, no

[Qemu-devel] [PATCH v17 6/8] Introduce new APIs to do replication operation

2016-04-11 Thread Changlong Xie
Signed-off-by: Wen Congyang Signed-off-by: zhanghailiang Signed-off-by: Gonglei Signed-off-by: Changlong Xie --- Makefile.objs| 1 + qapi/block-core.json | 13 replication.c| 96 replication.h| 175 ++