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

/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 DPGMAllMap.cpp41 * @param HCPhys Start of the range of physical pages. Must be page aligned.
45 VMMDECL(int) PGMMap(PVM pVM, RTGCUINTPTR GCPtr, RTHCPHYS HCPhys, uint32_t cbPages, unsigned fFlags) argument
78 Pte.u = fFlags | (HCPhys & X86_PTE_PAE_PG_MASK);
90 pCur->aPTs[iPT].CTX_SUFF(pPT)->a[iPageNo].u = (uint32_t)Pte.u; /* ASSUMES HCPhys < 4GB and/or that we're never gonna do 32-bit on a PAE host! */
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);
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 DPGMAllPhys.cpp637 const RTHCPHYS HCPhys = pVM->pgm.s.aHandyPages[iHandyPage].HCPhysGCPhys; local
648 GCPhys, pVM->pgm.s.aHandyPages[iHandyPage].idPage, HCPhys));
658 Log2(("PGM: Replaced zero page %RGp with %#x / %RHp\n", GCPhys, pVM->pgm.s.aHandyPages[iHandyPage].idPage, HCPhys));
667 PGM_PAGE_SET_HCPHYS(pVM, pPage, HCPhys);
925 * @param HCPhys The physical address (for RC).
931 int pgmPhysPageMapByPageID(PVM pVM, uint32_t idPage, RTHCPHYS HCPhys, void **ppv) argument
937 AssertReturn(HCPhys && !(HCPhys & PAGE_OFFSET_MASK), VERR_INVALID_PARAMETER);
943 * Map it by HCPhys.
945 return pgmRZDynMapHCPageInlined(VMMGetCpu(pVM), HCPhys, pp
1021 RTHCPHYS HCPhys = PGM_PAGE_GET_HCPHYS(pPage); local
1023 pgmRZDynMapHCPageInlined(VMMGetCpu(pVM), HCPhys, ppv RTLOG_COMMA_SRC_POS); local
[all...]
/vbox/src/VBox/VMM/VMMR0/
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/VMMR3/
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 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);
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 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 DPGMPhys.cpp2847 RTHCPHYS const HCPhys = PGM_PAGE_GET_HCPHYS(pPageSrc); local
2850 PGM_PAGE_SET_HCPHYS(pVM, pPageDst, HCPhys);
3818 /** @todo preserve the volatile flags (handlers) when these have been moved out of HCPhys! */
4294 RTHCPHYS HCPhys = pVM->pgm.s.aLargeHandyPage[0].HCPhysGCPhys; local
4301 * - GCPhys + PAGE_SIZE = HCPhys + PAGE_SIZE (whole point of this exercise)
4305 rc = pgmPhysPageMapByPageID(pVM, idPage, HCPhys, &pv);
4306 AssertLogRelMsg(RT_SUCCESS(rc), ("idPage=%#x HCPhysGCPhys=%RHp rc=%Rrc\n", idPage, HCPhys, rc)); local
4330 PGM_PAGE_SET_HCPHYS(pVM, pPage, HCPhys);
4340 HCPhys += PAGE_SIZE;
4345 Log3(("PGMR3PhysAllocateLargePage: idPage=%#x 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/vmm/
H A Dgmm.h667 RTHCPHYS HCPhys; member in struct:GMMSHAREDPAGEDESC
/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/src/VBox/Debugger/testcase/
H A DtstDBGCStubs.cpp424 VMMR3DECL(int) PGMR3DbgHCPhys2GCPhys(PUVM pUVM, RTHCPHYS HCPhys, PRTGCPHYS pGCPhys) argument
/vbox/include/VBox/
H A Ddbg.h203 RTHCPHYS HCPhys; member in union:DBGCVAR::__anon218
244 (pVar)->u.HCPhys = (Phys); \
/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/HostDrivers/Support/
H A DSUPDrvIOC.h859 RTHCPHYS HCPhys; member in struct:SUPCONTALLOC::__anon16322::__anon16324

Completed in 176 milliseconds