projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c21fbff
)
KVM: vmx: count exits to userspace during invalid guest emulation
author
Paolo Bonzini
<pbonzini@redhat.com>
Tue, 27 Aug 2013 13:41:42 +0000
(15:41 +0200)
committer
Gleb 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
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx.c
b/arch/x86/kvm/vmx.c
index 57b4e129891a6f2d1752988618a3202762bd0151..1f1da43ff2a2ca66a137c434cf738dbf7a03e704 100644
(file)
--- 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;
}