- Timestamp:
- Mar 5, 2009 8:33:58 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm.h
r17397 r17422 316 316 VMMRCDECL(void) VMMGCGuestToHost(PVM pVM, int rc); 317 317 VMMRCDECL(int) VMMGCCallHost(PVM pVM, VMMCALLHOST enmOperation, uint64_t uArg); 318 VMMRCDECL( void) VMMGCLogDisable(PVM pVM);319 VMMRCDECL(void) VMMGCLog Enable(PVM pVM);318 VMMRCDECL(bool) VMMGCLogDisable(PVM pVM); 319 VMMRCDECL(void) VMMGCLogRestore(PVM pVM, bool fLog); 320 320 VMMRCDECL(void) VMMGCLogFlushIfFull(PVM pVM); 321 321 /** @} */ -
trunk/src/VBox/VMM/VMMAll/PGMAllBth.h
r17398 r17422 4690 4690 # ifdef IN_RC 4691 4691 /** NOTE: We can't deal with jumps to ring 3 here as we're now in an inconsistent state! */ 4692 VMMGCLogDisable(pVM);4692 bool fLog = VMMGCLogDisable(pVM); 4693 4693 # endif 4694 4694 … … 4729 4729 4730 4730 # ifdef IN_RC 4731 VMMGCLog Enable(pVM);4731 VMMGCLogRestore(pVM, fLog); 4732 4732 # endif 4733 4733 -
trunk/src/VBox/VMM/VMMGC/VMMGC.cpp
r17411 r17422 195 195 196 196 /** 197 * Disables the GC logger temporarily 197 * Disables the GC logger temporarily, restore with VMMGCLogRestore. 198 198 * 199 199 * @param pVM The VM handle. 200 200 */ 201 VMMRCDECL(void) VMMGCLogDisable(PVM pVM) 202 { 203 if (pVM->vmm.s.pRCLoggerRC) 201 VMMRCDECL(bool) VMMGCLogDisable(PVM pVM) 202 { 203 bool fLog = pVM->vmm.s.pRCLoggerRC 204 && !(pVM->vmm.s.pRCLoggerRC->fFlags & RTLOGFLAGS_DISABLED); 205 if (fLog) 204 206 pVM->vmm.s.pRCLoggerRC->fFlags |= RTLOGFLAGS_DISABLED; 205 } 206 207 208 /** 209 * Enables the GC logger again 207 return fLog; 208 } 209 210 211 /** 212 * Restores the GC logger after a call to VMMGCLogDisable. 210 213 * 211 214 * @param pVM The VM handle. 212 */ 213 VMMRCDECL(void) VMMGCLogEnable(PVM pVM) 214 { 215 if (pVM->vmm.s.pRCLoggerRC) 215 * @param fLog What VMMGCLogDisable returned. 216 */ 217 VMMRCDECL(void) VMMGCLogRestore(PVM pVM, bool fLog) 218 { 219 if (fLog && pVM->vmm.s.pRCLoggerRC) 216 220 pVM->vmm.s.pRCLoggerRC->fFlags &= ~RTLOGFLAGS_DISABLED; 217 221 }
Note:
See TracChangeset
for help on using the changeset viewer.