VirtualBox

Changeset 21632 in vbox for trunk/src/VBox/Additions/common


Ignore:
Timestamp:
Jul 16, 2009 8:53:13 AM (16 years ago)
Author:
vboxsync
Message:

VBoxGuest.cpp: A bit more logging in vboxGuestInitFixateGuestMappings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest.cpp

    r21524 r21632  
    9696        RTR0MEMOBJ  ahTries[5];
    9797        uint32_t    iTry;
     98        bool        fBitched = false;
    9899        Log(("vboxGuestInitFixateGuestMappings: cbHypervisor=%#x\n", cbHypervisor));
    99100        for (iTry = 0; iTry < RT_ELEMENTS(ahTries); iTry++)
     
    136137                LogRel(("VBoxGuest: Failed to reserve memory for the hypervisor: rc=%Rrc (cbHypervisor=%#x uAlignment=%#x iTry=%u)\n",
    137138                        rc, cbHypervisor, uAlignment, iTry));
     139                fBitched = true;
    138140                break;
    139141            }
     
    156158            {
    157159                pDevExt->hGuestMappings = hFictive != NIL_RTR0MEMOBJ ? hFictive : hObj;
    158                 Log(("vboxGuestInitFixateGuestMappings: %p LB %#x; uAlignment=%#x iTry=%u hGuestMappings=%p (%s)\n",
    159                      RTR0MemObjAddress(pDevExt->hGuestMappings),
    160                      RTR0MemObjSize(pDevExt->hGuestMappings),
    161                      uAlignment, iTry, pDevExt->hGuestMappings, hFictive != NIL_RTR0PTR ? "fictive" : "reservation"));
     160                LogRel(("VBoxGuest: %p LB %#x; uAlignment=%#x iTry=%u hGuestMappings=%p (%s)\n",
     161                        RTR0MemObjAddress(pDevExt->hGuestMappings),
     162                        RTR0MemObjSize(pDevExt->hGuestMappings),
     163                        uAlignment, iTry, pDevExt->hGuestMappings, hFictive != NIL_RTR0PTR ? "fictive" : "reservation"));
    162164                break;
    163165            }
     
    173175            &&  hFictive != NIL_RTR0PTR)
    174176            RTR0MemObjFree(hFictive, false /* fFreeMappings */);
     177        if (RT_FAILURE(rc) && !fBitched)
     178            LogRel(("VBoxGuest: Warning: failed to reserve %#d of memory for guest mappings.\n", cbHypervisor));
    175179    }
    176180    VbglGRFree(&pReq->header);
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