VirtualBox

Changeset 32607 in vbox


Ignore:
Timestamp:
Sep 17, 2010 2:20:09 PM (14 years ago)
Author:
vboxsync
Message:

WINNT/VBoxGuest: Fixed logging, don't fail loading if memory ballooning is not supported.

File:
1 edited

Legend:

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

    r31364 r32607  
    736736
    737737    int rc = VbglGRAlloc((VMMDevRequestHeader **)&req, sizeof(VMMDevGetMemBalloonChangeRequest), VMMDevReq_GetMemBalloonChangeRequest);
    738 
    739738    if (RT_SUCCESS(rc))
    740739    {
    741740        req->eventAck = VMMDEV_EVENT_BALLOON_CHANGE_REQUEST;
    742741        rc = VbglGRPerform(&req->header);
    743 
    744         if (RT_FAILURE(rc))
    745         {
    746             dprintf(("VBoxGuest::VBoxGuestDeviceControl VBOXGUEST_IOCTL_CHECK_BALLOON: error issuing request to VMMDev! "
    747                      "rc = %Rrc\n", rc));
    748         }
    749         else
     742        if (RT_SUCCESS(rc))
    750743        {
    751744            if (!pDevExt->MemBalloon.paMdlMemBalloon)
     
    767760                *pMemBalloonSize = pDevExt->MemBalloon.cBalloonChunks;
    768761        }
    769 
     762        else if (   rc == VERR_NOT_SUPPORTED
     763                 || rc == VERR_NOT_IMPLEMENTED)
     764        {
     765            dprintf(("VBoxGuest::VBoxGuestQueryMemoryBalloon: Memory ballooning not implemented/supported!\n"));
     766            rc = VINF_SUCCESS;
     767        }
     768        else
     769            dprintf(("VBoxGuest::VBoxGuestQueryMemoryBalloon: Performing VMMDEV_EVENT_BALLOON_CHANGE_REQUEST failed with rc=%Rrc\n", rc));
    770770        VbglGRFree(&req->header);
    771771    }
     772    else
     773        dprintf(("VBoxGuest::VBoxGuestQueryMemoryBalloon: VbglGRAlloc failed with rc=%Rrc\n", rc));
    772774    return rc;
    773775}
     
    782784    pDevExt->MemBalloon.cMaxBalloonChunks = 0;
    783785    pDevExt->MemBalloon.paMdlMemBalloon = NULL;
    784 
    785786    return VBoxGuestQueryMemoryBalloon(pDevExt, &dummy);
    786787#else
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