Skip to content

Commit

Permalink
KVM: VMX: Use cached VM_EXIT_INTR_INFO in handle_exception
Browse files Browse the repository at this point in the history
vmx_complete_atomic_exit() cached it for us, so we can use it here.

Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Avi Kivity committed May 11, 2011
1 parent c5ca8e5 commit 8878647
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8878647

Please sign in to comment.