Skip to contentSkip to conversation

Fix bug in superpage flag handling

PATCH New Dave McCracken 1 participant 1 message Oct 8, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

Dave McCracken
Oracle Corp.

tools/python/xen/xend/XendConfig.py +3 -1
@@ -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)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel