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

[Xen-devel] [PATCH] x86, hvm: set vcpu->is_initialised=1 after restore/m

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] x86, hvm: set vcpu->is_initialised=1 after restore/migration
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: Fri, 12 Jun 2009 16:27:56 +0900
Delivery-date: Fri, 12 Jun 2009 00:28:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxx>

diff -r 4448fae52553 xen/arch/x86/hvm/hvm.c
--- a/xen/arch/x86/hvm/hvm.c    Mon Jun 08 12:24:14 2009 +0100
+++ b/xen/arch/x86/hvm/hvm.c    Fri Jun 12 16:02:28 2009 +0900
@@ -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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] x86, hvm: set vcpu->is_initialised=1 after restore/migration, Kouya Shimura <=