From: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] Xend: Fix Setting up Platform Parameters
Date: Wed, 13 Aug 2008 21:06:36 +0900 [thread overview]
Message-ID: <48A2CE4C.1080803@ab.jp.nec.com> (raw)
Make sure that 'PV_kernel' config param is not blank when assigning it
to 'loader' param. This fixes a failure of 'xm create' via xen-api.
Signed-off-by: Yosuke Iwamatsu <y-iwamatsu@ab.jp.nec.com>
diff -r 2c63cf7b042d tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py Tue Aug 12 10:23:34 2008 +0100
+++ b/tools/python/xen/xend/XendConfig.py Wed Aug 13 20:43:41 2008 +0900
@@ -448,7 +448,7 @@ class XendConfig(dict):
self['platform']['hpet'] = 0
if 'loader' not in self['platform']:
# Old configs may have hvmloader set as PV_kernel param
- if self.has_key('PV_kernel'):
+ if self.has_key('PV_kernel') and self['PV_kernel'] != '':
self['platform']['loader'] = self['PV_kernel']
self['PV_kernel'] = ''
else:
next reply other threads:[~2008-08-13 12:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 12:06 Yosuke Iwamatsu [this message]
2008-08-13 12:29 ` [PATCH] Xend: Fix Setting up Platform Parameters Keir Fraser
2008-08-13 12:34 ` Keir Fraser
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=48A2CE4C.1080803@ab.jp.nec.com \
--to=y-iwamatsu@ab.jp.nec.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.