summaryrefslogtreecommitdiff
path: root/arch/arm/kvm/arm.c
diff options
context:
space:
mode:
authorEric Auger <eric.auger@linaro.org>2016-03-07 19:50:36 +0300
committerChristoffer Dall <christoffer.dall@linaro.org>2016-03-21 12:45:22 +0300
commit898f949fb7bc1210b79f06a04d1956d106a32633 (patch)
tree9f93b5c90a877c20e581613c16e1f5953756adce /arch/arm/kvm/arm.c
parent643ad15d47410d37d43daf3ef1c8ac52c281efa5 (diff)
downloadlinux-898f949fb7bc1210b79f06a04d1956d106a32633.tar.xz
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>
Diffstat (limited to 'arch/arm/kvm/arm.c')
-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();
}
/**