From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Zhai, Edwin" Subject: Re: HVM smp guest save/restore support Date: Wed, 24 Jan 2007 21:30:24 +0800 Message-ID: <20070124133024.GC15711@edwin-srv.sh.intel.com> References: <20070123153433.GA10106@edwin-srv.sh.intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Dxnq1zWXvFF0Q93v" Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: Tim , xen-devel@lists.xensource.com, "Zhai, Edwin" List-Id: xen-devel@lists.xenproject.org --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Jan 23, 2007 at 03:49:04PM +0000, Keir Fraser wrote: > All hvm vcpu context restore should be done via the new hvm domctl, and the > wakeup of APs can be implemented there (rather than in common/ directory). how about this patch? thanks, > > -- Keir > -- best rgds, edwin --Dxnq1zWXvFF0Q93v Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="smp_fix_save_restore.patch" diff -r bea505a69722 xen/arch/x86/hvm/vmx/vmx.c --- a/xen/arch/x86/hvm/vmx/vmx.c Tue Jan 23 15:58:05 2007 +0000 +++ b/xen/arch/x86/hvm/vmx/vmx.c Wed Jan 24 17:37:51 2007 +0800 @@ -659,6 +659,12 @@ int vmx_load_vmcs_ctxt(hvm_domain_contex printk("vmx_vmcs restore failed!\n"); domain_crash(v->domain); return -EINVAL; + } + + /* wake up this vcpu for smp support */ + if ( is_hvm_vcpu(v) && + test_and_clear_bit(_VCPUF_down, &v->vcpu_flags) ) { + vcpu_wake(v); } return 0; --Dxnq1zWXvFF0Q93v 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 --Dxnq1zWXvFF0Q93v--