VirtualBox

Changeset 28049 in vbox


Ignore:
Timestamp:
Apr 7, 2010 1:16:37 PM (15 years ago)
Author:
vboxsync
Message:

Pass on memory balloon property to the vmm device during startup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r28040 r28049  
    8484    HRESULT ret = mParent->machine()->COMGETTER(MemoryBalloonSize)(&aMemoryBalloonSize);
    8585    if (ret == S_OK)
     86    {
    8687        mMemoryBalloonSize = aMemoryBalloonSize;
     88
     89        if (mMemoryBalloonSize)
     90        {
     91            /* forward the information to the VMM device */
     92            VMMDev *vmmDev = mParent->getVMMDev();
     93            if (vmmDev)
     94                vmmDev->getVMMDevPort()->pfnSetMemoryBalloon(vmmDev->getVMMDevPort(), aMemoryBalloonSize);
     95        }
     96    }
    8797    else
    8898        mMemoryBalloonSize = 0;                     /* Default is no ballooning */
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