ia64/xen-unstable

changeset 14215:84e1455ebc15

xend: Fix startup when dom0 does not see all physical cpus.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Fri Mar 02 15:08:26 2007 +0000 (2007-03-02)
parents 88282487c28a
children 4847e5b8adf1
files tools/python/xen/xend/XendNode.py
line diff
     1.1 --- a/tools/python/xen/xend/XendNode.py	Fri Mar 02 14:57:18 2007 +0000
     1.2 +++ b/tools/python/xen/xend/XendNode.py	Fri Mar 02 15:08:26 2007 +0000
     1.3 @@ -97,6 +97,10 @@ class XendNode:
     1.4          for u in self.cpus.keys():
     1.5              log.error(self.cpus[u])
     1.6              number = self.cpus[u]['number']
     1.7 +            # We can run off the end of the cpuinfo list if domain0 does not
     1.8 +            # have #vcpus == #pcpus. In that case we just replicate pcpu0 info.
     1.9 +            if not cpuinfo.has_key(number):
    1.10 +                number = 0
    1.11              log.error(number)
    1.12              log.error(cpuinfo)
    1.13              self.cpus[u].update(