VirtualBox

Changeset 52172 in vbox


Ignore:
Timestamp:
Jul 24, 2014 4:11:50 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
95219
Message:

VMM/HMVMXR0: Clear inhibit-interrupts force-flag when only NMI blocking is in effect. Don't start VM with NMI-window exiting control set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r52166 r52172  
    24562456    }
    24572457
    2458     /* If we're using virtual NMIs, we need the NMI-window exiting feature. */
    2459     if (   (pVCpu->hm.s.vmx.u32PinCtls & VMX_VMCS_CTRL_PIN_EXEC_VIRTUAL_NMI)
    2460         && (pVM->hm.s.vmx.Msrs.VmxProcCtls.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC_NMI_WINDOW_EXIT))
    2461     {
    2462         val |= VMX_VMCS_CTRL_PROC_EXEC_NMI_WINDOW_EXIT;
    2463     }
    2464 
    24652458    /* Use the secondary processor-based VM-execution controls if supported by the CPU. */
    24662459    if (pVM->hm.s.vmx.Msrs.VmxProcCtls.n.allowed1 & VMX_VMCS_CTRL_PROC_EXEC_USE_SECONDARY_EXEC_CTRL)
     
    35043497{
    35053498    /*
    3506      * Instructions like STI and MOV SS inhibit interrupts till the next instruction completes. Check if we should
    3507      * inhibit interrupts or clear any existing interrupt-inhibition.
     3499     * Check if we should inhibit interrupt delivery due to instructions like STI and MOV SS.
    35083500     */
    35093501    uint32_t uIntrState = 0;
     
    61456137                Assert(VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_INHIBIT_INTERRUPTS));
    61466138            }
     6139            else if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_INHIBIT_INTERRUPTS))
     6140                VMCPU_FF_CLEAR(pVCpu, VMCPU_FF_INHIBIT_INTERRUPTS);
    61476141
    61486142            if (uIntrState & VMX_VMCS_GUEST_INTERRUPTIBILITY_STATE_BLOCK_NMI)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette