Changeset 91854 in vbox for trunk/include
- Timestamp:
- Oct 20, 2021 12:50:11 AM (4 years ago)
- svn:sync-xref-src-repo-rev:
- 147656
- Location:
- trunk/include/VBox/vmm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/mm.h
r91266 r91854 266 266 #define MMHYPER_AONR_FLAGS_KERNEL_MAPPING RT_BIT(0) 267 267 /** @} */ 268 VMMR3DECL(int) MMR3HyperSetGuard(PVM pVM, void *pvStart, size_t cb, bool fSet);269 #ifndef PGM_WITHOUT_MAPPINGS270 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 #endif274 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);276 268 VMMR3DECL(RTHCPHYS) MMR3HyperHCVirt2HCPhys(PVM pVM, void *pvHC); 277 269 VMMR3DECL(int) MMR3HyperHCVirt2HCPhysEx(PVM pVM, void *pvHC, PRTHCPHYS pHCPhys); 278 #ifndef PGM_WITHOUT_MAPPINGS279 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 #endif282 270 /** @} */ 283 271 -
trunk/include/VBox/vmm/pgm.h
r91848 r91854 54 54 PGMRELOCATECALL_RELOCATE 55 55 } PGMRELOCATECALL; 56 57 58 /** No guest context mappings (might be removed entirely later, if we don't59 * need it again (see new raw-mode ideas)).60 * @internal */61 #define PGM_WITHOUT_MAPPINGS62 56 63 57 … … 325 319 VMMDECL(int) PGMIsValidAccess(PVMCPUCC pVCpu, RTGCPTR Addr, uint32_t cbSize, uint32_t fAccess); 326 320 VMMDECL(VBOXSTRICTRC) PGMInterpretInstruction(PVMCC pVM, PVMCPUCC pVCpu, PCPUMCTXCORE pRegFrame, RTGCPTR pvFault); 327 #ifndef PGM_WITHOUT_MAPPINGS328 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_RING0333 VMMDECL(bool) PGMMapHasConflicts(PVM pVM);334 # endif335 # ifdef VBOX_STRICT336 VMMDECL(void) PGMMapCheck(PVM pVM);337 # endif338 #endif /* !PGM_WITHOUT_MAPPINGS */339 321 VMMDECL(int) PGMShwGetPage(PVMCPUCC pVCpu, RTGCPTR GCPtr, uint64_t *pfFlags, PRTHCPHYS pHCPhys); 340 322 VMMDECL(int) PGMShwMakePageReadonly(PVMCPUCC pVCpu, RTGCPTR GCPtr, uint32_t fFlags); … … 694 676 VMMR3_INT_DECL(void) PGMR3EnableNemMode(PVM pVM); 695 677 VMMR3DECL(int) PGMR3Init(PVM pVM); 696 VMMR3DECL(int) PGMR3InitDynMap(PVM pVM);697 678 VMMR3DECL(int) PGMR3InitFinalize(PVM pVM); 698 679 VMMR3_INT_DECL(int) PGMR3InitCompleted(PVM pVM, VMINITCOMPLETED enmWhat); … … 725 706 VMMR3_INT_DECL(RTGCPHYS) PGMR3PhysMmio2GetMappingAddress(PVM pVM, PPDMDEVINS pDevIns, PGMMMIO2HANDLE hMmio2); 726 707 VMMR3_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);728 708 729 709 … … 747 727 VMMR3DECL(int) PGMR3PhysRegister(PVM pVM, void *pvRam, RTGCPHYS GCPhys, size_t cb, unsigned fFlags, const SUPPAGE *paPages, const char *pszDesc); 748 728 VMMDECL(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 764 730 VMMR3DECL(int) PGMR3MappingsSize(PVM pVM, uint32_t *pcb); 765 731 VMMR3DECL(int) PGMR3MappingsFix(PVM pVM, RTGCPTR GCPtrBase, uint32_t cb);
Note:
See TracChangeset
for help on using the changeset viewer.