summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.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/x86.c
parenta343c9b7673e2228bc8a9ac65aae42140f6f9977 (diff)
downloadlwn-ac0a48c39af31fe27bdb1afca7b26f109ff1c704.tar.gz
lwn-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/x86.c')
-rw-r--r--arch/x86/kvm/x86.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index d2caeb9e592f..8589cc02789e 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -5038,11 +5038,11 @@ restart:
writeback = false;
vcpu->arch.complete_userspace_io = complete_emulated_pio;
}
- r = EMULATE_DO_MMIO;
+ r = EMULATE_USER_EXIT;
} else if (vcpu->mmio_needed) {
if (!vcpu->mmio_is_write)
writeback = false;
- r = EMULATE_DO_MMIO;
+ r = EMULATE_USER_EXIT;
vcpu->arch.complete_userspace_io = complete_emulated_mmio;
} else if (r == EMULATION_RESTART)
goto restart;