Skip to content
Commit 15ad7146 authored by Avi Kivity's avatar Avi Kivity
Browse files

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: default avatarAvi Kivity <avi@qumranet.com>
parent 519ef353
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