Searched refs:HCPhys (Results 1 - 25 of 42) sorted by relevance

12

/vbox/src/VBox/HostDrivers/Support/testcase/
H A DtstContiguous.cpp53 RTHCPHYS HCPhys; local
54 void *pv = SUPR3ContAlloc(8, NIL_RTR0PTR, &HCPhys);
55 rcRet += pv == NULL || HCPhys == 0;
56 if (pv && HCPhys)
59 pv = SUPR3ContAlloc(5, NIL_RTR0PTR, &HCPhys);
60 rcRet += pv == NULL || HCPhys == 0;
61 if (pv && HCPhys)
72 apv[i] = SUPR3ContAlloc(1 + (i % 11), NIL_RTR0PTR, &HCPhys);
H A DtstPin.cpp46 RTHCPHYS HCPhys; local
139 pv = SUPR3ContAlloc(RT_ALIGN_Z(15003, PAGE_SIZE) >> PAGE_SHIFT, NIL_RTR0PTR, &HCPhys);
140 rcRet += pv == NULL || HCPhys == 0;
141 if (pv && HCPhys)
143 RTPrintf("SUPR3ContAlloc(15003) -> HCPhys=%llx pv=%p\n", HCPhys, pv);
146 pv = SUPR3ContAlloc(RT_ALIGN_Z(12999, PAGE_SIZE) >> PAGE_SHIFT, NIL_RTR0PTR, &HCPhys);
147 rcRet += pv == NULL || HCPhys == 0;
148 if (pv && HCPhys)
150 RTPrintf("SUPR3ContAlloc(12999) -> HCPhys
[all...]
/vbox/src/VBox/VMM/VMMAll/
H A DMMAllPagePool.cpp50 * @param HCPhys The address to convert.
53 void *mmPagePoolPhys2Ptr(PMMPAGEPOOL pPool, RTHCPHYS HCPhys) argument
64 PMMPPLOOKUPHCPHYS pLookup = (PMMPPLOOKUPHCPHYS)RTAvlHCPhysGet(&pPool->pLookupPhys, HCPhys & X86_PTE_PAE_PG_MASK);
71 return (char *)pSubPool->pvPages + (HCPhys & PAGE_OFFSET_MASK) + (iPage << PAGE_SHIFT);
211 RTHCPHYS HCPhys = mmPagePoolPtr2Phys(pVM->mm.s.CTX_SUFF(pPagePool), pvPage); local
212 if (HCPhys == NIL_RTHCPHYS)
214 HCPhys = mmPagePoolPtr2Phys(pVM->mm.s.CTX_SUFF(pPagePoolLow), pvPage);
215 if (HCPhys == NIL_RTHCPHYS)
221 return HCPhys;
H A DMMAll.cpp64 const RTR3UINTPTR off = (RTR3UINTPTR)R3Ptr - (RTR3UINTPTR)pLookup->u.HCPhys.pvR3;
126 const RTR0UINTPTR off = (RTR0UINTPTR)R0Ptr - (RTR0UINTPTR)pLookup->u.HCPhys.pvR0;
127 if (off < pLookup->cb && pLookup->u.HCPhys.pvR0)
236 return (RTR3PTR)((RTR3UINTPTR)pLookup->u.HCPhys.pvR3 + off);
267 if (pLookup->u.HCPhys.pvR0)
268 return (RTR0PTR)((RTR0UINTPTR)pLookup->u.HCPhys.pvR0 + off);
H A DPGMAllPool.cpp1029 RTHCPHYS HCPhys = -1;
1030 int rc = PGMPhysGCPhys2HCPhys(pVM, GstPte.u & X86_PTE_PAE_PG_MASK, &HCPhys);
1386 RTHCPHYS HCPhys = NIL_RTHCPHYS; local
1387 int rc = PGMPhysGCPhys2HCPhys(pVM, pGstPT->a[i].u & X86_PTE_PAE_PG_MASK, &HCPhys);
1389 || PGMSHWPTEPAE_GET_HCPHYS(pShwPT->a[i]) != HCPhys)
1391 Log(("rc=%d idx=%d guest %RX64 shw=%RX64 vs %RHp\n", rc, i, pGstPT->a[i].u, PGMSHWPTEPAE_GET_LOG(pShwPT->a[i]), HCPhys));
1394 LastHCPhys = HCPhys;
1452 RTHCPHYS HCPhys = NIL_RTHCPHYS; local
1453 int rc = PGMPhysGCPhys2HCPhys(pVM, pGstPT->a[i].u & X86_PTE_PG_MASK, &HCPhys);
1455 || PGMSHWPTEPAE_GET_HCPHYS(pShwPT->a[i]) != HCPhys)
1538 RTHCPHYS HCPhys = NIL_RTGCPHYS; local
1606 RTHCPHYS HCPhys = NIL_RTGCPHYS; local
1669 RTHCPHYS HCPhys; local
[all...]
H A DPGMAllBth.h1467 * @param HCPhys The physical page we is being dereferenced.
1471 DECLINLINE(void) PGM_BTH_NAME(SyncPageWorkerTrackDeref)(PVMCPU pVCpu, PPGMPOOLPAGE pShwPage, RTHCPHYS HCPhys, uint16_t iPte, argument
1500 LogFlow(("SyncPageWorkerTrackDeref: Damn HCPhys=%RHp pShwPage->idx=%#x!!!\n", HCPhys, pShwPage->idx));
1503 * 1. have a medium sized HCPhys -> GCPhys TLB (hash?)
1518 if (PGM_PAGE_GET_HCPHYS(&pRam->aPages[iPage]) == HCPhys)
1535 AssertReleaseMsgFailed(("HCPhys=%RHp wasn't found!\n", HCPhys));
1544 * @param u16 The top 16-bit of the pPage->HCPhys.
3182 RTHCPHYS HCPhys
[all...]
H A DIOMAllMMIO.cpp2484 RTHCPHYS HCPhys;
2485 rc = PGMShwGetPage(pVCpu, (RTGCPTR)GCPhys, &fFlags, &HCPhys);
2507 * @param HCPhys The address of the host physical page.
2511 VMMDECL(int) IOMMMIOMapMMIOHCPage(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint64_t fPageFlags) argument
2514 Log(("IOMMMIOMapMMIOHCPage %RGp -> %RGp flags=%RX64\n", GCPhys, HCPhys, fPageFlags));
2535 HCPhys &= ~(RTHCPHYS)PAGE_OFFSET_MASK;
2537 int rc = PGMHandlerPhysicalPageAliasHC(pVM, GCPhys, GCPhys, HCPhys);
2602 RTHCPHYS HCPhys; local
2603 rc = PGMShwGetPage(pVCpu, (RTGCPTR)GCPhys, &fFlags, &HCPhys);
/vbox/src/VBox/VMM/VMMR3/
H A DMMHyper.cpp254 rc = PGMMap(pVM, GCPtr, pLookup->u.HCPhys.HCPhys, pLookup->cb, 0);
263 RTHCPHYS HCPhys; local
264 rc = PGMPhysGCPhys2HCPhys(pVM, GCPhys + off, &HCPhys);
267 rc = PGMMap(pVM, GCPtr + off, HCPhys, PAGE_SIZE, 0);
279 RTHCPHYS HCPhys; local
280 rc = PGMR3PhysMMIO2GetHCPhys(pVM, pLookup->u.MMIO2.pDevIns, pLookup->u.MMIO2.iRegion, offCur, &HCPhys);
283 rc = PGMMap(pVM, GCPtr + (offCur - pLookup->u.MMIO2.off), HCPhys, PAGE_SIZE, 0);
411 * @param HCPhys Host context physical address of the memory to be
417 VMMR3DECL(int) MMR3HyperMapHCPhys(PVM pVM, void *pvR3, RTR0PTR pvR0, RTHCPHYS HCPhys, size_ argument
496 RTHCPHYS HCPhys; local
560 RTHCPHYS HCPhys; local
585 RTHCPHYS HCPhys; local
1238 mmR3HyperQueryInfoFromHCPhysFound(PVM pVM, RTHCPHYS HCPhys, PMMLOOKUPHYPER pLookup, char *pszWhat, size_t cbWhat, uint32_t *pcbAlloc) argument
1258 MMR3HyperQueryInfoFromHCPhys(PVM pVM, RTHCPHYS HCPhys, char *pszWhat, size_t cbWhat, uint32_t *pcbAlloc) argument
[all...]
H A DMM.cpp710 * @param HCPhys The host context virtual address.
718 VMMR3DECL(int) MMR3HCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys, void **ppv) argument
723 int rc = MMPagePhys2PageTry(pVM, HCPhys, ppv);
730 uint32_t off = HCPhys & PAGE_OFFSET_MASK;
731 HCPhys &= X86_PTE_PAE_PG_MASK;
742 if (paHCPhysPages[iPage] == HCPhys)
751 if (pCur->u.HCPhys.HCPhys - HCPhys < pCur->cb)
753 *ppv = (uint8_t *)pCur->u.HCPhys
[all...]
H A DPGMMap.cpp43 static void pgmR3MapIntermediateDoOne(PVM pVM, uintptr_t uAddress, RTHCPHYS HCPhys, unsigned cPages, PX86PT pPTDefault, PX86PTPAE pPTPaeDefault);
742 * @param HCPhys Start of the range of physical pages. This must be entriely below 4GB!
747 VMMR3DECL(int) PGMR3MapIntermediate(PVM pVM, RTUINTPTR Addr, RTHCPHYS HCPhys, unsigned cbPages) argument
749 LogFlow(("PGMR3MapIntermediate: Addr=%RTptr HCPhys=%RHp cbPages=%#x\n", Addr, HCPhys, cbPages));
754 cbPages += (uint32_t)HCPhys & PAGE_OFFSET_MASK;
756 HCPhys &= X86_PTE_PAE_PG_MASK;
767 AssertMsg(HCPhys < _4G && HCPhys + cbPages < _4G, ("Addr=%RTptr HCPhys
894 pgmR3MapIntermediateDoOne(PVM pVM, uintptr_t uAddress, RTHCPHYS HCPhys, unsigned cPages, PX86PT pPTDefault, PX86PTPAE pPTPaeDefault) argument
[all...]
H A DPGMDbg.cpp150 * @param HCPhys The HC physical address to convert.
153 VMMR3DECL(int) PGMR3DbgHCPhys2GCPhys(PUVM pUVM, RTHCPHYS HCPhys, PRTGCPHYS pGCPhys) argument
161 if (HCPhys == NIL_RTHCPHYS)
163 unsigned off = HCPhys & PAGE_OFFSET_MASK;
164 HCPhys &= X86_PTE_PAE_PG_MASK;
165 if (HCPhys == 0)
174 if (PGM_PAGE_GET_HCPHYS(&pRam->aPages[iPage]) == HCPhys)
1004 * @param HCPhys The physical address of the shadow page.
1009 static int pgmR3DumpHierarchyShwMapPage(PPGMR3DUMPHIERARCHYSTATE pState, RTHCPHYS HCPhys, const char *pszDesc,
1015 int rc = MMPagePhys2PageTry(pState->pVM, HCPhys,
[all...]
H A DPGMPool.cpp981 RTHCPHYS HCPhys = NIL_RTHCPHYS; local
982 rc = PGMPhysGCPhys2HCPhys(pPool->CTX_SUFF(pVM), pGstPT->a[j].u & X86_PTE_PAE_PG_MASK, &HCPhys);
984 || PGMSHWPTEPAE_GET_HCPHYS(pShwPT->a[j]) != HCPhys)
991 DBGCCmdHlpPrintf(pCmdHlp, "Mismatch HCPhys: rc=%Rrc idx=%d guest %RX64 shw=%RX64 vs %RHp\n", rc, j, pGstPT->a[j].u, PGMSHWPTEPAE_GET_LOG(pShwPT->a[j]), HCPhys);
1002 DBGCCmdHlpPrintf(pCmdHlp, "Mismatch r/w gst/shw: idx=%d guest %RX64 shw=%RX64 vs %RHp\n", j, pGstPT->a[j].u, PGMSHWPTEPAE_GET_LOG(pShwPT->a[j]), HCPhys);
/vbox/src/VBox/VMM/VMMRZ/
H A DPGMRZDynMap.cpp203 RTHCPHYS HCPhys; member in struct:PGMR0DYNMAPENTRY
278 RTHCPHYS HCPhys; /**< The address of the page for the current level, member in struct:PGMR0DYNMAPPGLVL::__anon16871
280 RTHCPHYS fPhysMask; /**< Mask for extracting HCPhys from uEntry. */
281 RTR0MEMOBJ hMemObj; /**< Memory object for HCPhys, PAGE_SIZE. */
354 pSet->aEntries[j].HCPhys = NIL_RTHCPHYS;
777 pPgLvl->a[i].HCPhys = NIL_RTHCPHYS;
812 RTHCPHYS HCPhys = uEntry & pPgLvl->a[i].fPhysMask; local
813 if (pPgLvl->a[i].HCPhys != HCPhys)
828 int rc = RTR0MemObjEnterPhys(&pPgLvl->a[i].hMemObj, HCPhys, PAGE_SIZ
1350 pgmR0DynMapPageSlow(PPGMRZDYNMAP pThis, RTHCPHYS HCPhys, uint32_t iPage, PVMCPU pVCpu, bool *pfNew) argument
1456 pgmR0DynMapPage(PPGMRZDYNMAP pThis, RTHCPHYS HCPhys, int32_t iRealCpu, PVMCPU pVCpu, void **ppvPage) argument
2281 pgmRZDynMapHCPageCommon(PPGMMAPSET pSet, RTHCPHYS HCPhys, void **ppv RTLOG_COMMA_SRC_POS_DECL) argument
[all...]
/vbox/src/VBox/VMM/VMMR0/
H A DPGMR0SharedPage.cpp87 PageDesc.HCPhys = PGM_PAGE_GET_HCPHYS(pPage);
102 GCPtrPage, PageDesc.GCPhys, PGM_PAGE_GET_HCPHYS(pPage), PageDesc.HCPhys));
116 if (PageDesc.HCPhys != PGM_PAGE_GET_HCPHYS(pPage))
119 PGM_PAGE_SET_HCPHYS(pVM, pPage, PageDesc.HCPhys);
H A DPGMR0.cpp270 * @param HCPhys The address of the host page (page aligned).
272 VMMR0_INT_DECL(int) GPciRawR0GuestPageAssign(PGVM pGVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys) argument
275 AssertReturn(!(HCPhys & PAGE_OFFSET_MASK), VERR_INTERNAL_ERROR_3);
279 pGVM->rawpci.s.pfnContigMemInfo(&pGVM->rawpci.s, HCPhys, GCPhys, PAGE_SIZE, PCIRAW_MEMINFO_MAP);
295 * @param HCPhys The address of the host page (page aligned).
334 * @param HCPhys The new host page address or NIL_RTHCPHYS if
337 VMMR0_INT_DECL(int) GPciRawR0GuestPageUpdate(PGVM pGVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys) argument
340 AssertReturn(!(HCPhys & PAGE_OFFSET_MASK) || HCPhys == NIL_RTHCPHYS, VERR_INTERNAL_ERROR_4);
/vbox/src/VBox/VMM/include/
H A DPGMInline.h225 * @param HCPhys The physical address of the page.
228 DECLINLINE(int) pgmRZDynMapHCPageInlined(PVMCPU pVCpu, RTHCPHYS HCPhys, void **ppv RTLOG_COMMA_SRC_POS_DECL) argument
233 Assert(!(HCPhys & PAGE_OFFSET_MASK));
236 unsigned iHash = PGMMAPSET_HASH(HCPhys);
239 && pSet->aEntries[iEntry].HCPhys == HCPhys
249 pgmRZDynMapHCPageCommon(pSet, HCPhys, ppv RTLOG_COMMA_SRC_POS_ARGS);
287 RTHCPHYS HCPhys = PGM_PAGE_GET_HCPHYS(&pRam->aPages[off >> PAGE_SHIFT]); local
294 Assert(!(HCPhys & PAGE_OFFSET_MASK));
297 unsigned iHash = PGMMAPSET_HASH(HCPhys);
363 RTHCPHYS HCPhys = PGM_PAGE_GET_HCPHYS(&pRam->aPages[off >> PAGE_SHIFT]); local
[all...]
H A DMMInternal.h661 RTHCPHYS HCPhys; member in struct:MMLOOKUPHYPER::__anon16923::__anon16925
662 } HCPhys; member in union:MMLOOKUPHYPER::__anon16923
835 * @param HCPhys The address to convert.
838 void *mmPagePoolPhys2Ptr(PMMPAGEPOOL pPool, RTHCPHYS HCPhys);
H A DPGMInternal.h243 * @param HCPhys The HC physical address to map to a virtual one.
252 # define PGM_HCPHYS_2_PTR(pVM, pVCpu, HCPhys, ppv) \
253 pgmRZDynMapHCPageInlined(pVCpu, HCPhys, (void **)(ppv) RTLOG_COMMA_SRC_POS)
255 # define PGM_HCPHYS_2_PTR(pVM, pVCpu, HCPhys, ppv) \
256 MMPagePhys2PageEx(pVM, HCPhys, (void **)(ppv))
1820 RTHCPHYS HCPhys; member in struct:PGMRCDYNMAPENTRY
1906 RTHCPHYS HCPhys; member in struct:PGMMAPSETENTRY
1909 AssertCompileMemberAlignment(PGMMAPSETENTRY, HCPhys, sizeof(RTHCPHYS));
1933 /** HCPhys -> iEntry fast lookup table.
1946 #define PGMMAPSET_HASH(HCPhys) (((HCPhy
[all...]
/vbox/include/VBox/vmm/
H A Dmm.h258 VMMR3DECL(int) MMR3HCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys, void **ppv);
272 VMMR3DECL(int) MMR3HyperMapHCPhys(PVM pVM, void *pvR3, RTR0PTR pvR0, RTHCPHYS HCPhys, size_t cb, const char *pszDesc, PRTGCPTR pGCPtr);
279 VMMR3DECL(void *) MMR3HyperHCPhys2HCVirt(PVM pVM, RTHCPHYS HCPhys);
280 VMMR3DECL(int) MMR3HyperHCPhys2HCVirtEx(PVM pVM, RTHCPHYS HCPhys, void **ppv);
281 VMMR3_INT_DECL(int) MMR3HyperQueryInfoFromHCPhys(PVM pVM, RTHCPHYS HCPhys, char *pszWhat, size_t cbWhat, uint32_t *pcbAlloc);
H A Diom.h286 VMMDECL(int) IOMMMIOMapMMIOHCPage(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint64_t fPageFlags);
/vbox/src/VBox/Debugger/
H A DDBGCOps.cpp117 (pResult)->u.HCPhys = (pResult)->u.HCPhys Operator u64Right; \
218 *pu64Ret = Var.u.HCPhys;
267 pResult->u.HCPhys = (RTHCPHYS) -(int64_t)pResult->u.HCPhys;
346 pResult->u.u64Number = !pResult->u.HCPhys;
395 pResult->u.HCPhys = ~pResult->u.HCPhys;
863 pResult->u.HCPhys += Var.u.HCPhys;
[all...]
H A DDBGCCmdHlp.cpp138 return RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "#%%%%%RHp", pVar->u.HCPhys);
186 return RTStrFormat(pfnOutput, pvArgOutput, NULL, 0, "#%%%%%RHp%s", pVar->u.HCPhys, szRange);
411 case DBGCVAR_TYPE_HC_PHYS: cb = RT_MIN(cb, PAGE_SIZE - ((size_t)Var.u.HCPhys & PAGE_OFFSET_MASK)); break; /* size_t: MSC has braindead loss of data warnings! */
606 Var.u.HCPhys += cbChunk;
843 u64Number = (uintptr_t)pVar->u.HCPhys;
1093 &pResult->u.HCPhys);
1135 rc = PGMR3DbgR3Ptr2HCPhys(pDbgc->pUVM, pArg->u.pvHCFlat, &pResult->u.HCPhys);
1167 rc = PGMR3DbgHCPhys2GCPhys(pDbgc->pUVM, pArg->u.HCPhys, &pResult->u.GCPhys);
1180 pResult->u.u64Number = InVar.u.HCPhys;
1216 pResult->u.HCPhys
[all...]
/vbox/src/VBox/Runtime/r0drv/darwin/
H A Dmemobj-r0drv-darwin.cpp216 * @param HCPhys The address to start reading at.
220 static void rtR0MemObjDarwinReadPhys(RTHCPHYS HCPhys, size_t cb, void *pvDst) argument
224 IOAddressRange aRanges[1] = { { (mach_vm_address_t)HCPhys, RT_ALIGN_Z(cb, PAGE_SIZE) } };
241 printf("rtR0MemObjDarwinReadPhys: createMappingInTask failed; HCPhys=%llx\n", HCPhys);
246 printf("rtR0MemObjDarwinReadPhys: withAddressRanges failed; HCPhys=%llx\n", HCPhys);
/vbox/src/VBox/Runtime/r0drv/solaris/
H A Dmemobj-r0drv-solaris.c978 RTHCPHYS HCPhys = RTR0MemObjGetPagePhysAddr(pMemToMap, (offSub + offSub) >> PAGE_SHIFT); local
979 AssertBreakStmt(HCPhys != NIL_RTHCPHYS, rc = VERR_INTERNAL_ERROR_2);
980 pfn_t pfn = HCPhys >> PAGE_SHIFT;
981 AssertBreakStmt(((RTHCPHYS)pfn << PAGE_SHIFT) == HCPhys, rc = VERR_INTERNAL_ERROR_3);
/vbox/include/VBox/
H A Ddbg.h203 RTHCPHYS HCPhys; member in union:DBGCVAR::__anon218
244 (pVar)->u.HCPhys = (Phys); \

Completed in 237 milliseconds

12