[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-3.2-testing] xend: Handle unspecified timer_mode domain platform parameter.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1201001013 0 # Node ID bf534df13095164c7b5461ee34f566efed3d6eb4 # Parent f732c684c3d7394ecfc20568edd3a70d032f63c2 xend: Handle unspecified timer_mode domain platform parameter. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> xen-unstable changeset: 16764:3f26758bcc020c741fdae010f969115064b577c2 xen-unstable date: Fri Jan 18 22:27:51 2008 +0000 --- tools/python/xen/xend/XendDomainInfo.py | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff -r f732c684c3d7 -r bf534df13095 tools/python/xen/xend/XendDomainInfo.py --- a/tools/python/xen/xend/XendDomainInfo.py Fri Jan 18 13:52:22 2008 +0000 +++ b/tools/python/xen/xend/XendDomainInfo.py Tue Jan 22 11:23:33 2008 +0000 @@ -1650,9 +1650,10 @@ class XendDomainInfo: self._recreateDom() # Set timer configration of domain - if hvm: + timer_mode = self.info["platform"].get("timer_mode") + if hvm and timer_mode is not None: xc.hvm_set_param(self.domid, HVM_PARAM_TIMER_MODE, - long(self.info["platform"].get("timer_mode"))) + long(timer_mode)) # Set maximum number of vcpus in domain xc.domain_max_vcpus(self.domid, int(self.info['VCPUs_max'])) _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |