From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 1/2] KVM: VMX: fix invalid cpu passed to smp_call_function_single Date: Wed, 28 Nov 2012 22:06:02 -0200 Message-ID: <20121129000602.GB17264@amt.cnet> References: <50B6093B.7040404@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , Gleb Natapov , LKML , KVM To: Xiao Guangrong Return-path: Content-Disposition: inline In-Reply-To: <50B6093B.7040404@linux.vnet.ibm.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, Nov 28, 2012 at 08:53:15PM +0800, Xiao Guangrong wrote: > In loaded_vmcs_clear, loaded_vmcs->cpu is the fist parameter passed to > smp_call_function_single, if the target cpu is downing (doing cpu hot remove), > loaded_vmcs->cpu can become -1 then -1 is passed to smp_call_function_single > > It can be triggered when vcpu is being destroyed, loaded_vmcs_clear is called > in the preemptionable context > > Signed-off-by: Xiao Guangrong > --- > arch/x86/kvm/vmx.c | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) Applied, thanks.