/vbox/src/VBox/VMM/VMMR3/ |
H A D | PGMPhysRWTmpl.h | 26 * @param GCPhys Physical address start reading from. 28 VMMDECL(PGMPHYS_DATATYPE) PGMPHYSFN_READNAME(PVM pVM, RTGCPHYS GCPhys) argument 32 PGMPhysRead(pVM, GCPhys, &val, sizeof(val)); 44 * @param GCPhys Physical address to write to. 47 VMMDECL(void) PGMPHYSFN_WRITENAME(PVM pVM, RTGCPHYS GCPhys, PGMPHYS_DATATYPE val) argument 50 PGMPhysWrite(pVM, GCPhys, &val, sizeof(val));
|
H A D | DBGFAddr.cpp | 351 RTGCPHYS GCPhys; local 352 rc = DBGFR3AddrToPhys(pUVM, idCpu, pAddress, &GCPhys);
|
H A D | GIM.cpp | 484 * @param GCPhys The guest-physical address of the region. 491 static DECLCALLBACK(int) gimR3Mmio2WriteHandler(PVM pVM, RTGCPHYS GCPhys, void *pvPhys, void *pvBuf, size_t cbBuf, argument
|
H A D | EMRaw.cpp | 678 RTGCPHYS GCPhys = 0; local 679 int rc2 = PGMGstGetPage(pVCpu, uCR2, &fFlags, &GCPhys); 682 (enmType == TRPM_SOFTWARE_INT) ? " software" : "", GCPhys, fFlags,
|
H A D | PGMHandler.cpp | 73 * @param GCPhys Start physical address. 87 VMMR3DECL(int) PGMR3HandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast, argument 92 LogFlow(("PGMR3HandlerPhysicalRegister: enmType=%d GCPhys=%RGp GCPhysLast=%RGp pfnHandlerR3=%RHv pvUserHC=%RHv pszModR0=%s pszHandlerR0=%s pvUserR0=%RHv pszModRC=%s pszHandlerRC=%s pvUser=%RRv pszDesc=%s\n", 93 enmType, GCPhys, GCPhysLast, pfnHandlerR3, pvUserR3, pszModR0, pszHandlerR0, pvUserR0, pszHandlerRC, pszModRC, pvUserRC, pszDesc)); 125 return PGMHandlerPhysicalRegisterEx(pVM, enmType, GCPhys, GCPhysLast, pfnHandlerR3, pvUserR3, 169 RTGCPHYS GCPhys = pCur->Core.Key; local 175 int rc = pgmPhysGetPageWithHintEx(pVM, GCPhys, &pPage, &pRamHint); 183 GCPhys += PAGE_SIZE; 200 RTGCPHYS GCPhys = pCur->Core.Key; local 206 int rc = pgmPhysGetPageWithHintEx(pVM, GCPhys, [all...] |
H A D | PGMPool.cpp | 116 static DECLCALLBACK(int) pgmR3PoolAccessHandler(PVM pVM, RTGCPHYS GCPhys, void *pvPhys, void *pvBuf, size_t cbBuf, PGMACCESSTYPE enmAccessType, void *pvUser); 293 pPool->aPages[NIL_PGMPOOL_IDX].GCPhys = NIL_RTGCPHYS; 306 Assert(pPool->aPages[NIL_PGMPOOL_IDX].GCPhys == NIL_RTGCPHYS); 474 pPage->GCPhys = NIL_RTGCPHYS; 525 * @param GCPhys The physical address the guest is writing to. 532 static DECLCALLBACK(int) pgmR3PoolAccessHandler(PVM pVM, RTGCPHYS GCPhys, void *pvPhys, void *pvBuf, size_t cbBuf, argument 539 LogFlow(("pgmR3PoolAccessHandler: GCPhys=%RGp %p:{.Core=%RHp, .idx=%d, .GCPhys=%RGp, .enmType=%d}\n", 540 GCPhys, pPage, pPage->Core.Key, pPage->idx, pPage->GCPhys, pPag [all...] |
H A D | PGMSharedPage.cpp | 280 RTGCPHYS GCPhys; local 285 int rc = PGMGstGetPage(VMMGetCpu(pVM), GCPtrPage, &fFlags, &GCPhys); 290 PPGMPAGE pPage = pgmPhysGetPage(pVM, GCPhys); 342 RTGCPHYS GCPhys = pRam->GCPhys; local 368 int rc = pgmPhysGCPhys2CCPtrInternalReadOnly(pVM, pPage, GCPhys, &pvPage, &PgMpLck); 389 GCPhys += PAGE_SIZE;
|
H A D | IOM.cpp | 476 * @param GCPhys The address. 479 PIOMMMIOSTATS iomR3MMIOStatsCreate(PVM pVM, RTGCPHYS GCPhys, const char *pszDesc) argument 484 PIOMMMIOSTATS pStats = (PIOMMMIOSTATS)RTAvloGCPhysGet(&pVM->iom.s.pTreesR3->MmioStatTree, GCPhys); 497 pStats->Core.Key = GCPhys; 502 rc = STAMR3RegisterF(pVM, &pStats->Accesses, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES, pszDesc, "/IOM/MMIO/%RGp", GCPhys); AssertRC(rc); 503 rc = STAMR3RegisterF(pVM, &pStats->ProfReadR3, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, pszDesc, "/IOM/MMIO/%RGp/Read-R3", GCPhys); AssertRC(rc); 504 rc = STAMR3RegisterF(pVM, &pStats->ProfWriteR3, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, pszDesc, "/IOM/MMIO/%RGp/Write-R3", GCPhys); AssertRC(rc); 505 rc = STAMR3RegisterF(pVM, &pStats->ProfReadRZ, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, pszDesc, "/IOM/MMIO/%RGp/Read-RZ", GCPhys); AssertRC(rc); 506 rc = STAMR3RegisterF(pVM, &pStats->ProfWriteRZ, STAMTYPE_PROFILE, STAMVISIBILITY_USED, STAMUNIT_TICKS_PER_CALL, pszDesc, "/IOM/MMIO/%RGp/Write-RZ", GCPhys); AssertRC(rc); 507 rc = STAMR3RegisterF(pVM, &pStats->ReadRZToR3, STAMTYPE_COUNTER, STAMVISIBILITY_USED, STAMUNIT_OCCURENCES, pszDesc, "/IOM/MMIO/%RGp/Read-RZtoR3", GCPhys); AssertR 1613 RTGCPHYS GCPhys = GCPhysStart; local [all...] |
H A D | PDMDevMiscHlp.cpp | 539 static DECLCALLBACK(bool) pdmR3PciHlp_IsMMIO2Base(PPDMDEVINS pDevIns, PPDMDEVINS pOwner, RTGCPHYS GCPhys) argument 543 bool fRc = PGMR3PhysMMIO2IsBase(pDevIns->Internal.s.pVMR3, pOwner, GCPhys); 544 Log4(("pdmR3PciHlp_IsMMIO2Base: pOwner=%p GCPhys=%RGp -> %RTbool\n", pOwner, GCPhys, fRc));
|
H A D | FTM.cpp | 85 RTGCPHYS GCPhys; member in struct:FTMTCPHDRMEM 681 * @param GCPhys GC physical address 686 static DECLCALLBACK(int) ftmR3SyncDirtyPage(PVM pVM, RTGCPHYS GCPhys, uint8_t *pRange, unsigned cbRange, void *pvUser) argument 691 Hdr.GCPhys = GCPhys; 704 switch (PGMPhysGetPageType(pVM, GCPhys)) 833 Hdr.GCPhys = 0; 860 RTGCPHYS GCPhys; local 875 GCPhys = Hdr.GCPhys; [all...] |
H A D | HM.cpp | 1027 RTGCPHYS GCPhys = 0; local 1265 rc = PDMVmmDevHeapR3ToGCPhys(pVM, pVM->hm.s.vmx.pRealModeTSS, &GCPhys); 1267 LogRel(("HM: Real Mode TSS guest physaddr = %#RGp\n", GCPhys)); 1269 rc = PDMVmmDevHeapR3ToGCPhys(pVM, pVM->hm.s.vmx.pNonPagingModeEPTPageTable, &GCPhys); 1271 LogRel(("HM: Non-Paging Mode EPT CR3 = %#RGp\n", GCPhys));
|
/vbox/src/VBox/VMM/VMMAll/ |
H A D | PGMAllHandler.cpp | 71 * @param GCPhys Start physical address. 83 VMMDECL(int) PGMHandlerPhysicalRegisterEx(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS GCPhysLast, argument 89 Log(("PGMHandlerPhysicalRegisterEx: enmType=%d GCPhys=%RGp GCPhysLast=%RGp pfnHandlerR3=%RHv pvUserR3=%RHv pfnHandlerR0=%RHv pvUserR0=%RHv pfnHandlerGC=%RRv pvUserGC=%RRv pszDesc=%s\n", 90 enmType, GCPhys, GCPhysLast, pfnHandlerR3, pvUserR3, pfnHandlerR0, pvUserR0, pfnHandlerRC, pvUserRC, R3STRING(pszDesc))); 95 AssertMsgReturn(GCPhys < GCPhysLast, ("GCPhys >= GCPhysLast (%#x >= %#x)\n", GCPhys, GCPhysLast), VERR_INVALID_PARAMETER); 103 AssertMsgReturn(!(GCPhys & PAGE_OFFSET_MASK), ("%RGp\n", GCPhys), VERR_INVALID_PARAMETER); 126 PPGMRAMRANGE pRam = pgmPhysGetRange(pVM, GCPhys); [all...] |
H A D | REMAll.cpp | 136 * @param GCPhys Handler range address. 140 VMMDECL(void) REMNotifyHandlerPhysicalRegister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler) argument 145 Rec.u.PhysicalRegister.GCPhys = GCPhys; 157 * @param GCPhys Handler range address. 162 VMMDECL(void) REMNotifyHandlerPhysicalDeregister(PVM pVM, PGMPHYSHANDLERTYPE enmType, RTGCPHYS GCPhys, RTGCPHYS cb, bool fHasHCHandler, bool fRestoreAsRAM) argument 167 Rec.u.PhysicalDeregister.GCPhys = GCPhys;
|
H A D | HMAll.cpp | 367 * @param GCPhys Page to invalidate 369 VMM_INT_DECL(int) HMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys) argument 387 VMXR0InvalidatePhysPage(pVM, pVCpu, GCPhys); 402 NOREF(GCPhys);
|
H A D | PATMAll.cpp | 373 * @param GCPhys MMIO physical address 376 VMM_INT_DECL(int) PATMSetMMIOPatchInfo(PVM pVM, RTGCPHYS GCPhys, RTRCPTR pCachedData) argument 380 pVM->patm.s.mmio.GCPhys = GCPhys;
|
H A D | PGMAllGst.h | 167 pWalk->Core.GCPhys = GST_GET_BIG_PDE_GCPHYS(pVCpu->CTX_SUFF(pVM), Pde) 169 PGM_A20_APPLY_TO_VAR(pVCpu, pWalk->Core.GCPhys); 218 pWalk->Core.GCPhys = GST_GET_PDE_GCPHYS(Pte) 286 *pGCPhys = Walk.Core.GCPhys & ~(RTGCPHYS)PAGE_OFFSET_MASK; 565 RTGCPHYS GCPhys = (RTGCPHYS)GST_GET_PDE_GCPHYS(Pde); local 570 RTGCPHYS GCPhysNew = PGM_A20_APPLY(pVCpu, GCPhys + (i4KB << PAGE_SHIFT) + offPage);
|
H A D | PGMAllBth.h | 174 const RTGCPHYS GCPhysFault = pGstWalk->Core.GCPhys; 310 * and then retry by GCPhys if that fails. 325 pvFault, pGstWalk->Core.GCPhys, pPage, uErr, pCur->enmType)); 361 rc = pgmHandlerVirtualFindByPhysAddr(pVM, pGstWalk->Core.GCPhys, &pCur, &iPage); 367 Assert((pCur->aPhysToVirt[iPage].Core.Key & X86_PTE_PAE_PG_MASK) == (pGstWalk->Core.GCPhys & X86_PTE_PAE_PG_MASK)); 559 rc = pgmPhysGetPageEx(pVM, GstWalk.Core.GCPhys, &pPage); 755 RTGCPHYS GCPhys = GstWalk.Core.GCPhys & ~(RTGCPHYS)PAGE_OFFSET_MASK; local 757 RTGCPHYS GCPhys = PGM_A20_APPLY(pVCpu, (RTGCPHYS)pvFault & ~(RTGCPHYS)PAGE_OFFSET_MASK); local 760 rc = pgmPhysGetPageEx(pVM, GCPhys, 1348 RTGCPHYS GCPhys = GST_GET_PDE_GCPHYS(PdeSrc); local 1398 RTGCPHYS GCPhys = GST_GET_BIG_PDE_GCPHYS(pVM, PdeSrc); local [all...] |
H A D | IOMAllMMIO.cpp | 89 * @param GCPhys The physical address to start writing. 93 static VBOXSTRICTRC iomMMIODoComplicatedWrite(PVM pVM, PIOMMMIORANGE pRange, RTGCPHYS GCPhys, void const *pvValue, unsigned cbValue) argument 99 RTGCPHYS const GCPhysStart = GCPhys; NOREF(GCPhysStart); 112 "Complicated write %#x byte at %RGp to %s\n", cbValue, GCPhys, R3STRING(pRange->pszDesc)); 126 Assert(cbValue != 4 || (GCPhys & 3)); 131 Assert((cbValue != 4 && cbValue != 8) || (GCPhys & (cbValue - 1))); 140 unsigned const offAccess = GCPhys & 3; 152 GCPhys & ~(RTGCPHYS)3, &u32MissingValue, sizeof(u32MissingValue)); 173 LogFlow(("iomMMIODoComplicatedWrite: GCPhys=%RGp GCPhysStart=%RGp cbValue=%u rc=%Rrc [read]\n", GCPhys, GCPhysStar 328 iomMMIODoComplicatedRead(PVM pVM, PIOMMMIORANGE pRange, RTGCPHYS GCPhys, void *pvValue, unsigned cbValue) argument 492 iomMMIODoRead(PVM pVM, PVMCPU pVCpu, PIOMMMIORANGE pRange, RTGCPHYS GCPhys, void *pvValue, unsigned cbValue) argument 1857 IOMMMIORead(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys, uint32_t *pu32Value, size_t cbValue) argument 1989 IOMMMIOWrite(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys, uint32_t u32Value, size_t cbValue) argument 2436 IOMMMIOMapMMIO2Page(PVM pVM, RTGCPHYS GCPhys, RTGCPHYS GCPhysRemapped, uint64_t fPageFlags) argument 2511 IOMMMIOMapMMIOHCPage(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys, RTHCPHYS HCPhys, uint64_t fPageFlags) argument 2561 IOMMMIOResetRegion(PVM pVM, RTGCPHYS GCPhys) argument [all...] |
H A D | PGMAllPool.cpp | 101 LogFlow(("pgmPoolMonitorChainFlush: Flush page %RGp type=%d\n", pPage->GCPhys, pPage->enmKind)); 201 LogFlow(("pgmPoolMonitorChainChanging: page idx=%d phys=%RGp (next=%d) kind=%s\n", pPage->idx, pPage->GCPhys, pPage->iMonitoredNext, pgmPoolPoolKindToStr(pPage->enmKind), cbWrite)); 218 Log4(("pgmPoolMonitorChainChanging 32_32: deref %016RX64 GCPhys %08RX32\n", uShw.pPT->a[iShw].u & X86_PTE_PAE_PG_MASK, GstPte.u & X86_PTE_PG_MASK)); 233 if (!((off ^ pPage->GCPhys) & (PAGE_SIZE / 2))) 243 Log4(("pgmPoolMonitorChainChanging pae_32: deref %016RX64 GCPhys %08RX32\n", uShw.pPT->a[iShw].u & X86_PTE_PAE_PG_MASK, GstPte.u & X86_PTE_PG_MASK)); 332 Log4(("pgmPoolMonitorChainChanging pae: deref %016RX64 GCPhys %016RX64\n", PGMSHWPTEPAE_GET_HCPHYS(uShw.pPTPae->a[iShw]), GstPte.u & X86_PTE_PAE_PG_MASK)); 356 Log4(("pgmPoolMonitorChainChanging pae: deref %016RX64 GCPhys %016RX64\n", PGMSHWPTEPAE_GET_HCPHYS(uShw.pPTPae->a[iShw2]), GstPte.u & X86_PTE_PAE_PG_MASK)); 515 const unsigned offPdpt = GCPhysFault - pPage->GCPhys; 1074 if (PHYS_PAGE_ADDRESS(GCPhysFault) != PHYS_PAGE_ADDRESS(pPage->GCPhys)) 1077 Log(("CPU%d: pgmPoolAccessHandler pgm pool page for %RGp changed (to %RGp) while waiting!\n", pVCpu->idCpu, PHYS_PAGE_ADDRESS(GCPhysFault), PHYS_PAGE_ADDRESS(pPage->GCPhys))); 1817 pgmPoolIsDirtyPage(PVM pVM, RTGCPHYS GCPhys) argument [all...] |
/vbox/src/VBox/VMM/include/ |
H A D | IOMInline.h | 66 * @param GCPhys Physical address to lookup. 68 DECLINLINE(PIOMMMIORANGE) iomMmioGetRange(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys) argument 73 || GCPhys - pRange->GCPhys >= pRange->cb) 75 = (PIOMMMIORANGE)RTAvlroGCPhysRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->MMIOTree, GCPhys); 102 * @param GCPhys Physical address to lookup. 104 DECLINLINE(PIOMMMIORANGE) iomMmioGetRangeWithRef(PVM pVM, PVMCPU pVCpu, RTGCPHYS GCPhys) 111 || GCPhys - pRange->GCPhys >= pRange->cb) 113 = (PIOMMMIORANGE)RTAvlroGCPhysRangeGet(&pVM->iom.s.CTX_SUFF(pTrees)->MMIOTree, GCPhys); [all...] |
H A D | REMInternal.h | 79 RTGCPHYS GCPhys; member in struct:REMHANDLERNOTIFICATION::__anon16967::__anon16968 87 RTGCPHYS GCPhys; member in struct:REMHANDLERNOTIFICATION::__anon16967::__anon16969
|
/vbox/src/VBox/VMM/VMMR0/ |
H A D | PGMR0SharedPage.cpp | 73 RTGCPHYS GCPhys; local 75 rc = PGMGstGetPage(pVCpu, GCPtrPage, &fFlags, &GCPhys); 79 PPGMPAGE pPage = pgmPhysGetPage(pVM, GCPhys); 88 PageDesc.GCPhys = GCPhys; 102 GCPtrPage, PageDesc.GCPhys, PGM_PAGE_GET_HCPHYS(pPage), PageDesc.HCPhys)); 108 rc = pgmPoolTrackUpdateGCPhys(pVM, PageDesc.GCPhys, pPage, true /* clear the entries */, &fFlush); 123 pgmPhysInvalidatePageMapTLBEntry(pVM, PageDesc.GCPhys);
|
H A D | PGMR0.cpp | 269 * @param GCPhys The address of the guest page (page aligned). 272 VMMR0_INT_DECL(int) GPciRawR0GuestPageAssign(PGVM pGVM, RTGCPHYS GCPhys, RTHCPHYS HCPhys) argument 274 AssertReturn(!(GCPhys & PAGE_OFFSET_MASK), VERR_INTERNAL_ERROR_3); 279 pGVM->rawpci.s.pfnContigMemInfo(&pGVM->rawpci.s, HCPhys, GCPhys, PAGE_SIZE, PCIRAW_MEMINFO_MAP); 294 * @param GCPhys The address of the guest page (page aligned). 297 VMMR0_INT_DECL(int) GPciRawR0GuestPageUnassign(PGVM pGVM, RTGCPHYS GCPhys) argument 299 AssertReturn(!(GCPhys & PAGE_OFFSET_MASK), VERR_INTERNAL_ERROR_3); 303 pGVM->rawpci.s.pfnContigMemInfo(&pGVM->rawpci.s, 0, GCPhys, PAGE_SIZE, PCIRAW_MEMINFO_UNMAP); 333 * @param GCPhys The address of the guest page (page aligned). 337 VMMR0_INT_DECL(int) GPciRawR0GuestPageUpdate(PGVM pGVM, RTGCPHYS GCPhys, RTHCPHY argument 378 RTGCPHYS GCPhys = pRam->GCPhys; local [all...] |
H A D | PDMR0Device.cpp | 70 static DECLCALLBACK(int) pdmR0DevHlp_PCIPhysRead(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead) argument 83 Log(("pdmRCDevHlp_PCIPhysRead: caller=%p/%d: returns %Rrc - Not bus master! GCPhys=%RGp cbRead=%#zx\n", 84 pDevIns, pDevIns->iInstance, VERR_PDM_NOT_PCI_BUS_MASTER, GCPhys, cbRead)); 89 return pDevIns->pHlpR0->pfnPhysRead(pDevIns, GCPhys, pvBuf, cbRead); 94 static DECLCALLBACK(int) pdmR0DevHlp_PCIPhysWrite(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite) argument 107 Log(("pdmRCDevHlp_PCIPhysWrite: caller=%p/%d: returns %Rrc - Not bus master! GCPhys=%RGp cbWrite=%#zx\n", 108 pDevIns, pDevIns->iInstance, VERR_PDM_NOT_PCI_BUS_MASTER, GCPhys, cbWrite)); 113 return pDevIns->pHlpR0->pfnPhysWrite(pDevIns, GCPhys, pvBuf, cbWrite); 201 static DECLCALLBACK(int) pdmR0DevHlp_PhysRead(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, void *pvBuf, size_t cbRead) argument 204 LogFlow(("pdmR0DevHlp_PhysRead: caller=%p/%d: GCPhys 216 pdmR0DevHlp_PhysWrite(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, const void *pvBuf, size_t cbWrite) argument 298 pdmR0DevHlp_PATMSetMMIOPatchInfo(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, RTGCPTR pCachedData) argument 786 pdmR0PciHlp_IoApicSendMsi(PPDMDEVINS pDevIns, RTGCPHYS GCPhys, uint32_t uValue, uint32_t uTagSrc) argument [all...] |
/vbox/src/VBox/VMM/testcase/ |
H A D | tstAnimate.cpp | 288 RTGCPHYS GCPhys = 0; local 291 if (!(GCPhys % (PAGE_SIZE * 0x1000))) 292 RTPrintf("info: %RGp...\n", GCPhys); 312 if (GCPhys < 0xa0000 || GCPhys >= 0x100000) /* ASSUME size of a8Page is a power of 2. */ 313 PGMPhysWrite(pVM, GCPhys, &au8Page, cbRead); 314 GCPhys += cbRead;
|