From: Eric Auger Date: Mon, 7 Mar 2016 16:50:36 +0000 (+0700) Subject: KVM: arm/arm64: disable preemption when calling smp_call_function_many X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=898f949fb7bc1210b79f06a04d1956d106a32633;p=openwrt%2Fstaging%2Fblogic.git KVM: arm/arm64: disable preemption when calling smp_call_function_many Preemption must be disabled when calling smp_call_function_many Reported-by: bartosz.wawrzyniak@tieto.com Signed-off-by: Eric Auger Signed-off-by: Christoffer Dall --- diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c index 3e0fb66d8e05..6accd66d26f0 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -373,7 +373,9 @@ static void exit_vm_noop(void *info) void force_vm_exit(const cpumask_t *mask) { + preempt_disable(); smp_call_function_many(mask, exit_vm_noop, NULL, true); + preempt_enable(); } /**