Changeset 20769 in vbox
- Timestamp:
- Jun 22, 2009 12:32:11 PM (15 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR0
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp
r20666 r20769 1029 1029 idCpuCheck = RTMpCpuId(); 1030 1030 #endif 1031 #ifdef LOG_ENABLED1032 1031 VMMR0LogFlushDisable(pVCpu); 1033 #endif1034 1032 1035 1033 /* Load the guest state; *must* be here as it sets up the shadow cr0 for lazy fpu syncing! */ 1036 1034 rc = SVMR0LoadGuestState(pVM, pVCpu, pCtx); 1037 if ( rc != VINF_SUCCESS)1035 if (RT_UNLIKELY(rc != VINF_SUCCESS)) 1038 1036 { 1039 1037 STAM_PROFILE_ADV_STOP(&pVCpu->hwaccm.s.StatEntry, x); 1038 VMMR0LogFlushEnable(pVCpu); 1040 1039 goto end; 1041 1040 } … … 1155 1154 exitCode = pVMCB->ctrl.u64ExitCode; 1156 1155 1157 if ( exitCode == (uint64_t)SVM_EXIT_INVALID)/* Invalid guest state. */1156 if (RT_UNLIKELY(exitCode == (uint64_t)SVM_EXIT_INVALID)) /* Invalid guest state. */ 1158 1157 { 1159 1158 HWACCMDumpRegs(pVM, pVCpu, pCtx); … … 1276 1275 #endif 1277 1276 rc = VERR_SVM_UNABLE_TO_START_VM; 1277 VMMR0LogFlushEnable(pVCpu); 1278 1278 goto end; 1279 1279 } … … 1326 1326 1327 1327 /* Note! NOW IT'S SAFE FOR LOGGING! */ 1328 #ifdef LOG_ENABLED1329 1328 VMMR0LogFlushEnable(pVCpu); 1330 #endif1331 1329 1332 1330 /* Take care of instruction fusing (sti, mov ss) (see 15.20.5 Interrupt Shadows) */ -
trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp
r20667 r20769 2274 2274 /* Save the host state first. */ 2275 2275 rc = VMXR0SaveHostState(pVM, pVCpu); 2276 if (rc != VINF_SUCCESS) 2276 if (RT_UNLIKELY(rc != VINF_SUCCESS)) 2277 { 2278 VMMR0LogFlushEnable(pVCpu); 2277 2279 goto end; 2280 } 2278 2281 /* Load the guest state */ 2279 2282 rc = VMXR0LoadGuestState(pVM, pVCpu, pCtx); 2280 if (rc != VINF_SUCCESS) 2283 if (RT_UNLIKELY(rc != VINF_SUCCESS)) 2284 { 2285 VMMR0LogFlushEnable(pVCpu); 2281 2286 goto end; 2287 } 2282 2288 2283 2289 #ifndef VBOX_WITH_VMMR0_DISABLE_PREEMPTION … … 2345 2351 STAM_PROFILE_ADV_START(&pVCpu->hwaccm.s.StatExit1, v); 2346 2352 2347 if ( rc != VINF_SUCCESS)2353 if (RT_UNLIKELY(rc != VINF_SUCCESS)) 2348 2354 { 2349 2355 VMXR0ReportWorldSwitchError(pVM, pVCpu, rc, pCtx); 2356 VMMR0LogFlushEnable(pVCpu); 2350 2357 goto end; 2351 2358 } … … 2372 2379 2373 2380 /* Note! NOW IT'S SAFE FOR LOGGING! */ 2374 #ifdef LOG_ENABLED2375 2381 VMMR0LogFlushEnable(pVCpu); 2376 #endif2377 2382 Log2(("Raw exit reason %08x\n", exitReason)); 2378 2383
Note:
See TracChangeset
for help on using the changeset viewer.