ia64/xen-unstable

changeset 13589:c3b2443408f4

Fix crash if some secondary CPUs cannot be initialised.
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Jan 24 11:04:22 2007 +0000 (2007-01-24)
parents b064775fba7d
children 8331aca2f29c
files xen/common/domain.c
line diff
     1.1 --- a/xen/common/domain.c	Wed Jan 24 10:44:32 2007 +0000
     1.2 +++ b/xen/common/domain.c	Wed Jan 24 11:04:22 2007 +0000
     1.3 @@ -129,6 +129,9 @@ struct vcpu *alloc_idle_vcpu(unsigned in
     1.4      struct vcpu *v;
     1.5      unsigned int vcpu_id = cpu_id % MAX_VIRT_CPUS;
     1.6  
     1.7 +    if ( (v = idle_vcpu[cpu_id]) != NULL )
     1.8 +        return v;
     1.9 +
    1.10      d = (vcpu_id == 0) ?
    1.11          domain_create(IDLE_DOMAIN_ID, 0) :
    1.12          idle_vcpu[cpu_id - vcpu_id]->domain;