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

[XenARM] Weird initialization in PPC port

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "xen-arm@xxxxxxxxxxxxxxxxxxx" <xen-arm@xxxxxxxxxxxxxxxxxxx>
Subject: [XenARM] Weird initialization in PPC port
From: ROSSIER Daniel <Daniel.Rossier@xxxxxxxxxx>
Date: Fri, 27 Mar 2009 17:19:44 +0100
Accept-language: fr-FR, en-US
Acceptlanguage: fr-FR, en-US
Cc:
Delivery-date: Fri, 27 Mar 2009 09:20:06 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-arm-request@lists.xensource.com?subject=help>
List-id: Xen ARM development <xen-arm.lists.xensource.com>
List-post: <mailto:xen-arm@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-arm>, <mailto:xen-arm-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-arm>, <mailto:xen-arm-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-arm-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acmu99c4YiMcB3aYR3y8cArTMb5Ifw==
Thread-topic: Weird initialization in PPC port
Hi all,
 
In the context of our port on ARM (EmbeddedXEN project),I'm using an initial port from MontaVista which is based upon the PPC port.
I've notice a strange statement in the file arch/ppc/setup.c (initialization time).
 
Right after the creation of the domain 0, there is the following line:
 
dom0->vcpu[0]->cpu_affinity = cpumask_of_cpu(0);
 
But the vcpu pointer is initialized in the construct_domain0() function which is called afterwards.
 
Therefore, the vcpu field is still NULL and leads to an oops.
 
I've noticed that doing the port on ARM, but I wasn't able to test that on a ppc architecture.
 
I'm using xen 3.1.3 (I've noticed that the PPC port has disappeared in 3.3.x)
 
Please could you explain me how it can work?? (I've checked the code for PPC , and I was not able to find a different behavior).
 
Thanks in advance
 
Daniel
 
 
 
_______________________________________________
Xen-arm mailing list
Xen-arm@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-arm
<Prev in Thread] Current Thread [Next in Thread>