From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH Remus v3 2/3] libxc/restore: add checkpointed flag to the restore context Date: Thu, 14 May 2015 08:18:04 +0100 Message-ID: <55544C2C.7000003@citrix.com> References: <1431506101-29612-1-git-send-email-yanghy@cn.fujitsu.com> <1431506101-29612-3-git-send-email-yanghy@cn.fujitsu.com> <55536A84.6090408@citrix.com> <5553F5CF.9070303@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5553F5CF.9070303@cn.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Hongyang , xen-devel@lists.xen.org Cc: wei.liu2@citrix.com, ian.campbell@citrix.com, wency@cn.fujitsu.com, eddie.dong@intel.com, yunhong.jiang@intel.com, ian.jackson@eu.citrix.com, guijianfeng@cn.fujitsu.com, rshriram@cs.ubc.ca List-Id: xen-devel@lists.xenproject.org On 14/05/2015 02:09, Yang Hongyang wrote: > > > On 05/13/2015 11:15 PM, Andrew Cooper wrote: >> On 13/05/15 09:35, Yang Hongyang wrote: >>> add checkpointed flag to the restore context. >>> >>> Signed-off-by: Yang Hongyang >>> CC: Ian Campbell >>> CC: Ian Jackson >>> CC: Wei Liu >>> CC: Andrew Cooper >> >> This appears unused, given the new restore code. > > This is used by handle_checkpoint() for the sanity check. Ah yes, and I have realised that it will need to be used when I fix up the qemu record handling in the future, so Reviewed-by: Andrew Cooper > >> >> ~Andrew >> >>> --- >>> tools/libxc/xc_sr_common.h | 3 +++ >>> tools/libxc/xc_sr_restore.c | 1 + >>> 2 files changed, 4 insertions(+) >>> >>> diff --git a/tools/libxc/xc_sr_common.h b/tools/libxc/xc_sr_common.h >>> index 0ba9728..f8121e7 100644 >>> --- a/tools/libxc/xc_sr_common.h >>> +++ b/tools/libxc/xc_sr_common.h >>> @@ -205,6 +205,9 @@ struct xc_sr_context >>> uint32_t guest_type; >>> uint32_t guest_page_size; >>> >>> + /* Plain VM, or checkpoints over time. */ >>> + bool checkpointed; >>> + >>> /* >>> * Xenstore and Console parameters. >>> * INPUT: evtchn & domid >>> diff --git a/tools/libxc/xc_sr_restore.c b/tools/libxc/xc_sr_restore.c >>> index 8022c3d..0e512ec 100644 >>> --- a/tools/libxc/xc_sr_restore.c >>> +++ b/tools/libxc/xc_sr_restore.c >>> @@ -604,6 +604,7 @@ int xc_domain_restore2(xc_interface *xch, int >>> io_fd, uint32_t dom, >>> ctx.restore.console_domid = console_domid; >>> ctx.restore.xenstore_evtchn = store_evtchn; >>> ctx.restore.xenstore_domid = store_domid; >>> + ctx.restore.checkpointed = checkpointed_stream; >>> ctx.restore.callbacks = callbacks; >>> >>> IPRINTF("In experimental %s", __func__); >> >> . >> >