VirtualBox

Changeset 29319 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
May 11, 2010 9:31:01 AM (15 years ago)
Author:
vboxsync
Message:

Make PGMR3PhysChangeMemBalloon return VERR_NOT_IMPLEMENTED on hosts that do not support ballooning.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/PGMPhys.cpp

    r29303 r29319  
    767767}
    768768
     769#if HC_ARCH_BITS == 64 && (defined(RT_OS_WINDOWS) || defined(RT_OS_SOLARIS) || defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD))
    769770/**
    770771 * Rendezvous callback used by PGMR3ChangeMemBalloon that changes the memory balloon size
     
    908909    RTMemFree(paPhysPage);
    909910}
     911#endif
    910912
    911913/**
     
    920922VMMR3DECL(int) PGMR3PhysChangeMemBalloon(PVM pVM, bool fInflate, unsigned cPages, RTGCPHYS *paPhysPage)
    921923{
     924    /* This must match GMMR0Init; currently we only support memory ballooning on all 64-bit hosts except Mac OS X */
     925#if HC_ARCH_BITS == 64 && (defined(RT_OS_WINDOWS) || defined(RT_OS_SOLARIS) || defined(RT_OS_LINUX) || defined(RT_OS_FREEBSD))
    922926    int rc;
    923927
     
    950954    }
    951955    return rc;
     956#else
     957    return VERR_NOT_IMPLEMENTED;
     958#endif
    952959}
    953960
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