Changeset 27049 in vbox for trunk/src/VBox
- Timestamp:
- Mar 4, 2010 5:36:41 PM (15 years ago)
- Location:
- trunk/src/VBox/Devices/VMMDev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/VMMDev/VMMDev.cpp
r27023 r27049 1388 1388 { 1389 1389 if (memBalloonChange->fInflate) 1390 { 1390 1391 pRequestHeader->rc = PGMR3PhysFreeRamPages(PDMDevHlpGetVM(pDevIns), memBalloonChange->cPages, memBalloonChange->aPhysPage); 1392 STAM_REL_U32_INC(&pThis->StatMemBalloonChunks); 1393 } 1391 1394 else 1395 { 1392 1396 pRequestHeader->rc = VINF_SUCCESS; /* deflating the balloon doesn't require any action; when the reacquired memory is touched, it will be paged back in. */ 1397 STAM_REL_U32_DEC(&pThis->StatMemBalloonChunks); 1398 } 1393 1399 } 1394 1400 break; … … 2359 2365 if (uVersion >= 10) 2360 2366 pThis->pDrv->pfnUpdatePointerShape(pThis->pDrv, 2361 /*fVisible=*/ pThis->fHostCursorRequested,2367 /*fVisible=*/!!pThis->fHostCursorRequested, 2362 2368 /*fAlpha=*/false, 2363 2369 /*xHot=*/0, /*yHot=*/0, … … 2727 2733 /* The GUI checks whether this changes in this version of VirtualBox. */ 2728 2734 pThis->mouseCapabilities |= VMMDEV_MOUSE_HOST_RECHECKS_NEEDS_HOST_CURSOR; 2735 2736 PDMDevHlpSTAMRegisterF(pDevIns, &pThis->StatMemBalloonChunks, STAMTYPE_U32, STAMVISIBILITY_ALWAYS, STAMUNIT_BYTES, "Memory balloon size", "/Devices/VMMDev/BalloonChunks"); 2729 2737 2730 2738 return rc; -
trunk/src/VBox/Devices/VMMDev/VMMDevState.h
r25985 r27049 207 207 /** Package id of the CPU to changhe */ 208 208 uint32_t idCpuPackage; 209 210 uint32_t StatMemBalloonChunks; 209 211 } VMMDevState; 210 212 AssertCompileMemberAlignment(VMMDevState, CritSect, 8);
Note:
See TracChangeset
for help on using the changeset viewer.