mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 17:12:55 +00:00
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>
This commit is contained in:
parent
c21fbff16b
commit
94452b9e34
@ -5485,6 +5485,7 @@ static int handle_invalid_guest_state(struct kvm_vcpu *vcpu)
|
|||||||
err = emulate_instruction(vcpu, EMULTYPE_NO_REEXECUTE);
|
err = emulate_instruction(vcpu, EMULTYPE_NO_REEXECUTE);
|
||||||
|
|
||||||
if (err == EMULATE_USER_EXIT) {
|
if (err == EMULATE_USER_EXIT) {
|
||||||
|
++vcpu->stat.mmio_exits;
|
||||||
ret = 0;
|
ret = 0;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user