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
Quoted 6 lines · Dave McCracken
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 withlegacy_onlyset, 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