VirtualBox

Changeset 26350 in vbox for trunk/src/VBox/Devices/VMMDev


Ignore:
Timestamp:
Feb 9, 2010 9:21:38 AM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
57438
Message:

Removed the balloon interface from Main's VMM device. Directly call PGMR3PhysFreeRamPages in VMMDev.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/src/VBox/Devices/VMMDev/VMMDev.cpp

    r26295 r26350  
    13871387            else
    13881388            {
    1389                 pRequestHeader->rc = pThis->pDrv->pfnChangeMemoryBalloon(pThis->pDrv, !!memBalloonChange->fInflate, memBalloonChange->cPages, memBalloonChange->aPhysPage);
     1389                if (memBalloonChange->fInflate)
     1390                    pRequestHeader->rc = PGMR3PhysFreeRamPages(PDMDevHlpGetVM(pDevIns), memBalloonChange->cPages, memBalloonChange->aPhysPage);
     1391                else
     1392                    pRequestHeader->rc = VINF_SUCCESS;      /* deflating the balloon doesn't require any action; when the reacquired memory is touched, it will be paged back in. */
    13901393            }
    13911394            break;
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