Changeset 31692 in vbox
- Timestamp:
- Aug 16, 2010 1:12:42 PM (14 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/GuestImpl.cpp
r31539 r31692 269 269 } 270 270 271 STDMETHODIMP Guest::COMGETTER(PageFusionEnabled) (BOOL *aPageFusionEnabled) 272 { 273 CheckComArgOutPointerValid(aPageFusionEnabled); 274 275 AutoCaller autoCaller(this); 276 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 271 BOOL Guest::isPageFusionEnabled() 272 { 273 AutoCaller autoCaller(this); 274 if (FAILED(autoCaller.rc())) return false; 277 275 278 276 AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS); 279 277 280 *aPageFusionEnabled = mfPageFusionEnabled; 281 282 return S_OK; 283 } 284 285 STDMETHODIMP Guest::COMSETTER(PageFusionEnabled) (BOOL aPageFusionEnabled) 286 { 287 AutoCaller autoCaller(this); 288 if (FAILED(autoCaller.rc())) return autoCaller.rc(); 289 290 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 291 292 /** todo; API complete, but not implemented */ 293 294 return E_NOTIMPL; 278 return mfPageFusionEnabled; 295 279 } 296 280 -
trunk/src/VBox/Main/MachineImpl.cpp
r31688 r31692 1525 1525 AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS); 1526 1526 1527 /** @todo must support changes for running vms and keep this in sync with IGuest. */ 1527 1528 setModified(IsModified_MachineData); 1528 1529 mHWData.backup(); -
trunk/src/VBox/Main/VMMDevInterface.cpp
r31436 r31692 588 588 return VERR_INVALID_PARAMETER; /** @todo wrong error */ 589 589 590 guest->COMGETTER(PageFusionEnabled)(&val); 591 *pfPageFusionEnabled = !!val; 590 *pfPageFusionEnabled = !!guest->isPageFusionEnabled(); 592 591 return VINF_SUCCESS; 593 592 } -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r31688 r31692 7593 7593 <interface 7594 7594 name="IGuest" extends="$unknown" 7595 uuid=" d915dff1-ed38-495a-91f1-ab6c53932468"7595 uuid="506da00d-1ca5-4ccf-851d-8683253d0f5e" 7596 7596 wsmap="managed" 7597 7597 > … … 7654 7654 <attribute name="memoryBalloonSize" type="unsigned long"> 7655 7655 <desc>Guest system memory balloon size in megabytes (transient property).</desc> 7656 </attribute>7657 7658 <attribute name="pageFusionEnabled" type="boolean">7659 <desc>Flag whether page fusion is enabled or not.</desc>7660 7656 </attribute> 7661 7657 -
trunk/src/VBox/Main/include/GuestImpl.h
r31436 r31692 90 90 STDMETHOD(COMGETTER(MemoryBalloonSize)) (ULONG *aMemoryBalloonSize); 91 91 STDMETHOD(COMSETTER(MemoryBalloonSize)) (ULONG aMemoryBalloonSize); 92 STDMETHOD(COMGETTER(PageFusionEnabled)) (BOOL *aPageFusionEnabled);93 STDMETHOD(COMSETTER(PageFusionEnabled)) (BOOL aPageFusionEnabled);94 92 STDMETHOD(COMGETTER(StatisticsUpdateInterval)) (ULONG *aUpdateInterval); 95 93 STDMETHOD(COMSETTER(StatisticsUpdateInterval)) (ULONG aUpdateInterval); … … 114 112 void setSupportedFeatures(ULONG64 ulCaps, ULONG64 ulActive); 115 113 HRESULT setStatistic(ULONG aCpuId, GUESTSTATTYPE enmType, ULONG aVal); 114 BOOL isPageFusionEnabled(); 116 115 117 116 # ifdef VBOX_WITH_GUEST_CONTROL
Note:
See TracChangeset
for help on using the changeset viewer.