aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx.c
diff options
context:
space:
mode:
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>2013-06-07 04:51:25 -0400
committerGleb Natapov <gleb@redhat.com>2013-06-27 07:20:17 -0400
commitb37fbea6cefc3a8ff7b6cfec9867432d1a10046d (patch)
treeff8d604eeeb37e1356fd2b5760955f850f870b6f /arch/x86/kvm/vmx.c
parentf2fd125d32822ee32779551a70d256a7c27dbe40 (diff)
KVM: MMU: make return value of mmio page fault handler more readable
Define some meaningful names instead of raw code Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> Reviewed-by: Gleb Natapov <gleb@redhat.com> Reviewed-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r--arch/x86/kvm/vmx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index 78ee123de7a3..85c8d51dcbe7 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -5366,10 +5366,10 @@ static int handle_ept_misconfig(struct kvm_vcpu *vcpu)
5366 gpa = vmcs_read64(GUEST_PHYSICAL_ADDRESS); 5366 gpa = vmcs_read64(GUEST_PHYSICAL_ADDRESS);
5367 5367
5368 ret = handle_mmio_page_fault_common(vcpu, gpa, true); 5368 ret = handle_mmio_page_fault_common(vcpu, gpa, true);
5369 if (likely(ret == 1)) 5369 if (likely(ret == RET_MMIO_PF_EMULATE))
5370 return x86_emulate_instruction(vcpu, gpa, 0, NULL, 0) == 5370 return x86_emulate_instruction(vcpu, gpa, 0, NULL, 0) ==
5371 EMULATE_DONE; 5371 EMULATE_DONE;
5372 if (unlikely(!ret)) 5372 if (unlikely(ret == RET_MMIO_PF_RETRY))
5373 return 1; 5373 return 1;
5374 5374
5375 /* It is the real ept misconfig */ 5375 /* It is the real ept misconfig */