mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xend: Fix startup when dom0 does not see all physical cpus.
Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
1 parent
573e20d4bc
commit
47a066703b
1 file changed
+4
@@ -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(
|
||||
|
||||