Changeset 19702 in vbox for trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
- Timestamp:
- May 14, 2009 3:41:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r19671 r19702 189 189 190 190 /* 191 * Register the EMT R0 logger instance .191 * Register the EMT R0 logger instance for VCPU 0. 192 192 */ 193 PVMMR0LOGGER pR0Logger = pVM->vmm.s.pR0LoggerR0; 193 PVMCPU pVCpu = &pVM->aCpus[0]; 194 195 PVMMR0LOGGER pR0Logger = pVCpu->vmm.s.pR0LoggerR0; 194 196 if (pR0Logger) 195 197 { … … 759 761 760 762 case VMMR0_DO_GVMM_REGISTER_VMCPU: 763 { 761 764 if (!pVM) 762 765 return VERR_INVALID_PARAMETER; 766 767 #ifdef LOG_ENABLED 768 /* Register the ring 0 logger for this thread here as well. */ 769 PVMCPU pVCpu = &pVM->aCpus[idCpu]; 770 PVMMR0LOGGER pR0Logger = pVCpu->vmm.s.pR0LoggerR0; 771 if (pR0Logger) 772 RTLogSetDefaultInstanceThread(&pR0Logger->Logger, (uintptr_t)pVM->pSession); 773 #endif 763 774 return GVMMR0RegisterVCpu(pVM, idCpu); 775 } 764 776 765 777 case VMMR0_DO_GVMM_SCHED_HALT: … … 1194 1206 { 1195 1207 PVM pVM = pVCpu->pVMR0; 1196 if (pV M->vmm.s.pR0LoggerR0)1197 pV M->vmm.s.pR0LoggerR0->fFlushingDisabled = true;1208 if (pVCpu->vmm.s.pR0LoggerR0) 1209 pVCpu->vmm.s.pR0LoggerR0->fFlushingDisabled = true; 1198 1210 } 1199 1211 … … 1207 1219 { 1208 1220 PVM pVM = pVCpu->pVMR0; 1209 if (pV M->vmm.s.pR0LoggerR0)1210 pV M->vmm.s.pR0LoggerR0->fFlushingDisabled = false;1221 if (pVCpu->vmm.s.pR0LoggerR0) 1222 pVCpu->vmm.s.pR0LoggerR0->fFlushingDisabled = false; 1211 1223 } 1212 1224
Note:
See TracChangeset
for help on using the changeset viewer.