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

[Xen-changelog] [xen-unstable] Fix crash if some secondary CPUs cannot be initialised.



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1169636662 0
# Node ID c3b2443408f4d125a5e222004090fb476d30e518
# Parent  b064775fba7d838c99bcf11ca4fec6127e0e8792
Fix crash if some secondary CPUs cannot be initialised.
Signed-off-by: Keir Fraser <keir@xxxxxxxxxxxxx>
---
 xen/common/domain.c |    3 +++
 1 files changed, 3 insertions(+)

diff -r b064775fba7d -r c3b2443408f4 xen/common/domain.c
--- a/xen/common/domain.c       Wed Jan 24 10:44:32 2007 +0000
+++ b/xen/common/domain.c       Wed Jan 24 11:04:22 2007 +0000
@@ -129,6 +129,9 @@ struct vcpu *alloc_idle_vcpu(unsigned in
     struct vcpu *v;
     unsigned int vcpu_id = cpu_id % MAX_VIRT_CPUS;
 
+    if ( (v = idle_vcpu[cpu_id]) != NULL )
+        return v;
+
     d = (vcpu_id == 0) ?
         domain_create(IDLE_DOMAIN_ID, 0) :
         idle_vcpu[cpu_id - vcpu_id]->domain;

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


 


Rackspace

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