VirtualBox

Changeset 90953 in vbox


Ignore:
Timestamp:
Aug 27, 2021 12:45:24 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Don't need the per-logger flushing-disabled flag (VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED). bugref:10086

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

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

    r90948 r90953  
    31113111                     * Can we wait on the log flusher to do the work?
    31123112                     */
    3113                     if (   VMMRZCallRing3IsEnabled(pGVCpu)
    3114                         && !(pLogger->u32UserValue1 & VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED))
     3113                    if (VMMRZCallRing3IsEnabled(pGVCpu))
    31153114                    {
    31163115                        /*
  • trunk/src/VBox/VMM/VMMRZ/VMMRZ.cpp

    r90948 r90953  
    139139    if (ASMAtomicUoIncU32(&pVCpu->vmm.s.cCallRing3Disabled) == 1)
    140140    {
    141         /** @todo it might make more sense to just disable logging here, then we
    142          * won't flush away important bits... but that goes both ways really. */
    143141#ifdef IN_RC
    144142        pVCpu->pVMRC->vmm.s.fRCLoggerFlushingDisabled = true;
    145143#else
    146144        pVCpu->vmmr0.s.fLogFlushingDisabled = true;
    147         if (pVCpu->vmmr0.s.u.s.Logger.pLogger)
    148             pVCpu->vmmr0.s.u.s.Logger.pLogger->u32UserValue1 |= VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED;
    149         if (pVCpu->vmmr0.s.u.s.RelLogger.pLogger)
    150             pVCpu->vmmr0.s.u.s.RelLogger.pLogger->u32UserValue1 |= VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED;
    151145#endif
    152146    }
     
    178172#else
    179173        pVCpu->vmmr0.s.fLogFlushingDisabled = false;
    180         if (pVCpu->vmmr0.s.u.s.Logger.pLogger)
    181             pVCpu->vmmr0.s.u.s.Logger.pLogger->u32UserValue1 &= ~VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED;
    182         if (pVCpu->vmmr0.s.u.s.RelLogger.pLogger)
    183             pVCpu->vmmr0.s.u.s.RelLogger.pLogger->u32UserValue1 &= ~VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED;
    184174#endif
    185175    }
  • trunk/src/VBox/VMM/include/VMMInternal.h

    r90948 r90953  
    574574/** Part of the flags value used for the magic. */
    575575#define VMMR0_LOGGER_FLAGS_MAGIC_MASK           UINT32_C(0xffffff0f)
    576 /** Set if flushing is disabled (copy of fLogFlushingDisabled). */
    577 #define VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED    UINT32_C(0x00000010)
    578576/** @} */
    579577
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