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

Re: [Xen-devel] [PATCH 0 of 5] Make checkpointing backwards compatible w

To: Brendan Cully <brendan@xxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH 0 of 5] Make checkpointing backwards compatible with older kernels
From: Keir Fraser <keir@xxxxxxxxxxxxx>
Date: Sat, 13 Jan 2007 09:28:55 +0000
Delivery-date: Sat, 13 Jan 2007 01:28:36 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1168642987@xxxxxxxxxxxxxxxxx>
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
Thread-index: Acc29T6wfQXjZKLoEduBigANk04WTA==
Thread-topic: [Xen-devel] [PATCH 0 of 5] Make checkpointing backwards compatible with older kernels
User-agent: Microsoft-Entourage/11.3.2.061213
On 12/1/07 10:03 pm, "Brendan Cully" <brendan@xxxxxxxxx> wrote:

> This set of patches makes checkpointing backwards compatible with
> older kernels. Checkpointable kernels now create a xenstore entry
> called "control/feature-resumable" which xc save -c checks before
> attempting to checkpoint a domain.
> 
> It also writes a new SIF_RESUMABLE flag into the suspend record,
> which xc_linux_restore uses to decide whether it is safe to set the
> hypercall return value.

A single unified new elfnote would probably be better. We would like a new
libxc function to pull image metadata (inc. Elfnotes) out of a kernel image
and provide a comma-separated key-value list, turned into a dictionary for
Python consumption. This would then be persisted by xend (e.g., be added to
save/restore stream format) and can be used to decide whether 'xm save -c'
is okay, and would allow info to be passed to xc_save/xc_restore about
whether suspend is resumable. We already have another intended use for this
mechanism, which is to provide a pte mask to use to decide whether or not a
not-present pte contains an MFN (needing conversion to PFN on xc_save).
Unfortunately although this method is cleanest there is some tedious
plumbing to be done and I'm not sure how to represent the Elf notes in a
save image format (perhaps it can be merged into the image sxpr).

Yes -- returning 1 on resume (rather than restore) will allow new guest
kernels to run properly on old Xen and tools which do not understand resume,
so that would be the better way round.

 -- Keir


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