VirtualBox

Changeset 31692 in vbox


Ignore:
Timestamp:
Aug 16, 2010 1:12:42 PM (14 years ago)
Author:
vboxsync
Message:

Cleaned up IGuest page fusion api

Location:
trunk/src/VBox/Main
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/GuestImpl.cpp

    r31539 r31692  
    269269}
    270270
    271 STDMETHODIMP Guest::COMGETTER(PageFusionEnabled) (BOOL *aPageFusionEnabled)
    272 {
    273     CheckComArgOutPointerValid(aPageFusionEnabled);
    274 
    275     AutoCaller autoCaller(this);
    276     if (FAILED(autoCaller.rc())) return autoCaller.rc();
     271BOOL Guest::isPageFusionEnabled()
     272{
     273    AutoCaller autoCaller(this);
     274    if (FAILED(autoCaller.rc())) return false;
    277275
    278276    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    279277
    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;
    295279}
    296280
  • trunk/src/VBox/Main/MachineImpl.cpp

    r31688 r31692  
    15251525    AutoWriteLock alock(this COMMA_LOCKVAL_SRC_POS);
    15261526
     1527    /** @todo must support changes for running vms and keep this in sync with IGuest. */
    15271528    setModified(IsModified_MachineData);
    15281529    mHWData.backup();
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r31436 r31692  
    588588        return VERR_INVALID_PARAMETER; /** @todo wrong error */
    589589
    590     guest->COMGETTER(PageFusionEnabled)(&val);
    591     *pfPageFusionEnabled = !!val;
     590    *pfPageFusionEnabled = !!guest->isPageFusionEnabled();
    592591    return VINF_SUCCESS;
    593592}
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r31688 r31692  
    75937593  <interface
    75947594     name="IGuest" extends="$unknown"
    7595      uuid="d915dff1-ed38-495a-91f1-ab6c53932468"
     7595     uuid="506da00d-1ca5-4ccf-851d-8683253d0f5e"
    75967596     wsmap="managed"
    75977597     >
     
    76547654    <attribute name="memoryBalloonSize" type="unsigned long">
    76557655      <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>
    76607656    </attribute>
    76617657
  • trunk/src/VBox/Main/include/GuestImpl.h

    r31436 r31692  
    9090    STDMETHOD(COMGETTER(MemoryBalloonSize)) (ULONG *aMemoryBalloonSize);
    9191    STDMETHOD(COMSETTER(MemoryBalloonSize)) (ULONG aMemoryBalloonSize);
    92     STDMETHOD(COMGETTER(PageFusionEnabled)) (BOOL *aPageFusionEnabled);
    93     STDMETHOD(COMSETTER(PageFusionEnabled)) (BOOL aPageFusionEnabled);
    9492    STDMETHOD(COMGETTER(StatisticsUpdateInterval)) (ULONG *aUpdateInterval);
    9593    STDMETHOD(COMSETTER(StatisticsUpdateInterval)) (ULONG aUpdateInterval);
     
    114112    void setSupportedFeatures(ULONG64 ulCaps, ULONG64 ulActive);
    115113    HRESULT setStatistic(ULONG aCpuId, GUESTSTATTYPE enmType, ULONG aVal);
     114    BOOL isPageFusionEnabled();
    116115
    117116# ifdef VBOX_WITH_GUEST_CONTROL
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