diff mbox

[PULL,1/3] KVM: arm/arm64: disable preemption when calling smp_call_function_many

Message ID 1458634776-18388-2-git-send-email-christoffer.dall@linaro.org
State Accepted
Commit 898f949fb7bc1210b79f06a04d1956d106a32633
Headers show

Commit Message

Christoffer Dall March 22, 2016, 8:19 a.m. UTC
From: Eric Auger <eric.auger@linaro.org>


Preemption must be disabled when calling smp_call_function_many

Reported-by: bartosz.wawrzyniak@tieto.com
Signed-off-by: Eric Auger <eric.auger@linaro.org>

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>

---
 arch/arm/kvm/arm.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.1.2.330.g565301e.dirty


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
diff mbox

Patch

diff --git a/arch/arm/kvm/arm.c b/arch/arm/kvm/arm.c
index 3e0fb66..6accd66 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();
 }
 
 /**