VirtualBox

Changeset 26284 in vbox


Ignore:
Timestamp:
Feb 5, 2010 12:31:01 PM (15 years ago)
Author:
vboxsync
Message:

Enabled the memory ballooning options in VBoxManage

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageControlVM.cpp

    r25901 r26284  
    766766        }
    767767#endif /* obsolete dvdattach/floppyattach */
    768 #ifdef VBOX_WITH_MEM_BALLOONING
    769768        else if (   !strcmp(a->argv[1], "--guestmemoryballoon")
    770769                 || !strcmp(a->argv[1], "-guestmemoryballoon"))
     
    793792                CHECK_ERROR(guest, COMSETTER(MemoryBalloonSize)(uVal));
    794793        }
    795 #endif
    796794        else if (   !strcmp(a->argv[1], "--gueststatisticsinterval")
    797795                 || !strcmp(a->argv[1], "-gueststatisticsinterval"))
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r26089 r26284  
    214214                 "                                             file <file>|\n"
    215215                 "                                             <devicename>]\n"
    216 #ifdef VBOX_WITH_MEM_BALLOONING
    217216                 "                            [--guestmemoryballoon <balloonsize in MB>]\n"
    218 #endif
    219217                 "                            [--gueststatisticsinterval <seconds>]\n"
    220218                 );
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r25672 r26284  
    17161716        RTPrintf("Guest:\n\n");
    17171717
    1718 #ifdef VBOX_WITH_MEM_BALLOONING
    17191718    rc = machine->COMGETTER(MemoryBalloonSize)(&guestVal);
    17201719    if (SUCCEEDED(rc))
     
    17251724            RTPrintf("Configured memory balloon size:      %d MB\n", guestVal);
    17261725    }
    1727 #endif
    17281726    rc = machine->COMGETTER(StatisticsUpdateInterval)(&guestVal);
    17291727    if (SUCCEEDED(rc))
     
    18441842            }
    18451843
    1846 #ifdef VBOX_WITH_MEM_BALLOONING
    18471844            rc = guest->GetStatistic(0, GuestStatisticType_PhysMemBalloon, &statVal);
    18481845            if (SUCCEEDED(rc))
     
    18531850                    RTPrintf("CPU%d: Memory balloon size    %-4d MB\n", 0, statVal);
    18541851            }
    1855 #endif
     1852
    18561853            rc = guest->GetStatistic(0, GuestStatisticType_MemCommitTotal, &statVal);
    18571854            if (SUCCEEDED(rc))
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r25901 r26284  
    12911291            }
    12921292
    1293 #ifdef VBOX_WITH_MEM_BALLOONING
    12941293            case MODIFYVM_GUESTMEMORYBALLOON:
    12951294            {
     
    12971296                break;
    12981297            }
    1299 #endif
    13001298
    13011299            case MODIFYVM_AUDIOCONTROLLER:
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette