[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] xend can not start normally in the case of UP Domain0


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
  • Date: Fri, 2 Mar 2007 21:39:16 +0800
  • Cc: ewan@xxxxxxxxxxxxx
  • Delivery-date: Fri, 02 Mar 2007 05:38:36 -0800
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: Acdc0Ci0dUjh0ZWfToqU141Wg+Pdjg==
  • Thread-topic: xend can not start normally in the case of UP Domain0

If the kernel of Domain0 is UP, I can't start xend normally.
It's caused by changeset 14139.
The cause is:
In the case of UP Domain0 (i.e. when I only build Xen0, the default kernel of 
Domain0 is UP), in tools/python/xen/xend/XendNode.py, len(cpuinfo) is 1, but 
len(self.cpus) is 8 in my host. 
The following patch can fix the issue.

diff -r 50e0616fd012 tools/python/xen/xend/XendNode.py
--- a/tools/python/xen/xend/XendNode.py Tue Feb 27 00:37:27 2007 +0000
+++ b/tools/python/xen/xend/XendNode.py Fri Mar 02 12:12:16 2007 +0800
@@ -97,6 +97,8 @@ class XendNode:
         for u in self.cpus.keys():
             log.error(self.cpus[u])
             number = self.cpus[u]['number']
+            if number >= len(cpuinfo):
+                number = 0;
             log.error(number)
             log.error(cpuinfo)
             self.cpus[u].update(

 -- Dexuan

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.