Changeset 29308 in vbox
- Timestamp:
- May 10, 2010 3:23:09 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/gmm.h
r29307 r29308 294 294 GMMR0DECL(int) GMMR0MapUnmapChunk(PVM pVM, VMCPUID idCpu, uint32_t idChunkMap, uint32_t idChunkUnmap, PRTR3PTR ppvR3); 295 295 GMMR0DECL(int) GMMR0SeedChunk(PVM pVM, VMCPUID idCpu, RTR3PTR pvR3); 296 GMMR0DECL(int) GMMR0RegisterSharedModule(PVM pVM, VMCPUID idCpu, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule, unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions);296 GMMR0DECL(int) GMMR0RegisterSharedModule(PVM pVM, VMCPUID idCpu, VBOXOSFAMILY enmGuestOS, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule, unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions); 297 297 GMMR0DECL(int) GMMR0UnregisterSharedModule(PVM pVM, VMCPUID idCpu, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule); 298 298 GMMR0DECL(int) GMMR0UnregisterAllSharedModules(PVM pVM, VMCPUID idCpu); -
trunk/src/VBox/VMM/PGMSharedPage.cpp
r29203 r29308 125 125 * @returns VBox status code. 126 126 * @param pVM VM handle 127 * @param enmGuestOS Guest OS type 127 128 * @param pszModuleName Module name 128 129 * @param pszVersion Module version … … 132 133 * @param pRegions Shared region(s) 133 134 */ 134 VMMR3DECL(int) PGMR3SharedModuleRegister(PVM pVM, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule,135 VMMR3DECL(int) PGMR3SharedModuleRegister(PVM pVM, VBOXOSFAMILY enmGuestOS, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule, 135 136 unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions) 136 137 { … … 144 145 AssertReturn(pReq, VERR_NO_MEMORY); 145 146 147 pReq->enmGuestOS = enmGuestOS; 146 148 pReq->GCBaseAddr = GCBaseAddr; 147 149 pReq->cbModule = cbModule; -
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r29250 r29308 3451 3451 * @param pVM VM handle 3452 3452 * @param idCpu VCPU id 3453 * @param enmGuestOS Guest OS type 3453 3454 * @param pszModuleName Module name 3454 3455 * @param pszVersion Module version … … 3458 3459 * @param pRegions Shared region(s) 3459 3460 */ 3460 GMMR0DECL(int) GMMR0RegisterSharedModule(PVM pVM, VMCPUID idCpu, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule,3461 GMMR0DECL(int) GMMR0RegisterSharedModule(PVM pVM, VMCPUID idCpu, VBOXOSFAMILY enmGuestOS, char *pszModuleName, char *pszVersion, RTGCPTR GCBaseAddr, uint32_t cbModule, 3461 3462 unsigned cRegions, VMMDEVSHAREDREGIONDESC *pRegions) 3462 3463 { … … 3524 3525 strcpy(pGlobalModule->szVersion, pszVersion); 3525 3526 3526 pGlobalModule->cRegions = cRegions; 3527 pGlobalModule->enmGuestOS = enmGuestOS; 3528 pGlobalModule->cRegions = cRegions; 3527 3529 3528 3530 for (unsigned i = 0; i < cRegions; i++) … … 3597 3599 AssertMsgReturn(pReq->Hdr.cbReq >= sizeof(*pReq) && pReq->Hdr.cbReq == RT_UOFFSETOF(GMMREGISTERSHAREDMODULEREQ, aRegions[pReq->cRegions]), ("%#x != %#x\n", pReq->Hdr.cbReq, sizeof(*pReq)), VERR_INVALID_PARAMETER); 3598 3600 3599 return GMMR0RegisterSharedModule(pVM, idCpu, pReq-> szName, pReq->szVersion, pReq->GCBaseAddr, pReq->cbModule, pReq->cRegions, pReq->aRegions);3601 return GMMR0RegisterSharedModule(pVM, idCpu, pReq->enmGuestOS, pReq->szName, pReq->szVersion, pReq->GCBaseAddr, pReq->cbModule, pReq->cRegions, pReq->aRegions); 3600 3602 } 3601 3603 -
trunk/src/VBox/VMM/VMMR0/GMMR0Internal.h
r29201 r29308 69 69 /** Number of users (VMs). */ 70 70 uint32_t cUsers; 71 /** Align. */72 uint32_t u32Align;71 /** Guest OS family type. */ 72 VBOXOSFAMILY enmGuestOS; 73 73 /** Module name */ 74 74 char szName[GMM_SHARED_MODULE_MAX_NAME_STRING];
Note:
See TracChangeset
for help on using the changeset viewer.