From: Jan Kiszka Date: Mon, 1 Nov 2010 13:01:13 +0000 (+0100) Subject: KVM: x86: Issue smp_call_function_many with preemption disabled X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=453d9c57e27b4401bc3e98906bcac31ae8be0165;p=sagit-ice-cold%2Fkernel_xiaomi_msm8998.git KVM: x86: Issue smp_call_function_many with preemption disabled smp_call_function_many is specified to be called only with preemption disabled. Fulfill this requirement. Signed-off-by: Jan Kiszka Signed-off-by: Marcelo Tosatti --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 463c65b8f93f..cdac9e592aa5 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -3978,8 +3978,10 @@ int kvm_emulate_wbinvd(struct kvm_vcpu *vcpu) return X86EMUL_CONTINUE; if (kvm_x86_ops->has_wbinvd_exit()) { + preempt_disable(); smp_call_function_many(vcpu->arch.wbinvd_dirty_mask, wbinvd_ipi, NULL, 1); + preempt_enable(); cpumask_clear(vcpu->arch.wbinvd_dirty_mask); } wbinvd();