Changeset 28736 in vbox for trunk/src/VBox/Additions/common/VBoxService
- Timestamp:
- Apr 26, 2010 9:24:35 AM (15 years ago)
- Location:
- trunk/src/VBox/Additions/common/VBoxService
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/Makefile.kmk
r28254 r28736 29 29 PROGRAMS.win.x86 += VBoxServiceNT 30 30 31 # Hack. Should be in Config.kmk later! 32 VBOX_WITH_MEMBALLOON := 1 33 31 34 # 32 35 # VBoxService … … 41 44 VBoxService_DEFS += VBOXSERVICE_EXEC 42 45 endif 43 ifdef VBOX_WITH_GUEST_CONTROL46 ifdef VBOX_WITH_GUEST_CONTROL 44 47 VBoxService_DEFS += VBOX_WITH_GUEST_CONTROL VBOXSERVICE_CONTROL 48 endif 45 49 endif 50 ifdef VBOX_WITH_MEMBALLOON 51 VBoxService_DEFS += VBOX_WITH_MEMBALLOON 46 52 endif 47 53 ifdef VBOX_WITH_PAGE_SHARING 48 VBoxService_DEFS+= VBOX_WITH_PAGE_SHARING54 VBoxService_DEFS += VBOX_WITH_PAGE_SHARING 49 55 endif 50 56 if1of ($(KBUILD_TARGET), linux) … … 56 62 VBoxServiceTimeSync.cpp \ 57 63 VBoxServiceUtils.cpp \ 58 VBoxServiceBalloon.cpp \59 64 VBoxServiceStats.cpp 60 65 ifdef VBOX_WITH_GUEST_CONTROL … … 62 67 VBoxServiceControl.cpp \ 63 68 VBoxServiceControlExec.cpp 69 endif 70 ifdef VBOX_WITH_MEMBALLOON 71 VBoxService_SOURCES += \ 72 VBoxServiceBalloon.cpp 64 73 endif 65 74 ifdef VBOX_WITH_PAGE_SHARING -
trunk/src/VBox/Additions/common/VBoxService/VBoxService.cpp
r28604 r28736 99 99 #endif 100 100 #ifdef VBOXSERVICE_MANAGEMENT 101 #ifdef VBOX_WITH_MEMBALLOON 101 102 { &g_MemBalloon, NIL_RTTHREAD, false, false, false, true }, 103 #endif 102 104 { &g_VMStatistics, NIL_RTTHREAD, false, false, false, true }, 103 105 #endif -
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceStats.cpp
r28508 r28736 208 208 req.guestStats.u32PageFileSize = (uint32_t)(memStatus.ullTotalPageFile / _4K) - req.guestStats.u32PhysMemTotal; 209 209 req.guestStats.u32MemoryLoad = memStatus.dwMemoryLoad; 210 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL | VBOX_GUEST_STAT_PHYS_MEM_AVAIL | VBOX_GUEST_STAT_PAGE_FILE_SIZE 211 | VBOX_GUEST_STAT_MEMORY_LOAD; 212 #ifdef VBOX_WITH_MEMBALLOON 210 213 req.guestStats.u32PhysMemBalloon = VBoxServiceBalloonQueryPages(_4K); 211 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL | VBOX_GUEST_STAT_PHYS_MEM_AVAIL | VBOX_GUEST_STAT_PAGE_FILE_SIZE 212 | VBOX_GUEST_STAT_MEMORY_LOAD | VBOX_GUEST_STAT_PHYS_MEM_BALLOON; 214 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_PHYS_MEM_BALLOON; 215 #else 216 req.guestStats.u32PhysMemBalloon = 0; 217 #endif 213 218 214 219 if (gCtx.pfnGetPerformanceInfo) … … 348 353 349 354 req.guestStats.u32PageSize = getpagesize(); 350 req.guestStats.u32PhysMemBalloon = VBoxServiceBalloonQueryPages(_4K); 351 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL \ 352 | VBOX_GUEST_STAT_PHYS_MEM_AVAIL \ 353 | VBOX_GUEST_STAT_PHYS_MEM_BALLOON \ 354 | VBOX_GUEST_STAT_PAGE_FILE_SIZE; 355 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL \ 356 | VBOX_GUEST_STAT_PHYS_MEM_AVAIL \ 357 | VBOX_GUEST_STAT_PAGE_FILE_SIZE; 358 #ifdef VBOX_WITH_MEMBALLOON 359 req.guestStats.u32PhysMemBalloon = VBoxServiceBalloonQueryPages(_4K); 360 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_PHYS_MEM_BALLOON; 361 #else 362 req.guestStats.u32PhysMemBalloon = 0; 363 #endif 364 355 365 356 366 /** @todo req.guestStats.u32Threads */ … … 519 529 /** @todo req.guestStats.u32MemKernelNonPaged */ 520 530 req.guestStats.u32PageSize = getpagesize(); 521 req.guestStats.u32PhysMemBalloon = VBoxServiceBalloonQueryPages(_4K); 531 522 532 req.guestStats.u32StatCaps = VBOX_GUEST_STAT_PHYS_MEM_TOTAL \ 523 533 | VBOX_GUEST_STAT_PHYS_MEM_AVAIL \ 524 | VBOX_GUEST_STAT_PHYS_MEM_BALLOON \525 534 | VBOX_GUEST_STAT_PAGE_FILE_SIZE; 535 #ifdef VBOX_WITH_MEMBALLOON 536 req.guestStats.u32PhysMemBalloon = VBoxServiceBalloonQueryPages(_4K); 537 req.guestStats.u32StatCaps |= VBOX_GUEST_STAT_PHYS_MEM_BALLOON; 538 #else 539 req.guestStats.u32PhysMemBalloon = 0; 540 #endif 526 541 527 542 /*
Note:
See TracChangeset
for help on using the changeset viewer.