summaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm.h
diff options
context:
space:
mode:
authorAvi Kivity2007-04-30 15:07:54 +0200
committerAvi Kivity2007-07-16 11:05:38 +0200
commite6adf28365b2fca0b5235cabff00c9f3d1e7bdf4 (patch)
tree75cdf0f0635a32e9337a4c2e3e5f332cf932f902 /drivers/kvm/kvm.h
parentKVM: Assume that writes smaller than 4 bytes are to non-pagetable pages (diff)
downloadkernel-qcow2-linux-e6adf28365b2fca0b5235cabff00c9f3d1e7bdf4.tar.gz
kernel-qcow2-linux-e6adf28365b2fca0b5235cabff00c9f3d1e7bdf4.tar.xz
kernel-qcow2-linux-e6adf28365b2fca0b5235cabff00c9f3d1e7bdf4.zip
KVM: Avoid saving and restoring some host CPU state on lightweight vmexit
Many msrs and the like will only be used by the host if we schedule() or return to userspace. Therefore, we avoid saving them if we handle the exit within the kernel, and if a reschedule is not requested. Based on a patch from Eddie Dong <eddie.dong@intel.com> with a couple of fixes by me. Signed-off-by: Yaozu(Eddie) Dong <eddie.dong@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r--drivers/kvm/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h
index 152312c1fafa..7facebd1911d 100644
--- a/drivers/kvm/kvm.h
+++ b/drivers/kvm/kvm.h
@@ -252,6 +252,7 @@ struct kvm_stat {
u32 halt_exits;
u32 request_irq_exits;
u32 irq_exits;
+ u32 light_exits;
};
struct kvm_vcpu {