]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Avoid calling smp_call_function_single() with interrupts disabled
authorAvi Kivity <avi@qumranet.com>
Sun, 19 Aug 2007 12:57:26 +0000 (15:57 +0300)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 19 Aug 2007 17:13:49 +0000 (10:13 -0700)
commitde7015040bbaabe3608cb2c7b63b5a6b5d74b831
tree4dfe5b828a8f051304028776e8f0203537275e04
parentaaa1f26d2221e51f1616c25c2fdbcf25319308e0
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: Paolo Ornati <ornati@fastwebnet.it>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/kvm/kvm_main.c