From: Dave McCracken <dcm@mccr.org>
To: Keir Fraser <Keir.Fraser@eu.citrix.com>,
Xen Developers List <xen-devel@lists.xensource.com>
Subject: [PATCH] Fix bug in superpage flag handling
Date: Thu, 8 Oct 2009 09:09:52 -0500 [thread overview]
Message-ID: <200910080909.52218.dcm@mccr.org> (raw)
[-- 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
reply other threads:[~2009-10-08 14:09 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200910080909.52218.dcm@mccr.org \
--to=dcm@mccr.org \
--cc=Keir.Fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.