ia64/xen-unstable

changeset 19582:648d7de355dd

x86 vmx: Reuse idtv_info to avoid double read of IDT_VECTORING.

Signed-off-by: Eddie Dong <eddie.dong@intel.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 28 13:45:08 2009 +0100 (2009-04-28)
parents f734a724902b
children ea068394ec12
files xen/arch/x86/hvm/vmx/vmx.c
line diff
     1.1 --- a/xen/arch/x86/hvm/vmx/vmx.c	Mon Apr 27 18:59:56 2009 +0100
     1.2 +++ b/xen/arch/x86/hvm/vmx/vmx.c	Tue Apr 28 13:45:08 2009 +0100
     1.3 @@ -2347,7 +2347,7 @@ asmlinkage void vmx_vmexit_handler(struc
     1.4           * (NB. If we emulate this IRET for any reason, we should re-clear!)
     1.5           */
     1.6          if ( unlikely(intr_info & INTR_INFO_NMI_UNBLOCKED_BY_IRET) &&
     1.7 -             !(__vmread(IDT_VECTORING_INFO) & INTR_INFO_VALID_MASK) &&
     1.8 +             !(idtv_info & INTR_INFO_VALID_MASK) &&
     1.9               (vector != TRAP_double_fault) )
    1.10              __vmwrite(GUEST_INTERRUPTIBILITY_INFO,
    1.11                        __vmread(GUEST_INTERRUPTIBILITY_INFO)