WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] xend can not start normally in the case of UP Domain0
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
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] xend can not start normally in the case of UP Domain0, Cui, Dexuan <=