Changeset 40375 in vbox for trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
- Timestamp:
- Mar 6, 2012 1:37:23 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/EMRaw.cpp
r40371 r40375 5 5 6 6 /* 7 * Copyright (C) 2006-201 1Oracle Corporation7 * Copyright (C) 2006-2012 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 30 30 #include <VBox/vmm/iom.h> 31 31 #include <VBox/vmm/dbgf.h> 32 #include <VBox/vmm/dbgftrace.h>33 32 #include <VBox/vmm/pgm.h> 34 33 #ifdef VBOX_WITH_REM … … 49 48 #include <VBox/disopcode.h> 50 49 #include <VBox/vmm/dbgf.h> 50 #include "VMMTracing.h" 51 51 52 52 #include <VBox/log.h> … … 173 173 { 174 174 rc = emR3RawForcedActions(pVM, pVCpu, pCtx); 175 VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc); 175 176 if (rc != VINF_SUCCESS) 176 177 return rc; … … 1201 1202 VMMR3DECL(int) EMR3CheckRawForcedActions(PVM pVM, PVMCPU pVCpu) 1202 1203 { 1203 return emR3RawForcedActions(pVM, pVCpu, pVCpu->em.s.pCtx); 1204 int rc = emR3RawForcedActions(pVM, pVCpu, pVCpu->em.s.pCtx); 1205 VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc); 1206 return rc; 1204 1207 } 1205 1208 … … 1222 1225 * Also note that SELMR3UpdateFromCPUM may trigger VM_FF_SELM_SYNC_TSS. 1223 1226 */ 1224 1227 VBOXVMMR3_EM_FF_RAW(pVCpu, pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions); 1225 1228 1226 1229 /* … … 1384 1387 || VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_HIGH_PRIORITY_PRE_RAW_MASK)) 1385 1388 { 1386 #ifdef DBGFTRACE_ENABLED1387 RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-raw ff %08x/%08x pre", pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);1388 #endif1389 1389 rc = emR3RawForcedActions(pVM, pVCpu, pCtx); 1390 VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc); 1390 1391 if (rc != VINF_SUCCESS) 1391 1392 break; … … 1418 1419 { 1419 1420 rc = emR3RawForcedActions(pVM, pVCpu, pCtx); 1421 VBOXVMMR3_EM_FF_RAW_RET(pVCpu, rc); 1420 1422 if (rc != VINF_SUCCESS) 1421 1423 { … … 1451 1453 { 1452 1454 STAM_PROFILE_START(&pVCpu->em.s.StatRAWExec, c); 1455 VBOXVMMR3_EM_RAW_RUN_PRE(pVCpu, pCtx); 1453 1456 rc = VMMR3RawRunGC(pVM, pVCpu); 1457 VBOXVMMR3_EM_RAW_RUN_RET(pVCpu, pCtx, rc); 1454 1458 STAM_PROFILE_STOP(&pVCpu->em.s.StatRAWExec, c); 1455 #ifdef DBGFTRACE_ENABLED1456 RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-raw run => %d", rc);1457 #endif1458 1459 } 1459 1460 else … … 1549 1550 { 1550 1551 Assert(pCtx->eflags.Bits.u1VM || (pCtx->ss & X86_SEL_RPL) != 1); 1551 #ifdef DBGFTRACE_ENABLED1552 RTTraceBufAddMsgF(pVM->CTX_SUFF(hTraceBuf), "em-raw ff %08x/%08x post", pVM->fGlobalForcedActions, pVCpu->fLocalForcedActions);1553 #endif1554 1552 1555 1553 STAM_REL_PROFILE_ADV_SUSPEND(&pVCpu->em.s.StatRAWTotal, a); 1556 1554 rc = emR3ForcedActions(pVM, pVCpu, rc); 1555 VBOXVMMR3_EM_FF_ALL_RET(pVCpu, rc); 1557 1556 STAM_REL_PROFILE_ADV_RESUME(&pVCpu->em.s.StatRAWTotal, a); 1558 1557 if ( rc != VINF_SUCCESS
Note:
See TracChangeset
for help on using the changeset viewer.