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] How to save and restore new domain config options

To: Dave McCracken <dcm@xxxxxxxx>, Xen Developers <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] How to save and restore new domain config options
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Mon, 11 May 2009 18:13:42 +0100
Cc:
Delivery-date: Mon, 11 May 2009 10:14:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <200905111048.43994.dcm@xxxxxxxx>
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/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnSUDL8col0fg/IQbWABxfVPsxq1gAC6Jeo
Thread-topic: [Xen-devel] How to save and restore new domain config options
User-agent: Microsoft-Entourage/12.17.0.090302
On 11/05/2009 16:48, "Dave McCracken" <dcm@xxxxxxxx> wrote:

> I am adding a new option to the domain config.  I need to be able to save and
> restore this option when a domain is saved and restored.  However, I
> discovered that XendConfig.to_sxp() is called with legacy_only set, which does
> not save any options that are not part of the legacy api.  I assume I should
> not be adding new options to the legacy api list, so how do I save new options
> in the save image?

I'd look at how some other option that gets saved/restored and is moderately
recent (e.g., the cpuid feature masks) and copy how that works in this
respect.

 -- Keir



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

<Prev in Thread] Current Thread [Next in Thread>