diff options
author | Paolo Bonzini | 2013-08-27 15:41:42 +0200 |
---|---|---|
committer | Gleb Natapov | 2013-08-28 17:13:15 +0300 |
commit | 94452b9e3401691c4d34a5a6f6a3a5b4e9c50a48 (patch) | |
tree | 1edd526965b52c65f33267986386b2511c67158f /arch/x86/kvm | |
parent | c21fbff16b5d43d608966a2963fb248bebce257f (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>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r-- | arch/x86/kvm/vmx.c | 1 |
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; } |