xend: Fix bug in superpage flag handling

During testing I discovered that using a bootloader magically clears
the superpage flag out of the config.  This small patch fixes that
behavior.

From: Dave McCracken <dcm@mccr.org>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
Keir Fraser committed 2009-10-09 08:53:42 +01:00
1 parent a09edd4427
commit d680037667
1 file changed
+3 -1
+3 -1
View File
@@ -2017,7 +2017,9 @@ class XendConfig(dict):
self['use_tmp_kernel'] = False
self['use_tmp_ramdisk'] = False
self['superpages'] = sxp.child_value(image_sxp, 'superpages',0)
val = sxp.child_value(image_sxp, 'superpages')
if val is not None:
self['superpages'] = val
for key in XENAPI_PLATFORM_CFG_TYPES.keys():
val = sxp.child_value(image_sxp, key, None)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.