]> Pileus Git - ~andy/linux/commitdiff
KVM: vmx: count exits to userspace during invalid guest emulation
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Aug 2013 13:41:42 +0000 (15:41 +0200)
committerGleb Natapov <gleb@redhat.com>
Wed, 28 Aug 2013 14:13:15 +0000 (17:13 +0300)
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>
arch/x86/kvm/vmx.c

index 57b4e129891a6f2d1752988618a3202762bd0151..1f1da43ff2a2ca66a137c434cf738dbf7a03e704 100644 (file)
@@ -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;
                }