From: Ian Campbell Subject: Re: [PATCH 6 of 6 V3] libxl: resume instead of unpause on xl save -c Date: Thu, 9 Feb 2012 09:18:20 +0000 Message-ID: <1328779100.6133.113.camel@zakaz.uk.xensource.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "rshriram@cs.ubc.ca" Cc: "brendan@cs.ubc.ca" , "xen-devel@lists.xensource.com" , Ian Jackson , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2012-02-03 at 06:50 +0000, rshriram@cs.ubc.ca wrote: > # HG changeset patch > # User Shriram Rajagopalan > # Date 1328251593 28800 > # Node ID c7abecc14cceb18140335ebe20faad826282cd1f > # Parent 62c4fd2fe9bbc2c283e3998d852317a48e9f9770 > libxl: resume instead of unpause on xl save -c > > The guest is "suspended" via libxl_domain_suspend when taking a snapshot. > So call libxl_domain_resume instead of libxl_domain_unpause, when taking > a checkpoint of the domain (using xl save -c). > > Signed-off-by: Shriram Rajagopalan Ideally we would confirm that the guest supported checkpointing before even attempting a "save -c" but lets assume for now that the user has confirmed by out-of-band means that this is the case. Acked-by: Ian Campbell > > diff -r 62c4fd2fe9bb -r c7abecc14cce tools/libxl/xl_cmdimpl.c > --- a/tools/libxl/xl_cmdimpl.c Thu Feb 02 22:46:33 2012 -0800 > +++ b/tools/libxl/xl_cmdimpl.c Thu Feb 02 22:46:33 2012 -0800 > @@ -2524,7 +2524,7 @@ static int save_domain(const char *p, co > close(fd); > > if (checkpoint) > - libxl_domain_unpause(ctx, domid); > + libxl_domain_resume(ctx, domid, 1); > else > libxl_domain_destroy(ctx, domid); >