]> xenbits.xensource.com Git - people/vhanquez/xen-unstable.git/commitdiff
libxl: resume instead of unpause on xl save -c
authorShriram Rajagopalan <rshriram@cs.ubc.ca>
Fri, 18 May 2012 10:00:43 +0000 (11:00 +0100)
committerShriram Rajagopalan <rshriram@cs.ubc.ca>
Fri, 18 May 2012 10:00:43 +0000 (11:00 +0100)
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 <rshriram@cs.ubc.ca>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c

index 0e5b105680eeb1e288c2e03bcbaa341e6f7f3e80..e79916c2f1876509ffbba7a5c9e7a5e785177a84 100644 (file)
@@ -2814,7 +2814,7 @@ static int save_domain(const char *p, const char *filename, int checkpoint,
     close(fd);
 
     if (checkpoint)
-        libxl_domain_unpause(ctx, domid);
+        libxl_domain_resume(ctx, domid, 1);
     else
         libxl_domain_destroy(ctx, domid);