On Fri, Jan 29, 2016 at 01:27:25PM +0800, Wen Congyang wrote:
> Secondary vm is running in COLO mode, we need to send secondary
> vm's dirty page information to primary host at checkpoint, so we
> have to enable qemu logdirty on secondary.
> 
> libxl__domain_suspend_common_switch_qemu_logdirty() is to enable
> qemu logdirty. But it uses libxl__domain_save_state, and calls
> libxl__xc_domain_saverestore_async_callback_done() before exits.
> This can not be used for secondary vm.
> 
> Update libxl__domain_suspend_common_switch_qemu_logdirty() to
> introduce a new API libxl__domain_common_switch_qemu_logdirty().
> This API only uses libxl__logdirty_switch, and calls
> lds->callback before exits. This new API will be used by the patch:
>   secondary vm suspend/resume/checkpoint code
> 
> Signed-off-by: Yang Hongyang <hongyang.y...@easystack.cn>
> Signed-off-by: Wen Congyang <we...@cn.fujitsu.com>
> CC: Andrew Cooper <andrew.coop...@citrix.com>
> Acked-by: Ian Campbell <ian.campb...@citrix.com>

Reivewed-by: Konrad Rzeszutek Wilk <konrad.w...@oracle.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

Reply via email to