- Timestamp:
- Apr 6, 2010 12:32:01 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PGMPhys.cpp
r28001 r28002 957 957 * 958 958 * @returns VBox status code. 959 * @param pVM The VM handle.960 * @param pu BalloonVM Pointer to VM balloon size (in pages)961 * @param pu BalloonAllVMs Pointer to total balloon size of all VMs (in pages)962 */ 963 VMMR3DECL(int) PGMR3QueryBalloonSize(PVM pVM, uint64_t *pu BalloonVM, uint64_t *puBalloonAllVMs)959 * @param pVM The VM handle. 960 * @param puVMBalloonSize Pointer to VM balloon size (in megabytes) 961 * @param puTotalBalloonSize Pointer to total balloon size of all VMs (in megabytes) 962 */ 963 VMMR3DECL(int) PGMR3QueryBalloonSize(PVM pVM, uint64_t *puVMBalloonSize, uint64_t *puTotalBalloonSize) 964 964 { 965 965 int rc = VINF_SUCCESS; 966 966 967 if (pu BalloonVM)968 *pu BalloonVM = pVM->pgm.s.cBalloonedPages;969 970 if (pu BalloonAllVMs)971 { 972 *pu BalloonAllVMs= 0;973 rc = GMMR3QueryTotalBalloonSize(pVM, pu BalloonAllVMs);967 if (puVMBalloonSize) 968 *puVMBalloonSize = pVM->pgm.s.cBalloonedPages * _4K / _1M; 969 970 if (puTotalBalloonSize) 971 { 972 *puTotalBalloonSize = 0; 973 rc = GMMR3QueryTotalBalloonSize(pVM, puTotalBalloonSize); 974 974 AssertRC(rc); 975 *puTotalBalloonSize = *puTotalBalloonSize * _4K / _1M; 975 976 } 976 977
Note:
See TracChangeset
for help on using the changeset viewer.