From: Avi Kivity Date: Mon, 7 Mar 2011 15:39:45 +0000 (+0200) Subject: KVM: VMX: Use cached VM_EXIT_INTR_INFO in handle_exception X-Git-Tag: v3.0~722^2~122 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=887864758580c80710947c38a4692032163777df;p=platform%2Fkernel%2Flinux-amlogic.git KVM: VMX: Use cached VM_EXIT_INTR_INFO in handle_exception vmx_complete_atomic_exit() cached it for us, so we can use it here. Signed-off-by: Avi Kivity --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index f95f48b..1bdb49d 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3118,7 +3118,7 @@ static int handle_exception(struct kvm_vcpu *vcpu) enum emulation_result er; vect_info = vmx->idt_vectoring_info; - intr_info = vmcs_read32(VM_EXIT_INTR_INFO); + intr_info = vmx->exit_intr_info; if (is_machine_check(intr_info)) return handle_machine_check(vcpu);