Dave McCracken
2009-May-11 15:48 UTC
[Xen-devel] How to save and restore new domain config options
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? Thanks, Dave McCracken _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Keir Fraser
2009-May-11 17:13 UTC
Re: [Xen-devel] How to save and restore new domain config options
On 11/05/2009 16:48, "Dave McCracken" <dcm@mccr.org> 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@lists.xensource.com http://lists.xensource.com/xen-devel