Re: [PATCH 1/2] KVM: VMX: fix invalid cpu passed tosmp_call_function_single

From: Marcelo Tosatti
Date: Wed Nov 28 2012 - 19:22:14 EST


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 <xiaoguangrong@xxxxxxxxxxxxxxxxxx>
> ---
> arch/x86/kvm/vmx.c | 8 +++++---
> 1 files changed, 5 insertions(+), 3 deletions(-)

Applied, thanks.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/