VirtualBox

Changeset 90829 in vbox for trunk/src/VBox/VMM/VMMRZ


Ignore:
Timestamp:
Aug 24, 2021 10:26:07 AM (3 years ago)
Author:
vboxsync
Message:

IPRT,VMM,SUPDrv,++: Reworked the IPRT logger structure and how the VMM ring-0 uses it. bugref:10086

File:
1 edited

Legend:

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

    r82968 r90829  
    144144        pVCpu->pVMRC->vmm.s.fRCLoggerFlushingDisabled = true;
    145145#else
    146 # ifdef LOG_ENABLED
    147         if (pVCpu->vmm.s.pR0LoggerR0)
    148             pVCpu->vmm.s.pR0LoggerR0->fFlushingDisabled = true;
    149 # endif
    150         if (pVCpu->vmm.s.pR0RelLoggerR0)
    151             pVCpu->vmm.s.pR0RelLoggerR0->fFlushingDisabled = true;
     146        pVCpu->vmmr0.s.fLogFlushingDisabled = true;
     147        if (pVCpu->vmmr0.s.Logger.pLogger)
     148            pVCpu->vmmr0.s.Logger.pLogger->u32UserValue1 |= VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED;
     149        if (pVCpu->vmmr0.s.RelLogger.pLogger)
     150            pVCpu->vmmr0.s.RelLogger.pLogger->u32UserValue1 |= VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED;
    152151#endif
    153152    }
     
    178177        pVCpu->pVMRC->vmm.s.fRCLoggerFlushingDisabled = false;
    179178#else
    180 # ifdef LOG_ENABLED
    181         if (pVCpu->vmm.s.pR0LoggerR0)
    182             pVCpu->vmm.s.pR0LoggerR0->fFlushingDisabled = false;
    183 # endif
    184         if (pVCpu->vmm.s.pR0RelLoggerR0)
    185             pVCpu->vmm.s.pR0RelLoggerR0->fFlushingDisabled = false;
     179        pVCpu->vmmr0.s.fLogFlushingDisabled = false;
     180        if (pVCpu->vmmr0.s.Logger.pLogger)
     181            pVCpu->vmmr0.s.Logger.pLogger->u32UserValue1 &= ~VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED;
     182        if (pVCpu->vmmr0.s.RelLogger.pLogger)
     183            pVCpu->vmmr0.s.RelLogger.pLogger->u32UserValue1 &= ~VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED;
    186184#endif
    187185    }
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