|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] xend: Better support for legacy HVM confi
# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1202740972 0
# Node ID 17020f4eb0aaa2a3ee183696569abda065b27a3d
# Parent bab9e298450af435d089cc01ede8fceeb9e3f26b
xend: Better support for legacy HVM config with hvmloader configured
via the 'kernel' config option:
1. Look for any string containing 'hvmloader'.
2. The 'kernel' option must be scrubbed to avoid taking
PV-kernel-loading paths during later guest setup.
Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
tools/python/xen/xend/XendConfig.py | 10 ++++------
tools/python/xen/xend/image.py | 2 +-
2 files changed, 5 insertions(+), 7 deletions(-)
diff -r bab9e298450a -r 17020f4eb0aa tools/python/xen/xend/XendConfig.py
--- a/tools/python/xen/xend/XendConfig.py Mon Feb 11 10:57:17 2008 +0000
+++ b/tools/python/xen/xend/XendConfig.py Mon Feb 11 14:42:52 2008 +0000
@@ -406,15 +406,13 @@ class XendConfig(dict):
if self.is_hvm():
if 'loader' not in self['platform']:
- log.debug("No loader present")
- # Old configs may have hvmloder set as PV_kernel param,
- # so lets migrate them....
- if self['PV_kernel'] == "/usr/lib/xen/boot/hvmloader":
+ # Old configs may have hvmloader set as PV_kernel param
+ if self.has_key('PV_kernel') and re.search('hvmloader',
self['PV_kernel']):
self['platform']['loader'] = self['PV_kernel']
- log.debug("Loader copied from kernel %s" %
str(self['platform']['loader']))
+ self['PV_kernel'] = ''
else:
self['platform']['loader'] = "/usr/lib/xen/boot/hvmloader"
- log.debug("Loader %s" % str(self['platform']['loader']))
+ log.debug("Loader is %s" % str(self['platform']['loader']))
# Compatibility hack, can go away soon.
if 'soundhw' not in self['platform'] and \
diff -r bab9e298450a -r 17020f4eb0aa tools/python/xen/xend/image.py
--- a/tools/python/xen/xend/image.py Mon Feb 11 10:57:17 2008 +0000
+++ b/tools/python/xen/xend/image.py Mon Feb 11 14:42:52 2008 +0000
@@ -455,7 +455,7 @@ class HVMImageHandler(ImageHandler):
ret = ImageHandler.parseDeviceModelArgs(self, vmConfig)
ret = ret + ['-vcpus', str(self.vm.getVCpuCount())]
- if self.kernel and self.kernel != "/usr/lib/xen/boot/hvmloader":
+ if self.kernel:
log.debug("kernel = %s", self.kernel)
ret = ret + ['-kernel', self.kernel]
if self.ramdisk:
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] xend: Better support for legacy HVM config with hvmloader configured,
Xen patchbot-unstable <=
|
|
|
|
|