VirtualBox

Changeset 30902 in vbox


Ignore:
Timestamp:
Jul 19, 2010 9:02:40 AM (15 years ago)
Author:
vboxsync
Message:

GMMR0.cpp: Added log statements for some VERR_PGM_PHYS_INVALID_PAGE_ID failure (see #5124).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/GMMR0.cpp

    r30860 r30902  
    38213821 *
    38223822 * 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!!
    38273830 *
    38283831 * @returns VBox status code.
     
    38343837 * @param   paPageDesc          Page descriptor
    38353838 */
    3836 GMMR0DECL(int) GMMR0SharedModuleCheckPage(PGVM pGVM, PGMMSHAREDMODULE pModule, unsigned idxRegion, unsigned idxPage, PGMMSHAREDPAGEDESC pPageDesc)
     3839GMMR0DECL(int) GMMR0SharedModuleCheckPage(PGVM pGVM, PGMMSHAREDMODULE pModule, unsigned idxRegion, unsigned idxPage,
     3840                                          PGMMSHAREDPAGEDESC pPageDesc)
    38373841{
    38383842    int rc = VINF_SUCCESS;
     
    38733877        if (!pPage)
    38743878        {
     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));
    38753881            AssertFailed();
    38763882            rc = VERR_PGM_PHYS_INVALID_PAGE_ID;
     
    38993905        if (!pPage)
    39003906        {
     3907            Log(("GMMR0SharedModuleCheckPage: Invalid idPage=%#x #2 (idxRegion=%#x idxPage=%#x)\n",
     3908                 pPageDesc->uHCPhysPageId, idxRegion, idxPage));
    39013909            AssertFailed();
    39023910            rc = VERR_PGM_PHYS_INVALID_PAGE_ID;
     
    39203928            if (!gmmR0IsChunkMapped(pGVM, pChunk, (PRTR3PTR)&pbChunk))
    39213929            {
     3930                Log(("GMMR0SharedModuleCheckPage: Invalid idPage=%#x #3\n", pPageDesc->uHCPhysPageId));
    39223931                AssertFailed();
    39233932                rc = VERR_PGM_PHYS_INVALID_PAGE_ID;
     
    39283937        else
    39293938        {
     3939            Log(("GMMR0SharedModuleCheckPage: Invalid idPage=%#x #4\n", pPageDesc->uHCPhysPageId));
    39303940            AssertFailed();
    39313941            rc = VERR_PGM_PHYS_INVALID_PAGE_ID;
Note: See TracChangeset for help on using the changeset viewer.

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