WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH 0 of 4] Enable domain checkpointing via xm save --che

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH 0 of 4] Enable domain checkpointing via xm save --checkpoint
From: Brendan Cully <brendan@xxxxxxxxx>
Date: Tue, 27 Feb 2007 22:38:19 -0800
Delivery-date: Tue, 27 Feb 2007 22:42:04 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Here's take two of xm save --checkpoint. It puts suspend_cancel into a
standalone elfnote. I noticed an off-by-one in my xc.c code to import
elfnotes when I did this; the fix is included here.

>From the last post:

The attached patches create a --checkpoint flag for xm save:
 
xc_domain_resume lets the caller alert the guest that it is being
resumed. Callers should not do this unless they know the guest
supports the operation.
 
When xend wants to resume a domain, it checks for the suspend_cancel
elfnote from the notes it has recorded from domain build or resume. If
the flag is present, it simply lets the guest handle resuming,
otherwise it tears down and rebuilds the domain and lets the guest act
as if it is resuming in a new domain.
 
A new suspend_cancel elfnote is added with value 1.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel