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>
This commit is contained in:
Yaozu Dong 2007-04-25 16:49:19 +03:00 committed by Avi Kivity
commit 3fca036530