aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Auger2016-03-07 23:50:36 +0700
committerChristoffer Dall2016-03-21 10:45:22 +0100
commit898f949fb7bc1210b79f06a04d1956d106a32633 (patch)
tree9f93b5c90a877c20e581613c16e1f5953756adce
parent643ad15d47410d37d43daf3ef1c8ac52c281efa5 (diff)
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 <eric.auger@linaro.org> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
-rw-r--r--arch/arm/kvm/arm.c2
1 files changed, 2 insertions, 0 deletions
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();
}
/**