Re: [Xen-devel] [PATCH v10 21/31] libxc/save: support COLO save

2016-02-25 Thread Wen Congyang
On 02/25/2016 11:58 PM, Wei Liu wrote: > On Mon, Feb 22, 2016 at 10:52:25AM +0800, Wen Congyang wrote: > [...] >> /* >> * Suspend the domain and send dirty memory. >> * This is the last iteration of the live migration and the >> @@ -558,6 +610,16 @@ static int suspend_and_send_dirty(struct xc_

Re: [Xen-devel] [PATCH v10 21/31] libxc/save: support COLO save

2016-02-25 Thread Wei Liu
On Mon, Feb 22, 2016 at 10:52:25AM +0800, Wen Congyang wrote: [...] > /* > * Suspend the domain and send dirty memory. > * This is the last iteration of the live migration and the > @@ -558,6 +610,16 @@ static int suspend_and_send_dirty(struct xc_sr_context > *ctx) > > bitmap_or(dirty_

[Xen-devel] [PATCH v10 21/31] libxc/save: support COLO save

2016-02-21 Thread Wen Congyang
After suspend primary vm, get dirty bitmap on secondary vm, and send pages both dirty on primary/secondary to secondary. Signed-off-by: Yang Hongyang Signed-off-by: Wen Congyang CC: Andrew Cooper --- tools/libxc/xc_sr_common.h | 2 + tools/libxc/xc_sr_save.c | 104 +