From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jim Fehlig Subject: [PATCH] Initialization of new domU config options via XenAPI Date: Thu, 13 Mar 2008 14:58:42 -0600 Message-ID: <47D99582.40504@novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------000108020307020305030005" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------000108020307020305030005 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 --------------000108020307020305030005 Content-Type: text/x-patch; name="xenapi-hvm-defaults.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="xenapi-hvm-defaults.diff" diff -r f33328217eee tools/python/xen/xend/XendConfig.py --- a/tools/python/xen/xend/XendConfig.py Mon Mar 10 22:51:57 2008 +0000 +++ b/tools/python/xen/xend/XendConfig.py Thu Mar 13 14:55:16 2008 -0600 @@ -405,6 +405,12 @@ class XendConfig(dict): self['platform']['device_model'] = xen.util.auxbin.pathTo("qemu-dm") if self.is_hvm(): + if 'timer_mode' not in self['platform']: + self['platform']['timer_mode'] = 0 + if 'rtc_timeoffset' not in self['platform']: + self['platform']['rtc_timeoffset'] = 0 + 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']): --------------000108020307020305030005 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------000108020307020305030005--