Re: [Xen-devel] [PATCH v10 17/31] primary vm suspend/resume/checkpoint code

2016-02-25 Thread Wen Congyang
On 02/25/2016 11:57 PM, Wei Liu wrote: > On Mon, Feb 22, 2016 at 10:52:21AM +0800, Wen Congyang wrote: > [...] >> +#include "libxl_osdeps.h" /* must come before any other headers */ >> + >> +#include "libxl_internal.h" >> +#include "libxl_colo.h" >> + >> +static const

Re: [Xen-devel] [PATCH v10 17/31] primary vm suspend/resume/checkpoint code

2016-02-25 Thread Wei Liu
On Mon, Feb 22, 2016 at 10:52:21AM +0800, Wen Congyang wrote: [...] > +#include "libxl_osdeps.h" /* must come before any other headers */ > + > +#include "libxl_internal.h" > +#include "libxl_colo.h" > + > +static const libxl__checkpoint_device_instance_ops *colo_ops[] = { > +NULL, > +}; > + >

[Xen-devel] [PATCH v10 17/31] primary vm suspend/resume/checkpoint code

2016-02-21 Thread Wen Congyang
We will do the following things again and again: 1. Suspend primary vm a. Suspend primary vm b. do postsuspend c. Read CHECKPOINT_SVM_SUSPENDED sent by secondary 2. Resume primary vm a. Read CHECKPOINT_SVM_READY from slave b. Do presume c. Resume primary vm d. Read