All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix bug in superpage flag handling
@ 2009-10-08 14:09 Dave McCracken
  0 siblings, 0 replies; only message in thread
From: Dave McCracken @ 2009-10-08 14:09 UTC (permalink / raw)
  To: Keir Fraser, Xen Developers List

[-- Attachment #1: Type: Text/Plain, Size: 177 bytes --]


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.

[-- Attachment #2: xen-unstable-091007-spfix-1.patch --]
[-- Type: text/plain, Size: 621 bytes --]

--- 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)

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-10-08 14:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-08 14:09 [PATCH] Fix bug in superpage flag handling Dave McCracken

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.