]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/xen.git/commitdiff
x86 vmx: Reuse idtv_info to avoid double read of IDT_VECTORING.
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 28 Apr 2009 12:45:08 +0000 (13:45 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 28 Apr 2009 12:45:08 +0000 (13:45 +0100)
Signed-off-by: Eddie Dong <eddie.dong@intel.com>
xen/arch/x86/hvm/vmx/vmx.c

index 2d4c44bd63f0a0eef9239bee022d54ba2f3af194..ff200cb5f1da9f21692379431705b352ad4d9b23 100644 (file)
@@ -2347,7 +2347,7 @@ asmlinkage void vmx_vmexit_handler(struct cpu_user_regs *regs)
          * (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)