From: Yang Hongyang Date: Thu, 14 May 2015 08:55:18 +0000 (+0800) Subject: libxc/restore: add checkpointed flag to the restore context X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~3236 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e13013dbf1d5997915548a3b5f1c39594d8c1d7b;p=xen.git libxc/restore: add checkpointed flag to the restore context add checkpointed flag to the restore context. Signed-off-by: Yang Hongyang CC: Ian Campbell CC: Ian Jackson CC: Wei Liu CC: Andrew Cooper Reviewed-by: Andrew Cooper Acked-by: Ian Campbell --- diff --git a/tools/libxc/xc_sr_common.h b/tools/libxc/xc_sr_common.h index 0ba972870f..f8121e78ab 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 2345f66081..9ab576085b 100644 --- a/tools/libxc/xc_sr_restore.c +++ b/tools/libxc/xc_sr_restore.c @@ -624,6 +624,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__);