ia64/xen-unstable

changeset 17227:939ceafa5ef9

Initialization of new domU config options via XenAPI

Many of the new domU config options related to hvm guests (e.g. hpet,
rtc_timeoffset, etc.) are not initialized with default values via
XenAPI, which prevents starting an hvm domU created through XenAPI.
This patch ensures the new options are set with appropriate default
values in XendConfig platform sanity check.

Signed-off-by: Jim Fehlig <jfehlig@novell.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 18 11:05:53 2008 +0000 (2008-03-18)
parents 2ed94b9b10b3
children 06dbce4a60f9
files tools/python/xen/xend/XendConfig.py
line diff
     1.1 --- a/tools/python/xen/xend/XendConfig.py	Tue Mar 18 11:04:20 2008 +0000
     1.2 +++ b/tools/python/xen/xend/XendConfig.py	Tue Mar 18 11:05:53 2008 +0000
     1.3 @@ -405,6 +405,12 @@ class XendConfig(dict):
     1.4                  self['platform']['device_model'] = xen.util.auxbin.pathTo("qemu-dm")
     1.5  
     1.6          if self.is_hvm():
     1.7 +            if 'timer_mode' not in self['platform']:
     1.8 +                self['platform']['timer_mode'] = 0
     1.9 +            if 'rtc_timeoffset' not in self['platform']:
    1.10 +                self['platform']['rtc_timeoffset'] = 0
    1.11 +            if 'hpet' not in self['platform']:
    1.12 +                self['platform']['hpet'] = 0
    1.13              if 'loader' not in self['platform']:
    1.14                  # Old configs may have hvmloader set as PV_kernel param
    1.15                  if self.has_key('PV_kernel') and re.search('hvmloader', self['PV_kernel']):