VirtualBox

Changeset 4498 in vbox for trunk/src/VBox/Main/GuestImpl.cpp


Ignore:
Timestamp:
Sep 3, 2007 2:40:26 PM (17 years ago)
Author:
vboxsync
Message:

Backed out 24093

File:
1 edited

Legend:

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

    r4492 r4498  
    174174STDMETHODIMP Guest::COMSETTER(MemoryBalloonSize) (ULONG aMemoryBalloonSize)
    175175{
    176     AutoCaller autoCaller (this);
    177     CheckComRCReturnRC (autoCaller.rc());
    178 
    179     AutoReaderLock alock (this);
    180 
    181     HRESULT ret = mParent->machine()->COMSETTER(MemoryBalloonSize)(aMemoryBalloonSize);
    182     if (ret == S_OK)
    183     {
    184         mMemoryBalloonSize = aMemoryBalloonSize;
    185         /* forward the information to the VMM device */
    186         VMMDev *vmmDev = mParent->getVMMDev();
    187         if (vmmDev)
    188             vmmDev->getVMMDevPort()->pfnSetMemoryBalloon(vmmDev->getVMMDevPort(), aMemoryBalloonSize);
    189     }
    190 
    191     return ret;
     176    /** @todo fail if larger than physical memory */
     177
     178    AutoCaller autoCaller (this);
     179    CheckComRCReturnRC (autoCaller.rc());
     180
     181    AutoReaderLock alock (this);
     182
     183    mMemoryBalloonSize = aMemoryBalloonSize;
     184
     185    return S_OK;
    192186}
    193187
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