From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Sharma Subject: Re: [PATCH] fix-multiple-vmxon.patch Date: Wed, 20 Apr 2005 17:59:00 -0700 Message-ID: <4266FAD4.3020905@intel.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------010706080102020304080109" Return-path: 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: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------010706080102020304080109 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 4/20/2005 5:01 PM, Arun Sharma wrote: > --- xen/arch/x86/smpboot.c~fix-multiple-vmxon 2005-04-11 08:52:26.293486000 -0700 > +++ xen-askeshav/arch/x86/smpboot.c 2005-04-11 08:58:58.513486000 -0700 The patch doesn't apply with -p1. The attached patch should be better. -Arun --------------010706080102020304080109 Content-Type: text/plain; name="fix-multiple-vmxon.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="fix-multiple-vmxon.patch" __vmxon() is called twice for the boot cpu, because identify_cpu() is called twice. This patch ensures that identify_cpu() and hence __vmxon() is called exactly once for the boot CPU. Signed-off-by: Anil S Keshavamurthy --- a/xen/arch/x86/smpboot.c~fix-multiple-vmxon 2005-04-11 08:52:26.293486000 -0700 +++ b/xen/arch/x86/smpboot.c 2005-04-11 08:58:58.513486000 -0700 @@ -114,7 +114,8 @@ void __init smp_alloc_memory(void) void __init smp_store_cpu_info(int id) { cpu_data[id] = boot_cpu_data; - identify_cpu(&cpu_data[id]); + if (id != 0) + identify_cpu(&cpu_data[id]); } /* _ --------------010706080102020304080109 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 --------------010706080102020304080109--