]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/kvm_host.h
KVM: use yield_to instead of sleep in kvm_vcpu_on_spin
authorRik van Riel <riel@redhat.com>
Tue, 1 Feb 2011 14:53:28 +0000 (09:53 -0500)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 17 Mar 2011 16:08:29 +0000 (13:08 -0300)
commit217ece6129f2d3b4fdd18d9e79be9e43d8d14a42
treeb2bbd81042f48e862e0c0b8743edc932102640bb
parent34bb10b79de7df118de832f6832efb630e646577
KVM: use yield_to instead of sleep in kvm_vcpu_on_spin

Instead of sleeping in kvm_vcpu_on_spin, which can cause gigantic
slowdowns of certain workloads, we instead use yield_to to get
another VCPU in the same KVM guest to run sooner.

This seems to give a 10-15% speedup in certain workloads.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c