summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorPaolo Bonzini2013-08-27 15:41:42 +0200
committerGleb Natapov2013-08-28 16:13:15 +0200
commit94452b9e3401691c4d34a5a6f6a3a5b4e9c50a48 (patch)
tree1edd526965b52c65f33267986386b2511c67158f /arch/x86/kvm/vmx.c
parentKVM: rename __kvm_io_bus_sort_cmp to kvm_io_bus_cmp (diff)
downloadkernel-qcow2-linux-94452b9e3401691c4d34a5a6f6a3a5b4e9c50a48.tar.gz
kernel-qcow2-linux-94452b9e3401691c4d34a5a6f6a3a5b4e9c50a48.tar.xz
kernel-qcow2-linux-94452b9e3401691c4d34a5a6f6a3a5b4e9c50a48.zip
KVM: vmx: count exits to userspace during invalid guest emulation
These will happen due to MMIO. Suggested-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Gleb Natapov <gleb@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 57b4e129891a..1f1da43ff2a2 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5485,6 +5485,7 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu)
err = emulate_instruction(vcpu, EMULTYPE_NO_REEXECUTE);
if (err == EMULATE_USER_EXIT) {
+ ++vcpu->stat.mmio_exits;
ret = 0;
goto out;
}