From: Xiao Guangrong Date: Wed, 28 Nov 2012 12:53:15 +0000 (+0800) Subject: KVM: VMX: fix invalid cpu passed to smp_call_function_single X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~27^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e6c7d32172f10b68fa9a3be05aa1231352a52171;p=pandora-kernel.git KVM: VMX: fix invalid cpu passed to smp_call_function_single 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 Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed