Changeset 14679 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Nov 27, 2008 2:07:39 AM (16 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r14654 r14679 1902 1902 idCpuCheck = RTMpCpuId(); 1903 1903 #endif 1904 #ifdef LOG_LOGGING 1905 VMMR0LogFlushDisable(pVCpu); 1906 #endif 1904 1907 /* Save the host state first. */ 1905 1908 rc = VMXR0SaveHostState(pVM, pVCpu); … … 1990 1993 1991 1994 /* Note! NOW IT'S SAFE FOR LOGGING! */ 1995 #ifdef LOG_LOGGING 1996 VMMR0LogFlushEnable(pVCpu); 1997 #endif 1992 1998 Log2(("Raw exit reason %08x\n", exitReason)); 1993 1999 -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r14671 r14679 1024 1024 if ( !VALID_PTR(pR0Logger) 1025 1025 || !VALID_PTR(pR0Logger + 1) 1026 || !VALID_PTR(pLogger)1027 1026 || pLogger->u32Magic != RTLOGGER_MAGIC) 1028 1027 { … … 1032 1031 return; 1033 1032 } 1033 if (pR0Logger->fFlushingDisabled) 1034 return; /* quietly */ 1034 1035 1035 1036 PVM pVM = pR0Logger->pVM; … … 1055 1056 SUPR0Printf("vmmR0LoggerFlush: Jump buffer isn't armed!\n"); 1056 1057 #endif 1057 pLogger->offScratch = 0;1058 1058 return; 1059 1059 } … … 1063 1063 1064 1064 /** 1065 * Disables flushing of the ring-0 debug log. 1066 * 1067 * @param pVCpu The shared virtual cpu structure. 1068 */ 1069 VMMR0DECL(void) VMMR0LogFlushDisable(PVMCPU pVCpu) 1070 { 1071 PVM pVM = pVCpu->pVMR0; 1072 if (pVM->vmm.s.pR0LoggerR0) 1073 pVM->vmm.s.pR0LoggerR0->fFlushingDisabled = true; 1074 } 1075 1076 1077 /** 1078 * Enables flushing of the ring-0 debug log. 1079 * 1080 * @param pVCpu The shared virtual cpu structure. 1081 */ 1082 VMMR0DECL(void) VMMR0LogFlushEnable(PVMCPU pVCpu) 1083 { 1084 PVM pVM = pVCpu->pVMR0; 1085 if (pVM->vmm.s.pR0LoggerR0) 1086 pVM->vmm.s.pR0LoggerR0->fFlushingDisabled = false; 1087 } 1088 1089 1090 /** 1065 1091 * Jump back to ring-3 if we're the EMT and the longjmp is armed. 1066 1092 * … … 1069 1095 DECLEXPORT(bool) RTCALL RTAssertShouldPanic(void) 1070 1096 { 1097 #if 0 1098 return true; 1099 #else 1071 1100 PVM pVM = GVMMR0GetVMByEMT(NIL_RTNATIVETHREAD); 1072 1101 if (pVM) … … 1086 1115 #else 1087 1116 return false; 1117 #endif 1088 1118 #endif 1089 1119 }
Note:
See TracChangeset
for help on using the changeset viewer.