[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v2 24/27] tools/libx{c, l}: Introduce restore_callbacks.checkpoint()



On Thu, 2015-07-09 at 19:26 +0100, Andrew Cooper wrote:
> And call it when a checkpoint record is found in the libxc stream.
> 
> Some parts of this patch have been based on patches from the COLO series.
> 
> Signed-off-by: Wen Congyang <wency@xxxxxxxxxxxxxx>
> Signed-off-by: Yang Hongyang <yanghy@xxxxxxxxxxxxxx>
> Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
> CC: Wei Liu <wei.liu2@xxxxxxxxxx>
> 
> ---
> v2: Borrow sufficient fragments from several COLO patches to get
>     BROKEN_CHANNEL and checkpoint failover to function.
> ---
>  tools/libxc/include/xenguest.h     |    9 ++++++
>  tools/libxc/xc_sr_common.h         |    7 +++--
>  tools/libxc/xc_sr_restore.c        |   53 
> ++++++++++++++++++++++++++----------
>  tools/libxl/libxl_save_msgs_gen.pl |    2 +-
>  4 files changed, 53 insertions(+), 18 deletions(-)
> 
> diff --git a/tools/libxc/include/xenguest.h b/tools/libxc/include/xenguest.h
> index 7581263..8799c9f 100644
> --- a/tools/libxc/include/xenguest.h
> +++ b/tools/libxc/include/xenguest.h
> @@ -102,6 +102,15 @@ struct restore_callbacks {
>      int (*toolstack_restore)(uint32_t domid, const uint8_t *buf,
>              uint32_t size, void* data);
>  
> +    /* A checkpoint record has been found in the stream.
> +     *
> +     * returns:
> +     * 0: (error)    terminate processing
> +     * 1: (success)  continue normally

Where "continue" means "keep reading from the stream and expect more
checkpoints" (as opposed to continue on to running the guest), I think?

With that clarified: Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>

Ian



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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.