VirtualBox

Changeset 4532 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Sep 5, 2007 1:13:07 PM (17 years ago)
Author:
vboxsync
Message:

Memory balloon size change updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r4524 r4532  
    12011201
    12021202                requestHeader->rc = VINF_SUCCESS;
     1203            }
     1204            break;
     1205        }
     1206
     1207        case VMMDevReq_ChangeMemBalloon:
     1208        {
     1209            VMMDevChangeMemBalloon *memBalloonChange = (VMMDevChangeMemBalloon*)requestHeader;
     1210
     1211            Log(("VMMDevReq_ChangeMemBalloon\n"));
     1212            if (    requestHeader->size < sizeof(VMMDevChangeMemBalloon)
     1213                ||  requestHeader->size != RT_OFFSETOF(VMMDevChangeMemBalloon, aPhysPage[memBalloonChange->cPages]))
     1214            {
     1215                AssertFailed();
     1216                requestHeader->rc = VERR_INVALID_PARAMETER;
     1217            }
     1218            else
     1219            {
     1220                requestHeader->rc = pData->pDrv->pfnChangeMemoryBalloon(pData->pDrv, !!memBalloonChange->fInflate, memBalloonChange->cPages, memBalloonChange->aPhysPage);
    12031221            }
    12041222            break;
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