Changeset 4498 in vbox for trunk/src/VBox/Main/GuestImpl.cpp
- Timestamp:
- Sep 3, 2007 2:40:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r4492 r4498 174 174 STDMETHODIMP Guest::COMSETTER(MemoryBalloonSize) (ULONG aMemoryBalloonSize) 175 175 { 176 AutoCaller autoCaller (this); 177 CheckComRCReturnRC (autoCaller.rc()); 178 179 AutoReaderLock alock (this); 180 181 HRESULT ret = mParent->machine()->COMSETTER(MemoryBalloonSize)(aMemoryBalloonSize); 182 if (ret == S_OK) 183 { 184 mMemoryBalloonSize = aMemoryBalloonSize; 185 /* forward the information to the VMM device */ 186 VMMDev *vmmDev = mParent->getVMMDev(); 187 if (vmmDev) 188 vmmDev->getVMMDevPort()->pfnSetMemoryBalloon(vmmDev->getVMMDevPort(), aMemoryBalloonSize); 189 } 190 191 return ret; 176 /** @todo fail if larger than physical memory */ 177 178 AutoCaller autoCaller (this); 179 CheckComRCReturnRC (autoCaller.rc()); 180 181 AutoReaderLock alock (this); 182 183 mMemoryBalloonSize = aMemoryBalloonSize; 184 185 return S_OK; 192 186 } 193 187
Note:
See TracChangeset
for help on using the changeset viewer.