Lines Matching defs:pVM

58     PVM         pVM;
102 PVM pVM = pUVM->pVM; AssertPtr(pVM);
103 if (!HMIsEnabled(pVM))
104 return PDMR3LdrLoadRC(pVM, NULL, VMMGC_MAIN_MODULE_NAME);
115 * @param pVM Pointer to the VM.
203 pCur->ImageBase = MMHyperR3ToRC(pUVM->pVM, pCur->pvBits);
213 Args.pVM = pUVM->pVM;
248 AssertMsg(PDMCritSectIsInitialized(&pUVM->pVM->pdm.s.CritSect), ("bad init order!\n"));
307 rc = VMSetError(pUVM->pVM, rc, RT_SRC_POS,
335 PVM pVM = ((PPDMGETIMPORTARGS)pvUser)->pVM;
352 *pValue = pVM->pVMRC;
354 *pValue = VM_RC_ADDR(pVM, &pVM->cpum);
360 rc = TRPMR3GetImportRC(pVM, pszSymbol, &RCPtr);
369 rc = VMMR3GetImportRC(pVM, pszSymbol, &RCPtr);
377 rc = TMR3GetImportRC(pVM, pszSymbol, &RCPtr);
397 PUVM pUVM = pVM->pUVM;
441 * @param pVM The VM to load it into.
445 VMMR3DECL(int) PDMR3LdrLoadRC(PVM pVM, const char *pszFilename, const char *pszName)
450 AssertMsg(PDMCritSectIsInitialized(&pVM->pdm.s.CritSect), ("bad init order!\n"));
451 AssertReturn(!HMIsEnabled(pVM), VERR_PDM_HM_IPE);
453 PUVM pUVM = pVM->pUVM;
520 rc = MMR3HyperMapPages(pVM, pModule->pvBits, NIL_RTR0PTR,
524 MMR3HyperReserve(pVM, PAGE_SIZE, "fence", NULL);
529 Assert(MMHyperR3ToRC(pVM, pModule->pvBits) == GCPtr);
532 Args.pVM = pVM;
546 PVTGOBJHDR pVtgHdr = (PVTGOBJHDR)MMHyperRCToCC(pVM, (RTRCPTR)uValue);
602 rc = VMSetError(pVM, rc, RT_SRC_POS, N_("Cannot load RC module %s: %s"), pszFilename, ErrInfo.Core.pszMsg);
604 rc = VMSetError(pVM, rc, RT_SRC_POS, N_("Cannot load RC module %s"), pszFilename);
702 if (RT_FAILURE(rc) && pUVM->pVM) /** @todo VMR3SetErrorU. */
703 rc = VMSetError(pUVM->pVM, rc, RT_SRC_POS, N_("Cannot load R0 module %s: %s"), pszFilename, ErrInfo.Core.pszMsg);
715 * @param pVM Pointer to the VM.
721 VMMR3_INT_DECL(int) PDMR3LdrGetSymbolR3(PVM pVM, const char *pszModule, const char *pszSymbol, void **ppvValue)
726 AssertPtr(pVM);
729 AssertMsg(PDMCritSectIsInitialized(&pVM->pdm.s.CritSect), ("bad init order!\n"));
734 PUVM pUVM = pVM->pUVM;
769 * @param pVM Pointer to the VM.
775 VMMR3DECL(int) PDMR3LdrGetSymbolR0(PVM pVM, const char *pszModule, const char *pszSymbol, PRTR0PTR ppvValue)
785 AssertPtr(pVM);
788 AssertMsg(PDMCritSectIsInitialized(&pVM->pdm.s.CritSect), ("bad init order!\n"));
796 PUVM pUVM = pVM->pUVM;
824 * @param pVM Pointer to the VM.
833 VMMR3DECL(int) PDMR3LdrGetSymbolR0Lazy(PVM pVM, const char *pszModule, const char *pszSearchPath, const char *pszSymbol,
841 AssertPtr(pVM);
844 AssertMsg(PDMCritSectIsInitialized(&pVM->pdm.s.CritSect), ("bad init order!\n"));
853 PUVM pUVM = pVM->pUVM;
867 return PDMR3LdrGetSymbolR0(pVM, pszModule, pszSymbol, ppvValue);
876 * @param pVM Pointer to the VM.
882 VMMR3DECL(int) PDMR3LdrGetSymbolRC(PVM pVM, const char *pszModule, const char *pszSymbol, PRTRCPTR pRCPtrValue)
885 Assert(!HMIsEnabled(pVM));
893 AssertPtr(pVM);
896 AssertMsg(PDMCritSectIsInitialized(&pVM->pdm.s.CritSect), ("bad init order!\n"));
904 PUVM pUVM = pVM->pUVM;
940 * @param pVM Pointer to the VM.
949 VMMR3DECL(int) PDMR3LdrGetSymbolRCLazy(PVM pVM, const char *pszModule, const char *pszSearchPath, const char *pszSymbol,
953 Assert(!HMIsEnabled(pVM));
958 AssertPtr(pVM);
961 AssertMsg(PDMCritSectIsInitialized(&pVM->pdm.s.CritSect), ("bad init order!\n"));
970 PUVM pUVM = pVM->pUVM;
982 int rc = PDMR3LdrLoadRC(pVM, pszFilename, pszModule);
987 return PDMR3LdrGetSymbolRC(pVM, pszModule, pszSymbol, pRCPtrValue);
1260 * @param pVM Pointer to the VM
1273 static int pdmR3LdrQueryModFromPC(PVM pVM, RTUINTPTR uPC, PDMMODTYPE enmType,
1278 PUVM pUVM = pVM->pUVM;
1350 * @param pVM Pointer to the VM
1362 VMMR3_INT_DECL(int) PDMR3LdrQueryRCModFromPC(PVM pVM, RTRCPTR uPC,
1370 int rc = pdmR3LdrQueryModFromPC(pVM, uPC, PDMMOD_TYPE_RC,
1394 * @param pVM Pointer to the VM
1406 VMMR3_INT_DECL(int) PDMR3LdrQueryR0ModFromPC(PVM pVM, RTR0PTR uPC,
1414 int rc = pdmR3LdrQueryModFromPC(pVM, uPC, PDMMOD_TYPE_R0,
1435 * @param pVM Pointer to the VM.
1439 VMMR3DECL(int) PDMR3LdrEnumModules(PVM pVM, PFNPDMR3ENUM pfnCallback, void *pvArg)
1441 PUVM pUVM = pVM->pUVM;
1446 rc = pfnCallback(pVM,
1496 int rc = PDMR3LdrLoadRC(pUVM->pVM, pszFilename, pszModule);
1525 * @param pVM Pointer to the VM.
1558 VMMR3_INT_DECL(int) PDMR3LdrGetInterfaceSymbols(PVM pVM, void *pvInterface, size_t cbInterface,
1563 bool const fNullRun = !fRing0 && HMIsEnabled(pVM);
1571 pModule = pdmR3LdrFindModule(pVM->pUVM,