VirtualBox

Changeset 91854 in vbox for trunk/include


Ignore:
Timestamp:
Oct 20, 2021 12:50:11 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
147656
Message:

VMM: Removed PGM_WITHOUT_MAPPINGS and associated mapping code. bugref:9517

Location:
trunk/include/VBox/vmm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/mm.h

    r91266 r91854  
    266266#define MMHYPER_AONR_FLAGS_KERNEL_MAPPING   RT_BIT(0)
    267267/** @} */
    268 VMMR3DECL(int)      MMR3HyperSetGuard(PVM pVM, void *pvStart, size_t cb, bool fSet);
    269 #ifndef PGM_WITHOUT_MAPPINGS
    270 VMMR3DECL(int)      MMR3HyperMapHCPhys(PVM pVM, void *pvR3, RTR0PTR pvR0, RTHCPHYS HCPhys, size_t cb, const char *pszDesc, PRTGCPTR pGCPtr);
    271 VMMR3DECL(int)      MMR3HyperMapGCPhys(PVM pVM, RTGCPHYS GCPhys, size_t cb, const char *pszDesc, PRTGCPTR pGCPtr);
    272 VMMR3DECL(int)      MMR3HyperReserve(PVM pVM, unsigned cb, const char *pszDesc, PRTGCPTR pGCPtr);
    273 #endif
    274 VMMR3DECL(int)      MMR3HyperMapPages(PVM pVM, void *pvR3, RTR0PTR pvR0, size_t cPages, PCSUPPAGE paPages, const char *pszDesc, PRTGCPTR pGCPtr);
    275 VMMR3DECL(int)      MMR3HyperReserveFence(PVM pVM);
    276268VMMR3DECL(RTHCPHYS) MMR3HyperHCVirt2HCPhys(PVM pVM, void *pvHC);
    277269VMMR3DECL(int)      MMR3HyperHCVirt2HCPhysEx(PVM pVM, void *pvHC, PRTHCPHYS pHCPhys);
    278 #ifndef PGM_WITHOUT_MAPPINGS
    279 VMMR3_INT_DECL(int) MMR3HyperQueryInfoFromHCPhys(PVM pVM, RTHCPHYS HCPhys, char *pszWhat, size_t cbWhat, uint32_t *pcbAlloc);
    280 VMMR3DECL(int)      MMR3HyperReadGCVirt(PVM pVM, void *pvDst, RTGCPTR GCPtr, size_t cb);
    281 #endif
    282270/** @} */
    283271
  • trunk/include/VBox/vmm/pgm.h

    r91848 r91854  
    5454    PGMRELOCATECALL_RELOCATE
    5555} PGMRELOCATECALL;
    56 
    57 
    58 /** No guest context mappings (might be removed entirely later, if we don't
    59  *  need it again (see new raw-mode ideas)).
    60  * @internal  */
    61 #define PGM_WITHOUT_MAPPINGS
    6256
    6357
     
    325319VMMDECL(int)            PGMIsValidAccess(PVMCPUCC pVCpu, RTGCPTR Addr, uint32_t cbSize, uint32_t fAccess);
    326320VMMDECL(VBOXSTRICTRC)   PGMInterpretInstruction(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault);
    327 #ifndef PGM_WITHOUT_MAPPINGS
    328 VMMDECL(int)            PGMMap(PVM pVM, RTGCPTR GCPtr, RTHCPHYS HCPhys, uint32_t cbPages, unsigned fFlags);
    329 VMMDECL(int)            PGMMapGetPage(PVM pVM, RTGCPTR GCPtr, uint64_t *pfFlags, PRTHCPHYS pHCPhys);
    330 VMMDECL(int)            PGMMapSetPage(PVM pVM, RTGCPTR GCPtr, uint64_t cb, uint64_t fFlags);
    331 VMMDECL(int)            PGMMapModifyPage(PVM pVM, RTGCPTR GCPtr, size_t cb, uint64_t fFlags, uint64_t fMask);
    332 # ifndef IN_RING0
    333 VMMDECL(bool)           PGMMapHasConflicts(PVM pVM);
    334 # endif
    335 # ifdef VBOX_STRICT
    336 VMMDECL(void)           PGMMapCheck(PVM pVM);
    337 # endif
    338 #endif  /* !PGM_WITHOUT_MAPPINGS */
    339321VMMDECL(int)            PGMShwGetPage(PVMCPUCC pVCpu, RTGCPTR GCPtr, uint64_t *pfFlags, PRTHCPHYS pHCPhys);
    340322VMMDECL(int)            PGMShwMakePageReadonly(PVMCPUCC pVCpu, RTGCPTR GCPtr, uint32_t fFlags);
     
    694676VMMR3_INT_DECL(void)    PGMR3EnableNemMode(PVM pVM);
    695677VMMR3DECL(int)      PGMR3Init(PVM pVM);
    696 VMMR3DECL(int)      PGMR3InitDynMap(PVM pVM);
    697678VMMR3DECL(int)      PGMR3InitFinalize(PVM pVM);
    698679VMMR3_INT_DECL(int) PGMR3InitCompleted(PVM pVM, VMINITCOMPLETED enmWhat);
     
    725706VMMR3_INT_DECL(RTGCPHYS) PGMR3PhysMmio2GetMappingAddress(PVM pVM, PPDMDEVINS pDevIns, PGMMMIO2HANDLE hMmio2);
    726707VMMR3_INT_DECL(int) PGMR3PhysMmio2ChangeRegionNo(PVM pVM, PPDMDEVINS pDevIns, PGMMMIO2HANDLE hMmio2, uint32_t iNewRegion);
    727 VMMR3_INT_DECL(int) PGMR3PhysMMIO2GetHCPhys(PVM pVM, PPDMDEVINS pDevIns, uint32_t iSubDev, uint32_t iRegion, RTGCPHYS off, PRTHCPHYS pHCPhys);
    728708
    729709
     
    747727VMMR3DECL(int)      PGMR3PhysRegister(PVM pVM, void *pvRam, RTGCPHYS GCPhys, size_t cb, unsigned fFlags, const SUPPAGE *paPages, const char *pszDesc);
    748728VMMDECL(void)       PGMR3PhysSetA20(PVMCPU pVCpu, bool fEnable);
    749 #ifndef PGM_WITHOUT_MAPPINGS
    750 /** @name PGMR3MapPT flags.
    751  * @{ */
    752 /** The mapping may be unmapped later. The default is permanent mappings. */
    753 # define PGMR3MAPPT_FLAGS_UNMAPPABLE     RT_BIT(0)
    754 /** @} */
    755 VMMR3DECL(int)      PGMR3MapPT(PVM pVM, RTGCPTR GCPtr, uint32_t cb, uint32_t fFlags, PFNPGMRELOCATE pfnRelocate, void *pvUser, const char *pszDesc);
    756 VMMR3DECL(int)      PGMR3UnmapPT(PVM pVM, RTGCPTR GCPtr);
    757 VMMR3DECL(int)      PGMR3FinalizeMappings(PVM pVM);
    758 VMMR3DECL(bool)     PGMR3MappingsNeedReFixing(PVM pVM);
    759 # if defined(VBOX_WITH_RAW_MODE) || HC_ARCH_BITS == 32 /* (latter for 64-bit guests on 32-bit hosts) */
    760 VMMR3DECL(int)      PGMR3MapIntermediate(PVM pVM, RTUINTPTR Addr, RTHCPHYS HCPhys, unsigned cbPages);
    761 # endif
    762 VMMR3DECL(int)      PGMR3MapRead(PVM pVM, void *pvDst, RTGCPTR GCPtrSrc, size_t cb);
    763 #endif /* !PGM_WITHOUT_MAPPINGS */
     729
    764730VMMR3DECL(int)      PGMR3MappingsSize(PVM pVM, uint32_t *pcb);
    765731VMMR3DECL(int)      PGMR3MappingsFix(PVM pVM, RTGCPTR GCPtrBase, uint32_t cb);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette