From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shriram Rajagopalan Subject: [PATCH 4 of 4 RESEND V6] libxl: resume instead of unpause on xl save -c Date: Thu, 22 Mar 2012 12:48:28 -0700 Message-ID: <3a794805a04655b3d73e.1332445708@athos.nss.cs.ubc.ca> 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.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: brendan@cs.ubc.ca, ian.jackson@eu.citrix.com, ian.campbell@citrix.com, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Shriram Rajagopalan # Date 1332445132 25200 # Node ID 3a794805a04655b3d73eac00ccc1a51a00b0dbfa # Parent 17e745b79fb13378b2cc6a575c488cf902007285 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 Acked-by: Ian Campbell diff -r 17e745b79fb1 -r 3a794805a046 tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c Thu Mar 22 12:38:50 2012 -0700 +++ b/tools/libxl/xl_cmdimpl.c Thu Mar 22 12:38:52 2012 -0700 @@ -2579,7 +2579,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);