summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2013-06-25 18:24:41 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2013-07-29 09:01:14 +0200
commitac0a48c39af31fe27bdb1afca7b26f109ff1c704 (patch)
tree2c2d3cecadd5333b8ed8fa147b2e61ed2d5bced4 /arch/x86/kvm/mmu.c
parentKVM: introduce __kvm_io_bus_sort_cmp (diff)
downloadlinux-ac0a48c39af31fe27bdb1afca7b26f109ff1c704.tar.xz
linux-ac0a48c39af31fe27bdb1afca7b26f109ff1c704.zip
KVM: x86: rename EMULATE_DO_MMIO
The next patch will reuse it for other userspace exits than MMIO, namely debug events. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 3a9493ad1066..2c1bb95bb93c 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -4182,7 +4182,7 @@ int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t cr2, u32 error_code,
switch (er) {
case EMULATE_DONE:
return 1;
- case EMULATE_DO_MMIO:
+ case EMULATE_USER_EXIT:
++vcpu->stat.mmio_exits;
/* fall through */
case EMULATE_FAIL: