Commit 898f949f authored by Eric Auger's avatar Eric Auger Committed by Christoffer Dall

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: default avatarEric Auger <eric.auger@linaro.org>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
parent 643ad15d
...@@ -373,7 +373,9 @@ static void exit_vm_noop(void *info) ...@@ -373,7 +373,9 @@ static void exit_vm_noop(void *info)
void force_vm_exit(const cpumask_t *mask) void force_vm_exit(const cpumask_t *mask)
{ {
preempt_disable();
smp_call_function_many(mask, exit_vm_noop, NULL, true); smp_call_function_many(mask, exit_vm_noop, NULL, true);
preempt_enable();
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment