xend: Fix startup when dom0 does not see all physical cpus.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-03-02 15:08:26 +00:00
1 parent 573e20d4bc
commit 47a066703b
1 file changed
+4
+4
View File
@@ -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(
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.