Changeset 90953 in vbox
- Timestamp:
- Aug 27, 2021 12:45:24 PM (3 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
-
VMMR0/VMMR0.cpp (modified) (1 diff)
-
VMMRZ/VMMRZ.cpp (modified) (2 diffs)
-
include/VMMInternal.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r90948 r90953 3111 3111 * Can we wait on the log flusher to do the work? 3112 3112 */ 3113 if ( VMMRZCallRing3IsEnabled(pGVCpu) 3114 && !(pLogger->u32UserValue1 & VMMR0_LOGGER_FLAGS_FLUSHING_DISABLED)) 3113 if (VMMRZCallRing3IsEnabled(pGVCpu)) 3115 3114 { 3116 3115 /* -
trunk/src/VBox/VMM/VMMRZ/VMMRZ.cpp
r90948 r90953 139 139 if (ASMAtomicUoIncU32(&pVCpu->vmm.s.cCallRing3Disabled) == 1) 140 140 { 141 /** @todo it might make more sense to just disable logging here, then we142 * won't flush away important bits... but that goes both ways really. */143 141 #ifdef IN_RC 144 142 pVCpu->pVMRC->vmm.s.fRCLoggerFlushingDisabled = true; 145 143 #else 146 144 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;151 145 #endif 152 146 } … … 178 172 #else 179 173 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;184 174 #endif 185 175 } -
trunk/src/VBox/VMM/include/VMMInternal.h
r90948 r90953 574 574 /** Part of the flags value used for the magic. */ 575 575 #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)578 576 /** @} */ 579 577
Note:
See TracChangeset
for help on using the changeset viewer.

