From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave McCracken Subject: [PATCH] Fix bug in superpage flag handling Date: Thu, 8 Oct 2009 09:09:52 -0500 Message-ID: <200910080909.52218.dcm@mccr.org> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_wKfzKiX2/VJZzC1" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser , Xen Developers List List-Id: xen-devel@lists.xenproject.org --Boundary-00=_wKfzKiX2/VJZzC1 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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. --Boundary-00=_wKfzKiX2/VJZzC1 Content-Type: text/plain; charset="us-ascii"; name="xen-unstable-091007-spfix-1.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xen-unstable-091007-spfix-1.patch" --- xen-unstable/tools/python/xen/xend/XendConfig.py 2009-10-07 15:43:51.000000000 -0500 +++ xen-hpage/tools/python/xen/xend/XendConfig.py 2009-10-07 15:47:21.000000000 -0500 @@ -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) --Boundary-00=_wKfzKiX2/VJZzC1 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --Boundary-00=_wKfzKiX2/VJZzC1--