ia64/xen-unstable

changeset 16819:3f26758bcc02

xend: Handle unspecified timer_mode domain platform parameter.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Fri Jan 18 22:27:51 2008 +0000 (2008-01-18)
parents 1e6455d608bd
children aca8d453da59
files tools/python/xen/xend/XendDomainInfo.py
line diff
     1.1 --- a/tools/python/xen/xend/XendDomainInfo.py	Fri Jan 18 16:20:47 2008 +0000
     1.2 +++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Jan 18 22:27:51 2008 +0000
     1.3 @@ -1650,9 +1650,10 @@ class XendDomainInfo:
     1.4          self._recreateDom()
     1.5  
     1.6          # Set timer configration of domain
     1.7 -        if hvm:
     1.8 +        timer_mode = self.info["platform"].get("timer_mode")
     1.9 +        if hvm and timer_mode is not None:
    1.10              xc.hvm_set_param(self.domid, HVM_PARAM_TIMER_MODE,
    1.11 -                long(self.info["platform"].get("timer_mode")))
    1.12 +                             long(timer_mode))
    1.13  
    1.14          # Set maximum number of vcpus in domain
    1.15          xc.domain_max_vcpus(self.domid, int(self.info['VCPUs_max']))