Skip to contentSkip to conversation

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

PATCH New Kouya Shimura 1 participant 1 message Jun 12, 2009

lore
Share & tools
lore
#0 lore raw

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

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

xen/arch/x86/hvm/hvm.c +3 -0
diff -r 4448fae52553 xen/arch/x86/hvm/hvm.c
@@ -661,7 +661,10 @@ static int hvm_load_cpu_ctxt(struct doma
 
     /* Auxiliary processors should be woken immediately. */
     if ( test_and_clear_bit(_VPF_down, &v->pause_flags) )
+    {
+        v->is_initialised = 1;
         vcpu_wake(v);
+    }
 
     return 0;
 }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel