VirtualBox

Changeset 28549 in vbox


Ignore:
Timestamp:
Apr 21, 2010 8:57:06 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
60358
Message:

Currently we only support memory ballooning on all 64-bit hosts except Mac OS X. Return a proper error value on unsupported platforms.

File:
1 edited

Legend:

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

    r28529 r28549  
    14491449STDMETHODIMP Machine::COMSETTER(MemoryBalloonSize)(ULONG memoryBalloonSize)
    14501450{
     1451    /* This must match GMMR0Init; currently we only support memory ballooning on all 64-bit hosts except Mac OS X */
     1452#if HC_ARCH_BITS == 64 && (defined(RT_OS_WINDOWS) || defined(RT_OS_SOLARIS) || defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD))
    14511453    /* check limits */
    14521454    if (memoryBalloonSize >= VMMDEV_MAX_MEMORY_BALLOON(mHWData->mMemorySize))
     
    14651467
    14661468    return S_OK;
     1469#else
     1470    return setError(E_NOTIMPL, tr("Memory ballooning is only supported on 64-bit hosts"));
     1471#endif
    14671472}
    14681473
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