VirtualBox

Ignore:
Timestamp:
Mar 3, 2010 5:00:05 PM (15 years ago)
Author:
vboxsync
Message:

Guest Additions: memory ballooning for guests without support for RTR0MemObjAllocPhysNC() (does not work yet)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/common/VBoxGuestLib/VBoxGuestR3LibMisc.cpp

    r26493 r26999  
    240240VBGLR3DECL(int) VbglR3MemBalloonRefresh(uint32_t *pu32Size)
    241241{
    242     return vbglR3DoIOCtl(VBOXGUEST_IOCTL_CTL_CHECK_BALLOON_MASK, pu32Size, sizeof(*pu32Size));
     242    return vbglR3DoIOCtl(VBOXGUEST_IOCTL_CHECK_BALLOON, pu32Size, sizeof(*pu32Size));
     243}
     244
     245
     246/**
     247 *
     248 */
     249VBGLR3DECL(int) VbglR3MemBalloonChange(void *pv, bool fInflate)
     250{
     251    VBoxGuestChangeBalloonInfo Info;
     252    Info.u64ChunkAddr = (uint64_t)pv;
     253    Info.fInflate = fInflate;
     254    return vbglR3DoIOCtl(VBOXGUEST_IOCTL_CHANGE_BALLOON, &Info, sizeof(Info));
    243255}
    244256
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