diff --git a/tools/python/xen/xend/XendNode.py b/tools/python/xen/xend/XendNode.py index f550a467a9..07c814be7b 100644 --- a/tools/python/xen/xend/XendNode.py +++ b/tools/python/xen/xend/XendNode.py @@ -97,6 +97,10 @@ class XendNode: for u in self.cpus.keys(): log.error(self.cpus[u]) number = self.cpus[u]['number'] + # We can run off the end of the cpuinfo list if domain0 does not + # have #vcpus == #pcpus. In that case we just replicate pcpu0 info. + if not cpuinfo.has_key(number): + number = 0 log.error(number) log.error(cpuinfo) self.cpus[u].update(