KVM: Use the scheduler preemption notifiers to make kvm preemptible
authorAvi Kivity <avi@qumranet.com>
Wed, 11 Jul 2007 15:17:21 +0000 (18:17 +0300)
committerAvi Kivity <avi@qumranet.com>
Sat, 13 Oct 2007 08:18:20 +0000 (10:18 +0200)
commit1d6e0a5d0a812172fe1fcee58a0fbe03803de5bf
tree1ea549e5c5629561c121a54def146fb6b706c2d4
parenta7bc487f91df205ccce6effd31adb1109758574d
KVM: Use the scheduler preemption notifiers to make kvm preemptible

Current kvm disables preemption while the new virtualization registers are
in use.  This of course is not very good for latency sensitive workloads (one
use of virtualization is to offload user interface and other latency
insensitive stuff to a container, so that it is easier to analyze the
remaining workload).  This patch re-enables preemption for kvm; preemption
is now only disabled when switching the registers in and out, and during
the switch to guest mode and back.

Contains fixes from Shaohua Li <shaohua.li@intel.com>.

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/Kconfig
drivers/kvm/kvm.h
drivers/kvm/kvm_main.c
drivers/kvm/mmu.c
drivers/kvm/svm.c
drivers/kvm/vmx.c