Changeset 100965 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Aug 24, 2023 9:25:53 PM (17 months ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/PGM.cpp
r100964 r100965 1436 1436 PGM_REG_PROFILE(&pCpuStats->StatRZTrap0e, "/PGM/CPU%u/RZ/Trap0e", "Profiling of the PGMTrap0eHandler() body."); 1437 1437 PGM_REG_PROFILE(&pCpuStats->StatRZTrap0eTime2Ballooned, "/PGM/CPU%u/RZ/Trap0e/Time2/Ballooned", "Profiling of the Trap0eHandler body when the cause is read access to a ballooned page."); 1438 PGM_REG_PROFILE(&pCpuStats->StatRZTrap0eTime2CSAM, "/PGM/CPU%u/RZ/Trap0e/Time2/CSAM", "Profiling of the Trap0eHandler body when the cause is CSAM.");1439 1438 PGM_REG_PROFILE(&pCpuStats->StatRZTrap0eTime2DirtyAndAccessed, "/PGM/CPU%u/RZ/Trap0e/Time2/DirtyAndAccessedBits", "Profiling of the Trap0eHandler body when the cause is dirty and/or accessed bit emulation."); 1440 1439 PGM_REG_PROFILE(&pCpuStats->StatRZTrap0eTime2GuestTrap, "/PGM/CPU%u/RZ/Trap0e/Time2/GuestTrap", "Profiling of the Trap0eHandler body when the cause is a guest trap."); -
trunk/src/VBox/VMM/VMMR3/PGMDbg.cpp
r98103 r100965 1635 1635 Pte.n.u1PAT ? "AT" : "--", 1636 1636 Pte.n.u1NoExecute ? "NX" : "--", 1637 Pte.u & PGM_PTFLAGS_TRACK_DIRTY 1638 Pte.u & RT_BIT(10) ? '1' : '0',1639 Pte.u & PGM_PTFLAGS_CSAM_VALIDATED? 'v' : '-',1637 Pte.u & PGM_PTFLAGS_TRACK_DIRTY ? 'd' : '-', 1638 Pte.u & RT_BIT(10) ? '1' : '-', 1639 Pte.u & RT_BIT(11) ? '1' : '-', 1640 1640 Pte.u & X86_PTE_PAE_PG_MASK); 1641 1641 if (pState->fDumpPageInfo) … … 1964 1964 Pte.n.u1CacheDisable? "CD" : "--", 1965 1965 Pte.n.u1PAT ? "AT" : "--", 1966 Pte.u & PGM_PTFLAGS_TRACK_DIRTY 1967 Pte.u & RT_BIT(10) ? '1' : '0',1968 Pte.u & PGM_PTFLAGS_CSAM_VALIDATED ? 'v' : '-',1966 Pte.u & PGM_PTFLAGS_TRACK_DIRTY ? 'd' : '-', 1967 Pte.u & RT_BIT(10) ? '1' : '-', 1968 Pte.u & RT_BIT(11) ? '1' : '-', 1969 1969 Pte.u & X86_PDE_PG_MASK); 1970 1970 if (pState->fDumpPageInfo) -
trunk/src/VBox/VMM/include/PGMInternal.h
r100964 r100965 194 194 /** Made read-only to facilitate dirty bit tracking. */ 195 195 #define PGM_PTFLAGS_TRACK_DIRTY RT_BIT_64(9) 196 197 #ifndef PGM_PTFLAGS_CSAM_VALIDATED198 /** Scanned and approved by CSAM (tm).199 * NOTE: Must be identical to the one defined in CSAMInternal.h!!200 * @todo Move PGM_PTFLAGS_* and PGM_PDFLAGS_* to VBox/vmm/pgm.h. */201 #define PGM_PTFLAGS_CSAM_VALIDATED RT_BIT_64(11)202 #endif203 204 196 /** @} */ 205 197 … … 3256 3248 STAMPROFILE StatRZTrap0e; /**< RC/R0: PGMTrap0eHandler() profiling. */ 3257 3249 STAMPROFILE StatRZTrap0eTime2Ballooned; /**< RC/R0: Profiling of the Trap0eHandler body when the cause is read access to a ballooned page. */ 3258 STAMPROFILE StatRZTrap0eTime2CSAM; /**< RC/R0: Profiling of the Trap0eHandler body when the cause is CSAM. */3259 3250 STAMPROFILE StatRZTrap0eTime2DirtyAndAccessed; /**< RC/R0: Profiling of the Trap0eHandler body when the cause is dirty and/or accessed bit emulation. */ 3260 3251 STAMPROFILE StatRZTrap0eTime2GuestTrap; /**< RC/R0: Profiling of the Trap0eHandler body when the cause is a guest trap. */ -
trunk/src/VBox/VMM/testcase/tstVMStruct.h
r98103 r100965 1202 1202 GEN_CHECK_OFF(RTCRITSECT, EventSem); 1203 1203 GEN_CHECK_OFF(RTCRITSECT, pValidatorRec); 1204 1205 GEN_CHECK_SIZE(CSAM);1206 GEN_CHECK_OFF(CSAM, offVM);1207 GEN_CHECK_OFF(CSAM, pPageTree);1208 GEN_CHECK_OFF(CSAM, aDangerousInstr);1209 GEN_CHECK_OFF(CSAM, aDangerousInstr[1]);1210 GEN_CHECK_OFF(CSAM, aDangerousInstr[CSAM_MAX_DANGR_INSTR - 1]);1211 GEN_CHECK_OFF(CSAM, cDangerousInstr);1212 GEN_CHECK_OFF(CSAM, iDangerousInstr);1213 GEN_CHECK_OFF(CSAM, pPDBitmapGC);1214 GEN_CHECK_OFF(CSAM, pPDHCBitmapGC);1215 GEN_CHECK_OFF(CSAM, pPDBitmapHC);1216 GEN_CHECK_OFF(CSAM, pPDGCBitmapHC);1217 GEN_CHECK_OFF(CSAM, savedstate);1218 GEN_CHECK_OFF_DOT(CSAM, savedstate.pSSM);1219 GEN_CHECK_OFF_DOT(CSAM, savedstate.cPageRecords);1220 GEN_CHECK_OFF_DOT(CSAM, savedstate.cPatchPageRecords);1221 GEN_CHECK_OFF(CSAM, cDirtyPages);1222 GEN_CHECK_OFF(CSAM, pvDirtyBasePage);1223 GEN_CHECK_OFF_DOT(CSAM, pvDirtyBasePage[1]);1224 GEN_CHECK_OFF_DOT(CSAM, pvDirtyBasePage[CSAM_MAX_DIRTY_PAGES - 1]);1225 GEN_CHECK_OFF(CSAM, pvDirtyFaultPage);1226 GEN_CHECK_OFF_DOT(CSAM, pvDirtyFaultPage[1]);1227 GEN_CHECK_OFF_DOT(CSAM, pvDirtyFaultPage[CSAM_MAX_DIRTY_PAGES - 1]);1228 GEN_CHECK_OFF(CSAM, pvCallInstruction);1229 GEN_CHECK_OFF(CSAM, iCallInstruction);1230 GEN_CHECK_OFF(CSAM, fScanningStarted);1231 GEN_CHECK_OFF(CSAM, fGatesChecked);1232 GEN_CHECK_OFF(CSAM, StatNrTraps);1233 GEN_CHECK_OFF(CSAM, StatNrPages);1234 1235 GEN_CHECK_SIZE(PATM);1236 GEN_CHECK_OFF(PATM, offVM);1237 GEN_CHECK_OFF(PATM, pPatchMemGC);1238 GEN_CHECK_OFF(PATM, pPatchMemHC);1239 GEN_CHECK_OFF(PATM, cbPatchMem);1240 GEN_CHECK_OFF(PATM, offPatchMem);1241 GEN_CHECK_OFF(PATM, fOutOfMemory);1242 GEN_CHECK_OFF(PATM, deltaReloc);1243 GEN_CHECK_OFF(PATM, pGCStateGC);1244 GEN_CHECK_OFF(PATM, pGCStateHC);1245 GEN_CHECK_OFF(PATM, pGCStackGC);1246 GEN_CHECK_OFF(PATM, pGCStackHC);1247 GEN_CHECK_OFF(PATM, pCPUMCtxGC);1248 GEN_CHECK_OFF(PATM, pStatsGC);1249 GEN_CHECK_OFF(PATM, pStatsHC);1250 GEN_CHECK_OFF(PATM, uCurrentPatchIdx);1251 GEN_CHECK_OFF(PATM, ulCallDepth);1252 GEN_CHECK_OFF(PATM, cPageRecords);1253 GEN_CHECK_OFF(PATM, pPatchedInstrGCLowest);1254 GEN_CHECK_OFF(PATM, pPatchedInstrGCHighest);1255 GEN_CHECK_OFF(PATM, PatchLookupTreeHC);1256 GEN_CHECK_OFF(PATM, PatchLookupTreeGC);1257 GEN_CHECK_OFF(PATM, pfnHelperCallGC);1258 GEN_CHECK_OFF(PATM, pfnHelperRetGC);1259 GEN_CHECK_OFF(PATM, pfnHelperJumpGC);1260 GEN_CHECK_OFF(PATM, pfnHelperIretGC);1261 GEN_CHECK_OFF(PATM, pGlobalPatchRec);1262 GEN_CHECK_OFF(PATM, pfnSysEnterGC);1263 GEN_CHECK_OFF(PATM, pfnSysEnterPatchGC);1264 GEN_CHECK_OFF(PATM, uSysEnterPatchIdx);1265 GEN_CHECK_OFF(PATM, pvFaultMonitor);1266 GEN_CHECK_OFF(PATM, mmio);1267 GEN_CHECK_OFF_DOT(PATM, mmio.GCPhys);1268 GEN_CHECK_OFF_DOT(PATM, mmio.pCachedData);1269 GEN_CHECK_OFF(PATM, savedstate);1270 GEN_CHECK_OFF_DOT(PATM, savedstate.pSSM);1271 GEN_CHECK_OFF_DOT(PATM, savedstate.cPatches);1272 GEN_CHECK_OFF(PATM, StatNrOpcodeRead);1273 GEN_CHECK_OFF(PATM, StatU32FunctionMaxSlotsUsed);1274 1275 GEN_CHECK_SIZE(PATMGCSTATE);1276 GEN_CHECK_OFF(PATMGCSTATE, uVMFlags);1277 GEN_CHECK_OFF(PATMGCSTATE, uPendingAction);1278 GEN_CHECK_OFF(PATMGCSTATE, uPatchCalls);1279 GEN_CHECK_OFF(PATMGCSTATE, uScratch);1280 GEN_CHECK_OFF(PATMGCSTATE, uIretEFlags);1281 GEN_CHECK_OFF(PATMGCSTATE, uIretCS);1282 GEN_CHECK_OFF(PATMGCSTATE, uIretEIP);1283 GEN_CHECK_OFF(PATMGCSTATE, Psp);1284 GEN_CHECK_OFF(PATMGCSTATE, fPIF);1285 GEN_CHECK_OFF(PATMGCSTATE, GCPtrInhibitInterrupts);1286 GEN_CHECK_OFF(PATMGCSTATE, Restore);1287 GEN_CHECK_OFF_DOT(PATMGCSTATE, Restore.uEAX);1288 GEN_CHECK_OFF_DOT(PATMGCSTATE, Restore.uECX);1289 GEN_CHECK_OFF_DOT(PATMGCSTATE, Restore.uEDI);1290 GEN_CHECK_OFF_DOT(PATMGCSTATE, Restore.eFlags);1291 GEN_CHECK_OFF_DOT(PATMGCSTATE, Restore.uFlags);1292 GEN_CHECK_SIZE(PATMTREES);1293 GEN_CHECK_OFF(PATMTREES, PatchTree);1294 GEN_CHECK_OFF(PATMTREES, PatchTreeByPatchAddr);1295 GEN_CHECK_OFF(PATMTREES, PatchTreeByPage);1296 GEN_CHECK_SIZE(PATMPATCHREC);1297 GEN_CHECK_OFF(PATMPATCHREC, Core);1298 GEN_CHECK_OFF(PATMPATCHREC, CoreOffset);1299 GEN_CHECK_OFF(PATMPATCHREC, patch);1300 GEN_CHECK_SIZE(PATCHINFO);1301 GEN_CHECK_OFF(PATCHINFO, uState);1302 GEN_CHECK_OFF(PATCHINFO, uOldState);1303 GEN_CHECK_OFF(PATCHINFO, uOpMode);1304 GEN_CHECK_OFF(PATCHINFO, unusedHC);1305 GEN_CHECK_OFF(PATCHINFO, pPrivInstrGC);1306 GEN_CHECK_OFF(PATCHINFO, aPrivInstr);1307 GEN_CHECK_OFF(PATCHINFO, aPrivInstr[1]);1308 GEN_CHECK_OFF(PATCHINFO, aPrivInstr[MAX_INSTR_SIZE - 1]);1309 GEN_CHECK_OFF(PATCHINFO, cbPrivInstr);1310 GEN_CHECK_OFF(PATCHINFO, opcode);1311 GEN_CHECK_OFF(PATCHINFO, cbPatchJump);1312 GEN_CHECK_OFF(PATCHINFO, pPatchJumpDestGC);1313 GEN_CHECK_OFF(PATCHINFO, pPatchBlockOffset);1314 GEN_CHECK_OFF(PATCHINFO, cbPatchBlockSize);1315 GEN_CHECK_OFF(PATCHINFO, uCurPatchOffset);1316 GEN_CHECK_OFF(PATCHINFO, flags);1317 GEN_CHECK_OFF(PATCHINFO, pInstrGCLowest);1318 GEN_CHECK_OFF(PATCHINFO, pInstrGCHighest);1319 GEN_CHECK_OFF(PATCHINFO, FixupTree);1320 GEN_CHECK_OFF(PATCHINFO, nrFixups);1321 GEN_CHECK_OFF(PATCHINFO, JumpTree);1322 GEN_CHECK_OFF(PATCHINFO, nrJumpRecs);1323 GEN_CHECK_OFF(PATCHINFO, Patch2GuestAddrTree);1324 GEN_CHECK_OFF(PATCHINFO, Guest2PatchAddrTree);1325 GEN_CHECK_OFF(PATCHINFO, nrPatch2GuestRecs);1326 GEN_CHECK_OFF(PATCHINFO, unused);1327 GEN_CHECK_OFF_DOT(PATCHINFO, unused.pPatchLocStartHC);1328 GEN_CHECK_OFF_DOT(PATCHINFO, unused.pPatchLocEndHC);1329 GEN_CHECK_OFF_DOT(PATCHINFO, unused.pGuestLoc);1330 GEN_CHECK_OFF_DOT(PATCHINFO, unused.opsize);1331 GEN_CHECK_OFF(PATCHINFO, pTempInfo);1332 GEN_CHECK_OFF(PATCHINFO, pTrampolinePatchesHead);1333 GEN_CHECK_OFF(PATCHINFO, cCodeWrites);1334 GEN_CHECK_OFF(PATCHINFO, cTraps);1335 GEN_CHECK_OFF(PATCHINFO, cInvalidWrites);1336 GEN_CHECK_OFF(PATCHINFO, uPatchIdx);1337 GEN_CHECK_OFF(PATCHINFO, bDirtyOpcode);1338 GEN_CHECK_SIZE(PATMPATCHPAGE);1339 GEN_CHECK_OFF(PATMPATCHPAGE, Core);1340 GEN_CHECK_OFF(PATMPATCHPAGE, pLowestAddrGC);1341 GEN_CHECK_OFF(PATMPATCHPAGE, pHighestAddrGC);1342 GEN_CHECK_OFF(PATMPATCHPAGE, cCount);1343 GEN_CHECK_OFF(PATMPATCHPAGE, cMaxPatches);1344 GEN_CHECK_OFF(PATMPATCHPAGE, papPatch);1345 1204 #endif 1346 1205
Note:
See TracChangeset
for help on using the changeset viewer.