Skip to content
Commit 6ec8a856 authored by Avi Kivity's avatar Avi Kivity Committed by Linus Torvalds
Browse files

KVM: Avoid calling smp_call_function_single() with interrupts disabled



When taking a cpu down, we need to hardware_disable() it.
Unfortunately, the CPU_DYING notifier is called with interrupts
disabled, which means we can't use smp_call_function_single().

Fortunately, the CPU_DYING notifier is always called on the dying cpu,
so we don't need to use the function at all and can simply call
hardware_disable() directly.

Tested-by: default avatarPaolo Ornati <ornati@fastwebnet.it>
Signed-off-by: default avatarAvi Kivity <avi@qumranet.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent e598fbaa
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