Changeset 27023 in vbox for trunk/include
- Timestamp:
- Mar 4, 2010 1:32:45 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 58333
- Location:
- trunk/include/VBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxGuest.h
r27001 r27023 272 272 /** IOCTL to VBoxGuest to check memory ballooning. 273 273 * The guest kernel module / device driver will ask the host for the current size of 274 * the balloon and adjust the size or return with VERR_NO_PHYS_MEMORY. In the latter 275 * case the user-level application is responsible for allocating memory in userland 276 * and call the kernel module again doing VBOXGUEST_IOCTL_CHANGE_BALLOON */ 274 * the balloon and adjust the size. Or it will set fHandledInR0 = false and R3 is 275 * responsible for allocating memory and calling R0 (VBOXGUEST_IOCTL_CHANGE_BALLOON). */ 277 276 #define VBOXGUEST_IOCTL_CHECK_BALLOON VBOXGUEST_IOCTL_CODE_(7, 100) 277 278 typedef struct VBoxGuestCheckBalloonInfo 279 { 280 /** the size of the balloon in chunks of 1MB */ 281 uint32_t cBalloonChunks; 282 /** false = handled in R0, no further action required. 283 * true = allocate balloon memory in R3. */ 284 uint32_t fHandleInR3; 285 } VBoxGuestCheckBalloonInfo; 286 AssertCompileSize(VBoxGuestCheckBalloonInfo, 8); 278 287 279 288 -
trunk/include/VBox/VBoxGuestLib.h
r26999 r27023 467 467 /** @name Memory ballooning 468 468 * @{ */ 469 VBGLR3DECL(int) VbglR3MemBalloonRefresh(uint32_t *p u32Size);469 VBGLR3DECL(int) VbglR3MemBalloonRefresh(uint32_t *pcChunks, bool *pfHandleInR3); 470 470 VBGLR3DECL(int) VbglR3MemBalloonChange(void *pv, bool fInflate); 471 471 /** @} */ -
trunk/include/VBox/VMMDev.h
r26295 r27023 689 689 VMMDevRequestHeader header; 690 690 /** Balloon size in megabytes. */ 691 uint32_t u32BalloonSize;691 uint32_t cBalloonChunks; 692 692 /** Guest ram size in megabytes. */ 693 uint32_t u32PhysMemSize;693 uint32_t cPhysMemChunks; 694 694 /** Setting this to VMMDEV_EVENT_BALLOON_CHANGE_REQUEST indicates that the 695 695 * request is a response to that event.
Note:
See TracChangeset
for help on using the changeset viewer.