From: Kouya Shimura Subject: [PATCH] x86, hvm: set vcpu->is_initialised=1 after restore/migration Date: Fri, 12 Jun 2009 16:27:56 +0900 Message-ID: <7kr5xpewsj.fsf@pingu.sky.yk.fujitsu.co.jp> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="GaDaRtxHS9" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --GaDaRtxHS9 Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit After restore/migration, the xenctx command for auxiliary vcpus fails with a message "xc_vcpu_getcontext: No data available". Signed-off-by: Kouya Shimura --GaDaRtxHS9 Content-Type: text/x-patch Content-Disposition: inline; filename="hvm_restore.patch" Content-Transfer-Encoding: 7bit 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; } --GaDaRtxHS9 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --GaDaRtxHS9--