ia64/xen-unstable

changeset 19765:f2a3b7188906

x86, hvm: set vcpu->is_initialised after restore/migration

After restore/migration, the xenctx command for auxiliary vcpus
fails with a message "xc_vcpu_getcontext: No data available".

Signed-off-by: Kouya Shimura <kouya@jp.fujitsu.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Jun 16 13:39:00 2009 +0100 (2009-06-16)
parents 775afcdc2759
children 133c889c21a7
files xen/arch/x86/hvm/hvm.c
line diff
     1.1 --- a/xen/arch/x86/hvm/hvm.c	Tue Jun 16 13:33:12 2009 +0100
     1.2 +++ b/xen/arch/x86/hvm/hvm.c	Tue Jun 16 13:39:00 2009 +0100
     1.3 @@ -662,8 +662,9 @@ static int hvm_load_cpu_ctxt(struct doma
     1.4      v->fpu_initialised = 1;
     1.5  
     1.6      /* Auxiliary processors should be woken immediately. */
     1.7 -    if ( test_and_clear_bit(_VPF_down, &v->pause_flags) )
     1.8 -        vcpu_wake(v);
     1.9 +    v->is_initialised = 1;
    1.10 +    clear_bit(_VPF_down, &v->pause_flags);
    1.11 +    vcpu_wake(v);
    1.12  
    1.13      return 0;
    1.14  }