Lines Matching defs:pVM
56 * @param pVM Pointer to the VM.
64 VMMRCDECL(int) CSAMGCCodePageWriteHandler(PVM pVM, RTGCUINT uErrorCode, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault, RTGCPTR pvRange, uintptr_t offRange)
67 bool fPatchCode = PATMIsPatchGCAddr(pVM, pRegFrame->eip);
69 PVMCPU pVCpu = VMMGetCpu0(pVM);
72 Assert(pVM->csam.s.cDirtyPages < CSAM_MAX_DIRTY_PAGES);
76 REMFlushTBs(pVM);
79 pPATMGCState = PATMGetGCState(pVM);
111 rc = PATMRCHandleWriteToPatchPage(pVM, pRegFrame, (RTRCPTR)((RTRCUINTPTR)pvRange + offRange), 4 /** @todo */);
116 STAM_COUNTER_INC(&pVM->csam.s.StatDangerousWrite);
125 pVM->csam.s.pvDirtyBasePage[pVM->csam.s.cDirtyPages] = (RTRCPTR)((RTRCUINTPTR)pvRange + offRange);
126 pVM->csam.s.pvDirtyFaultPage[pVM->csam.s.cDirtyPages] = (RTRCPTR)((RTRCUINTPTR)pvRange + offRange);
127 if (++pVM->csam.s.cDirtyPages == CSAM_MAX_DIRTY_PAGES)
138 STAM_COUNTER_INC(&pVM->csam.s.StatCodePageModified);