32a9d66
changeset:   16764:3f26758bcc02
32a9d66
user:        Keir Fraser <keir.fraser@citrix.com>
32a9d66
date:        Fri Jan 18 22:27:51 2008 +0000
32a9d66
files:       tools/python/xen/xend/XendDomainInfo.py
32a9d66
description:
32a9d66
xend: Handle unspecified timer_mode domain platform parameter.
32a9d66
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
32a9d66
32a9d66
32a9d66
diff -r 1e6455d608bd -r 3f26758bcc02 tools/python/xen/xend/XendDomainInfo.py
32a9d66
--- a/tools/python/xen/xend/XendDomainInfo.py	Fri Jan 18 16:20:47 2008 +0000
32a9d66
+++ b/tools/python/xen/xend/XendDomainInfo.py	Fri Jan 18 22:27:51 2008 +0000
32a9d66
@@ -1650,9 +1650,10 @@ class XendDomainInfo:
32a9d66
         self._recreateDom()
32a9d66
 
32a9d66
         # Set timer configration of domain
32a9d66
-        if hvm:
32a9d66
+        timer_mode = self.info["platform"].get("timer_mode")
32a9d66
+        if hvm and timer_mode is not None:
32a9d66
             xc.hvm_set_param(self.domid, HVM_PARAM_TIMER_MODE,
32a9d66
-                long(self.info["platform"].get("timer_mode")))
32a9d66
+                             long(timer_mode))
32a9d66
 
32a9d66
         # Set maximum number of vcpus in domain
32a9d66
         xc.domain_max_vcpus(self.domid, int(self.info['VCPUs_max']))
32a9d66