]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
KVM: VMX: Avoid unnecessary vcpu_load()/vcpu_put() cycles
authorYaozu Dong <eddie.dong@intel.com>
Wed, 25 Apr 2007 13:49:19 +0000 (16:49 +0300)
committerAvi Kivity <avi@qumranet.com>
Thu, 3 May 2007 07:52:30 +0000 (10:52 +0300)
commit3fca03653010b8c5fa63b99fc94c78cbfb433d00
tree9102be63cdedd172fa1d58959218d1c698df7848
parentd6c69ee9a24b307ce94e55ebfba6208a830c9ecb
KVM: VMX: Avoid unnecessary vcpu_load()/vcpu_put() cycles

By checking if a reschedule is needed, we avoid dropping the vcpu.

[With changes by me, based on Anthony Liguori's observations]

Signed-off-by: Avi Kivity <avi@qumranet.com>
drivers/kvm/kvm_main.c