Changeset 30902 in vbox
- Timestamp:
- Jul 19, 2010 9:02:40 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/GMMR0.cpp
r30860 r30902 3821 3821 * 3822 3822 * Performs the following tasks: 3823 * - if a shared page is new, then it changes the GMM page type to shared and returns it in the pPageDesc descriptor 3824 * - if a shared page already exists, then it checks if the VM page is identical and if so frees the VM page and returns the shared page in pPageDesc descriptor 3825 * 3826 * Note: assumes the caller has acquired the GMM semaphore!! 3823 * - If a shared page is new, then it changes the GMM page type to shared and 3824 * returns it in the pPageDesc descriptor. 3825 * - If a shared page already exists, then it checks if the VM page is 3826 * identical and if so frees the VM page and returns the shared page in 3827 * pPageDesc descriptor. 3828 * 3829 * @remarks ASSUMES the caller has acquired the GMM semaphore!! 3827 3830 * 3828 3831 * @returns VBox status code. … … 3834 3837 * @param paPageDesc Page descriptor 3835 3838 */ 3836 GMMR0DECL(int) GMMR0SharedModuleCheckPage(PGVM pGVM, PGMMSHAREDMODULE pModule, unsigned idxRegion, unsigned idxPage, PGMMSHAREDPAGEDESC pPageDesc) 3839 GMMR0DECL(int) GMMR0SharedModuleCheckPage(PGVM pGVM, PGMMSHAREDMODULE pModule, unsigned idxRegion, unsigned idxPage, 3840 PGMMSHAREDPAGEDESC pPageDesc) 3837 3841 { 3838 3842 int rc = VINF_SUCCESS; … … 3873 3877 if (!pPage) 3874 3878 { 3879 Log(("GMMR0SharedModuleCheckPage: Invalid idPage=%#x #1 (GCPhys=%RGp HCPhys=%RHp idxRegion=%#x idxPage=%#x)\n", 3880 pPageDesc->uHCPhysPageId, pPageDesc->GCPhys, pPageDesc->HCPhys, idxRegion, idxPage)); 3875 3881 AssertFailed(); 3876 3882 rc = VERR_PGM_PHYS_INVALID_PAGE_ID; … … 3899 3905 if (!pPage) 3900 3906 { 3907 Log(("GMMR0SharedModuleCheckPage: Invalid idPage=%#x #2 (idxRegion=%#x idxPage=%#x)\n", 3908 pPageDesc->uHCPhysPageId, idxRegion, idxPage)); 3901 3909 AssertFailed(); 3902 3910 rc = VERR_PGM_PHYS_INVALID_PAGE_ID; … … 3920 3928 if (!gmmR0IsChunkMapped(pGVM, pChunk, (PRTR3PTR)&pbChunk)) 3921 3929 { 3930 Log(("GMMR0SharedModuleCheckPage: Invalid idPage=%#x #3\n", pPageDesc->uHCPhysPageId)); 3922 3931 AssertFailed(); 3923 3932 rc = VERR_PGM_PHYS_INVALID_PAGE_ID; … … 3928 3937 else 3929 3938 { 3939 Log(("GMMR0SharedModuleCheckPage: Invalid idPage=%#x #4\n", pPageDesc->uHCPhysPageId)); 3930 3940 AssertFailed(); 3931 3941 rc = VERR_PGM_PHYS_INVALID_PAGE_ID;
Note:
See TracChangeset
for help on using the changeset viewer.