Skip to contentSkip to conversation

How to save and restore new domain config options

DISCUSSION Dave McCracken 2 participants 2 messages May 11, 2009

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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 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