VirtualBox

Changeset 4533 in vbox


Ignore:
Timestamp:
Sep 5, 2007 1:18:07 PM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
24151
Message:

Cleaned up a bit

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/VBoxGuest.h

    r4532 r4533  
    407407
    408408/** inflate/deflate memory balloon structure */
     409#define VMMDEV_MEMORY_BALLOON_CHUNK_PAGES            (_1M/4096)
     410
    409411typedef struct
    410412{
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r4532 r4533  
    12111211            Log(("VMMDevReq_ChangeMemBalloon\n"));
    12121212            if (    requestHeader->size < sizeof(VMMDevChangeMemBalloon)
     1213                ||  memBalloonChange->cPages != VMMDEV_MEMORY_BALLOON_CHUNK_PAGES
    12131214                ||  requestHeader->size != RT_OFFSETOF(VMMDevChangeMemBalloon, aPhysPage[memBalloonChange->cPages]))
    12141215            {
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r4532 r4533  
    440440DECLCALLBACK(int) vmmdevChangeMemoryBalloon(PPDMIVMMDEVCONNECTOR pInterface, bool fInflate, uint32_t cPages, RTGCPHYS *aPhysPage)
    441441{
    442     if (    cPages != 256
     442    if (    cPages != VMMDEV_MEMORY_BALLOON_CHUNK_PAGES
    443443        ||  !aPhysPage)
    444444        return VERR_INVALID_PARAMETER;
Note: See TracChangeset for help on using the changeset viewer.

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