[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [IA64] Create common guest_os_type domain config option
# HG changeset patch # User Alex Williamson <alex.williamson@xxxxxx> # Date 1196362471 25200 # Node ID ad5fa636bc4ef33830576bd3e7016c53267fed82 # Parent 22f7a7a42b861113e1f38e4fe9c444927ade2844 [IA64] Create common guest_os_type domain config option This is an optional domain config entry that may be used by architecture specific builder code to setup various optimizations based on the guest OS intended to run in the domain. Based on patch from Zhang Xin. Signed-off-by: Alex Williamson <alex.williamson@xxxxxx> Acked-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- tools/python/xen/xend/XendConfig.py | 3 ++- tools/python/xen/xend/image.py | 1 + tools/python/xen/xm/create.py | 8 +++++++- 3 files changed, 10 insertions(+), 2 deletions(-) diff -r 22f7a7a42b86 -r ad5fa636bc4e tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Wed Nov 28 12:38:58 2007 -0700 +++ b/tools/python/xen/xend/XendConfig.py Thu Nov 29 11:54:31 2007 -0700 @@ -129,7 +129,8 @@ XENAPI_PLATFORM_CFG = [ 'acpi', 'apic', 'nographic', 'pae', 'rtc_timeoffset', 'serial', 'sdl', 'soundhw','stdvga', 'usb', 'usbdevice', 'vnc', 'vncconsole', 'vncdisplay', 'vnclisten', 'timer_mode', - 'vncpasswd', 'vncunused', 'xauthority', 'pci', 'vhpt'] + 'vncpasswd', 'vncunused', 'xauthority', 'pci', 'vhpt', + 'guest_os_type' ] # Xen API console 'other_config' keys. XENAPI_CONSOLE_OTHER_CFG = ['vncunused', 'vncdisplay', 'vnclisten', diff -r 22f7a7a42b86 -r ad5fa636bc4e tools/python/xen/xend/image.py --- a/tools/python/xen/xend/image.py Wed Nov 28 12:38:58 2007 -0700 +++ b/tools/python/xen/xend/image.py Thu Nov 29 11:54:31 2007 -0700 @@ -426,6 +426,7 @@ class HVMImageHandler(ImageHandler): self.apic = int(vmConfig['platform'].get('apic', 0)) self.acpi = int(vmConfig['platform'].get('acpi', 0)) + self.guest_os_type = vmConfig['platform'].get('guest_os_type') # Return a list of cmd line args to the device models based on the # xm config file diff -r 22f7a7a42b86 -r ad5fa636bc4e tools/python/xen/xm/create.py --- a/tools/python/xen/xm/create.py Wed Nov 28 12:38:58 2007 -0700 +++ b/tools/python/xen/xm/create.py Thu Nov 29 11:54:31 2007 -0700 @@ -453,6 +453,10 @@ gopts.var('usbdevice', val='NAME', gopts.var('usbdevice', val='NAME', fn=set_value, default='', use="Name of USB device to add?") + +gopts.var('guest_os_type', val='NAME', + fn=set_value, default='default', + use="Guest OS type running in HVM") gopts.var('stdvga', val='no|yes', fn=set_bool, default=0, @@ -733,7 +737,9 @@ def configure_hvm(config_image, vals): 'localtime', 'serial', 'stdvga', 'isa', 'nographic', 'soundhw', 'vnc', 'vncdisplay', 'vncunused', 'vncconsole', 'vnclisten', 'sdl', 'display', 'xauthority', 'rtc_timeoffset', 'monitor', - 'acpi', 'apic', 'usb', 'usbdevice', 'keymap', 'pci' ] + 'acpi', 'apic', 'usb', 'usbdevice', 'keymap', 'pci', + 'guest_os_type'] + for a in args: if a in vals.__dict__ and vals.__dict__[a] is not None: config_image.append([a, vals.__dict__[a]]) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |