aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-08-27 09:41:42 -0400
committerGleb Natapov <gleb@redhat.com>2013-08-28 10:13:15 -0400
commit94452b9e3401691c4d34a5a6f6a3a5b4e9c50a48 (patch)
tree1edd526965b52c65f33267986386b2511c67158f
parentc21fbff16b5d43d608966a2963fb248bebce257f (diff)
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>
-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)
5485 err = emulate_instruction(vcpu, EMULTYPE_NO_REEXECUTE); 5485 err = emulate_instruction(vcpu, EMULTYPE_NO_REEXECUTE);
5486 5486
5487 if (err == EMULATE_USER_EXIT) { 5487 if (err == EMULATE_USER_EXIT) {
5488 ++vcpu->stat.mmio_exits;
5488 ret = 0; 5489 ret = 0;
5489 goto out; 5490 goto out;
5490 } 5491 }