xend: Better support for legacy HVM config of ia64
Hi,
On ia64, direct Linux boot is not supported, and 'Flash.fd' or 'guest_firmware.bin' has been used as a value of the 'kernel' option. Cset:17016 ignores those strings and overrides them with "/usr/lib/xen/boot/hvmloader".
We tested on x86_64 and ia64 with old and new configs.
Signature · 1 line
KUWAMURA Shin'ya
# HG changeset patch
# User KUWAMURA Shin'ya <[email protected]> # Date 1218441318 -32400
# Node ID f5faa2bb753a9e09fcd1e30c87c5fb512d37db86 # Parent 4e3316ed1af512bd14a2ef975455cee6168f4bec
xend: Better support for legacy HVM config of ia64
On ia64, direct Linux boot is not supported, and 'Flash.fd' or 'guest_firmware.bin' has been used as a value of the 'kernel' option. Cset:17016 ignores those strings and overrides them with "/usr/lib/xen/boot/hvmloader".
tools/python/xen/xend/XendConfig.py +6 -5
@@ -447,12 +447,13 @@ class XendConfig(dict): if 'hpet' not in self['platform']: 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') and re.search('hvmloader', self['PV_kernel']): + if not self.has_key('PV_kernel'): + self['platform']['loader'] = "/usr/lib/xen/boot/hvmloader" + else: + # Old configs may have hvmloader set as PV_kernel param self['platform']['loader'] = self['PV_kernel'] - self['PV_kernel'] = '' - else: - self['platform']['loader'] = "/usr/lib/xen/boot/hvmloader" + if re.search('hvmloader', self['PV_kernel']): + self['PV_kernel'] = '' log.debug("Loader is %s" % str(self['platform']['loader'])) # Compatibility hack, can go away soon.
_______________________________________________
Xen-ia64-devel mailing list
[email protected]
http://lists.xensource.com/xen-ia64-devel
Quoted 9 lines · KUWAMURA Shin'ya
On ia64, direct Linux boot is not supported, and 'Flash.fd' or 'guest_firmware.bin' has been used as a value of the 'kernel' option. Cset:17016 ignores those strings and overrides them with "
/usr/lib/xen/boot/hvmloader".We tested on
x86_64and ia64 with old and new configs.Signed-off-by Kazuhiro Suzuki <[email protected]>Signed-off-by KUWAMURA Shin'ya <[email protected]>
Conditionally clearing 'PV_kernel' after copying it into 'loader' seems odd. Would you ever want to keep the 'PV_kernel' option when it doesn't contain the string 'hvmloader'?
-- Keir
Quoted 5 lines · Keir Fraser
Quoted 5 lines
On ia64, direct Linux boot is not supported, and 'Flash.fd' or 'guest_firmware.bin' has been used as a value of the 'kernel' option. Cset:17016 ignores those strings and overrides them with "
/usr/lib/xen/boot/hvmloader".
Quoted 8 lines
Quoted 4 lines
We tested on
x86_64and ia64 with old and new configs.Signed-off-by Kazuhiro Suzuki <[email protected]>Signed-off-by KUWAMURA Shin'ya <[email protected]>Conditionally clearing '
PV_kernel' after copying it into 'loader' seems odd. Would you ever want to keep the 'PV_kernel' option when it doesn't contain the string 'hvmloader'?
I applied a simplified version of your patch (actually a one-liner!) as changeset 18306. Let me know if it doesn't do what you require.
-- Keir
Hi Keir,
Quoted 5 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
On Mon, 11 Aug 2008 11:28:52 +0100
[email protected](Keir Fraser) said:I applied a simplified version of your patch (actually a one-liner!) as changeset 18306. Let me know if it doesn't do what you require.
That's good. Testing results are OK. Thank you.
Best regards,
Signature · 1 line
KUWAMURA Shin'ya