VirtualBox

Changeset 19813 in vbox


Ignore:
Timestamp:
May 19, 2009 11:57:13 AM (15 years ago)
Author:
vboxsync
Message:

Some cleanup

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r19812 r19813  
    989989     * This must be done *before* we check for TLB flushes; TLB shootdowns rely on this.
    990990     */
    991     RTCCUINTREG uFlags = ASMIntDisableFlags();
     991    RTCCUINTREG uOldEFlags = ASMIntDisableFlags();
    992992    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED_EXEC);
    993993
     
    10811081    TMNotifyEndOfExecution(pVCpu);
    10821082    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
    1083     ASMSetFlags(uFlags);
     1083    ASMSetFlags(uOldEFlags);
    10841084    STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatInGC, x);
    10851085
     
    24002400{
    24012401    int             rc;
    2402     RTHCUINTREG     uFlags;
     2402    RTHCUINTREG     uOldEFlags;
    24032403
    24042404    /* @todo This code is not guest SMP safe (hyper stack) */
     
    24062406    Assert(pfnHandler);
    24072407
    2408     uFlags = ASMIntDisableFlags();
     2408    uOldEFlags = ASMIntDisableFlags();
    24092409
    24102410    CPUMSetHyperESP(pVCpu, VMMGetStackRC(pVM));
     
    24182418    STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatWorldSwitch3264, z);
    24192419
    2420     ASMSetFlags(uFlags);
     2420    ASMSetFlags(uOldEFlags);
    24212421    return rc;
    24222422}
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r19812 r19813  
    21952195     * This must be done *before* we check for TLB flushes; TLB shootdowns rely on this.
    21962196     */
    2197     RTCCUINTREG uFlags = ASMIntDisableFlags();
     2197    RTCCUINTREG uOldEFlags = ASMIntDisableFlags();
    21982198    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED_EXEC);
    21992199
     
    22362236    TMNotifyEndOfExecution(pVCpu);
    22372237    VMCPU_SET_STATE(pVCpu, VMCPUSTATE_STARTED);
    2238     ASMSetFlags(uFlags);
     2238    ASMSetFlags(uOldEFlags);
    22392239
    22402240    AssertMsg(!pVCpu->hwaccm.s.vmx.VMCSCache.Write.cValidEntries, ("pVCpu->hwaccm.s.vmx.VMCSCache.Write.cValidEntries=%d\n", pVCpu->hwaccm.s.vmx.VMCSCache.Write.cValidEntries));
Note: See TracChangeset for help on using the changeset viewer.

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