diff options
author | Eric Auger <eric.auger@linaro.org> | 2016-03-07 11:50:36 -0500 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2016-03-21 05:45:22 -0400 |
commit | 898f949fb7bc1210b79f06a04d1956d106a32633 (patch) | |
tree | 9f93b5c90a877c20e581613c16e1f5953756adce /arch/arm/kvm | |
parent | 643ad15d47410d37d43daf3ef1c8ac52c281efa5 (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>
Diffstat (limited to 'arch/arm/kvm')
-rw-r--r-- | arch/arm/kvm/arm.c | 2 |
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) | |||
373 | 373 | ||
374 | void force_vm_exit(const cpumask_t *mask) | 374 | void force_vm_exit(const cpumask_t *mask) |
375 | { | 375 | { |
376 | preempt_disable(); | ||
376 | smp_call_function_many(mask, exit_vm_noop, NULL, true); | 377 | smp_call_function_many(mask, exit_vm_noop, NULL, true); |
378 | preempt_enable(); | ||
377 | } | 379 | } |
378 | 380 | ||
379 | /** | 381 | /** |