Lines Matching defs:pVM
40 static DECLCALLBACK(int) mmGCRamTrap0eHandler(PVM pVM, PCPUMCTXCORE pRegFrame);
54 * @param pVM Pointer to the VM.
56 VMMRCDECL(void) MMGCRamRegisterTrapHandler(PVM pVM)
58 TRPMGCSetTempHandler(pVM, 0xe, mmGCRamTrap0eHandler);
66 * @param pVM Pointer to the VM.
68 VMMRCDECL(void) MMGCRamDeregisterTrapHandler(PVM pVM)
70 TRPMGCSetTempHandler(pVM, 0xe, NULL);
78 * @param pVM Pointer to the VM.
83 VMMRCDECL(int) MMGCRamRead(PVM pVM, void *pDst, void *pSrc, size_t cb)
86 PVMCPU pVCpu = VMMGetCpu0(pVM);
97 MMGCRamRegisterTrapHandler(pVM);
122 MMGCRamDeregisterTrapHandler(pVM);
135 * @param pVM Pointer to the VM.
142 VMMRCDECL(int) MMGCRamWrite(PVM pVM, void *pDst, void *pSrc, size_t cb)
144 PVMCPU pVCpu = VMMGetCpu0(pVM);
147 MMGCRamRegisterTrapHandler(pVM);
149 MMGCRamDeregisterTrapHandler(pVM);
156 PGMGstModifyPage(VMMGetCpu0(pVM), (RTGCPTR)(RTRCUINTPTR)pDst, cb, X86_PTE_A | X86_PTE_D, ~(uint64_t)(X86_PTE_A | X86_PTE_D));
167 DECLCALLBACK(int) mmGCRamTrap0eHandler(PVM pVM, PCPUMCTXCORE pRegFrame)
176 AssertReturn(!(TRPMGetErrorCode(VMMGetCpu0(pVM)) & X86_TRAP_PF_RW), VERR_MM_BAD_TRAP_TYPE_IPE);
188 AssertReturn(TRPMGetErrorCode(VMMGetCpu0(pVM)) & X86_TRAP_PF_RW, VERR_MM_BAD_TRAP_TYPE_IPE);