Reuse idtv_info to avoid double read of IDT_VECTORING. Signed-off-by: Eddie Dong <eddie.dong@intel.com> diff -r 694b7daa353c xen/arch/x86/hvm/vmx/vmx.c --- a/xen/arch/x86/hvm/vmx/vmx.c Wed Sep 17 14:16:02 2008 +0100 +++ b/xen/arch/x86/hvm/vmx/vmx.c Mon Apr 27 17:14:12 2009 +0800 @@ -2098,7 +2098,7 @@ asmlinkage void vmx_vmexit_handler(struc * (NB. If we emulate this IRET for any reason, we should re-clear!) */ if ( unlikely(intr_info & INTR_INFO_NMI_UNBLOCKED_BY_IRET) && - !(__vmread(IDT_VECTORING_INFO) & INTR_INFO_VALID_MASK) && + !(idtv_info & INTR_INFO_VALID_MASK) && (vector != TRAP_double_fault) ) __vmwrite(GUEST_INTERRUPTIBILITY_INFO, __vmread(GUEST_INTERRUPTIBILITY_INFO) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel