VirtualBox

Changeset 4611 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Sep 7, 2007 1:53:04 PM (17 years ago)
Author:
vboxsync
Message:

Updates

Location:
trunk/src/VBox/Devices/VMMDev
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/VMMDev/VBoxDev.cpp

    r4607 r4611  
    12121212                Log(("VMMDev: returning memory balloon size =%d\n", pData->u32MemoryBalloonSize));
    12131213                memBalloonChangeRequest->u32BalloonSize = pData->u32MemoryBalloonSize;
     1214                memBalloonChangeRequest->u32PhysMemSize = (pData->u64GuestRAMSize / (uint64_t)_1M);
    12141215
    12151216                if (memBalloonChangeRequest->eventAck == VMMDEV_EVENT_BALLOON_CHANGE_REQUEST)
     
    22242225    pData->pVMMDevRAMHC->u32Version = VMMDEV_MEMORY_VERSION;
    22252226
     2227    PVM pVM = PDMDevHlpGetVM(pDevIns);
     2228    pData->u64GuestRAMSize = MMR3PhysGetRamSize(pVM);
    22262229    return rc;
    22272230}
  • trunk/src/VBox/Devices/VMMDev/VMMDevState.h

    r4540 r4611  
    135135    uint32_t    u32MemoryBalloonSize, u32LastMemoryBalloonSize;
    136136
     137    /* guest ram size */
     138    uint64_t    u64GuestRAMSize;
     139
    137140    /* statistics interval change request */
    138141    uint32_t    u32StatIntervalSize, u32LastStatIntervalSize;
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