From: Paolo Bonzini Date: Tue, 27 Aug 2013 13:41:42 +0000 (+0200) Subject: KVM: vmx: count exits to userspace during invalid guest emulation X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=94452b9e3401691c4d34a5a6f6a3a5b4e9c50a48;p=linux-beck.git KVM: vmx: count exits to userspace during invalid guest emulation These will happen due to MMIO. Suggested-by: Gleb Natapov Signed-off-by: Paolo Bonzini Signed-off-by: Gleb Natapov --- 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; }