VirtualBox

Changeset 25901 in vbox for trunk/src/VBox/Main/include


Ignore:
Timestamp:
Jan 18, 2010 4:52:21 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56716
Message:

CPU hotplug: Merge 4th patch. Implements the Main API and a VBoxManage interface to turn CPU hotplug on/off and to add/remove CPUs while the VM is running

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/include/ConsoleImpl.h

    r25859 r25901  
    179179    HRESULT onStorageControllerChange ();
    180180    HRESULT onMediumChange(IMediumAttachment *aMediumAttachment, BOOL aForce);
     181    HRESULT onCPUChange(ULONG aCPU, BOOL aRemove);
    181182    HRESULT onVRDPServerChange();
    182183    HRESULT onUSBControllerChange();
     
    448449                                          const char *pszFormat, bool fPassthrough,
    449450                                          bool fForce);
     451    static DECLCALLBACK(int) unplugCpu (Console *pThis, unsigned uCpu);
     452    static DECLCALLBACK(int) plugCpu (Console *pThis, unsigned uCpu);
    450453    HRESULT doMediumChange(IMediumAttachment *aMediumAttachment, bool fForce);
     454    HRESULT doCPURemove(ULONG aCpu);
     455    HRESULT doCPUAdd(ULONG aCpu);
    451456
    452457#ifdef VBOX_DYNAMIC_NET_ATTACH
  • trunk/src/VBox/Main/include/DisplayImpl.h

    r25069 r25901  
    194194    }
    195195
     196    STDMETHOD(OnCPUChange)(ULONG aCPU, BOOL aRemove)
     197    {
     198        return S_OK;
     199    }
     200
    196201    STDMETHOD(OnVRDPServerChange)()
    197202    {
  • trunk/src/VBox/Main/include/MachineImpl.h

    r25859 r25901  
    296296        BOOL           mSyntheticCpu;
    297297        ULONG          mCPUCount;
     298        BOOL           mCPUHotPlugEnabled;
    298299        BOOL           mAccelerate3DEnabled;
     300
     301        BOOL           mCPUAttached[SchemaDefs::MaxCPUCount];
    299302
    300303        settings::CpuIdLeaf mCpuIdStdLeafs[10];
     
    531534    STDMETHOD(COMGETTER(CPUCount))(ULONG *cpuCount);
    532535    STDMETHOD(COMSETTER(CPUCount))(ULONG cpuCount);
     536    STDMETHOD(COMGETTER(CPUHotPlugEnabled))(BOOL *enabled);
     537    STDMETHOD(COMSETTER(CPUHotPlugEnabled))(BOOL enabled);
    533538    STDMETHOD(COMGETTER(MemoryBalloonSize))(ULONG *memoryBalloonSize);
    534539    STDMETHOD(COMSETTER(MemoryBalloonSize))(ULONG memoryBalloonSize);
     
    634639    STDMETHOD(QuerySavedScreenshotPNGSize)(ULONG *aSize, ULONG *aWidth, ULONG *aHeight);
    635640    STDMETHOD(ReadSavedScreenshotPNGToArray)(ULONG *aWidth, ULONG *aHeight, ComSafeArrayOut(BYTE, aData));
     641    STDMETHOD(HotPlugCPU(ULONG aCpu));
     642    STDMETHOD(HotUnplugCPU(ULONG aCpu));
     643    STDMETHOD(GetCPUStatus(ULONG aCpu, BOOL *aCpuAttached));
    636644
    637645    // public methods only for internal purposes
     
    717725    virtual HRESULT onUSBControllerChange() { return S_OK; }
    718726    virtual HRESULT onStorageControllerChange() { return S_OK; }
     727    virtual HRESULT onCPUChange(ULONG /* aCPU */, BOOL /* aRemove */) { return S_OK; }
    719728    virtual HRESULT onMediumChange(IMediumAttachment * /* mediumAttachment */, BOOL /* force */) { return S_OK; }
    720729    virtual HRESULT onSharedFolderChange() { return S_OK; }
     
    10361045    HRESULT onSerialPortChange(ISerialPort *serialPort);
    10371046    HRESULT onParallelPortChange(IParallelPort *parallelPort);
     1047    HRESULT onCPUChange(ULONG aCPU, BOOL aRemove);
    10381048    HRESULT onVRDPServerChange();
    10391049    HRESULT onUSBControllerChange();
  • trunk/src/VBox/Main/include/SessionImpl.h

    r25642 r25901  
    9696    STDMETHOD(OnStorageControllerChange)();
    9797    STDMETHOD(OnMediumChange)(IMediumAttachment *aMediumAttachment, BOOL aForce);
     98    STDMETHOD(OnCPUChange)(ULONG aCPU, BOOL aRemove);
    9899    STDMETHOD(OnVRDPServerChange)();
    99100    STDMETHOD(OnUSBControllerChange)();
  • trunk/src/VBox/Main/include/VirtualBoxCallbackImpl.h

    r23643 r25901  
    9494    STDMETHOD(OnStorageControllerChange) ();
    9595    STDMETHOD(OnMediumChange)(IMediumAttachment *iMediumAttachment);
     96    STDMETHOD(OnCPUChange)(ULONG aCPU, BOOL aRemove);
    9697    STDMETHOD(OnRuntimeError)(BOOL fFatal, IN_BSTR id, IN_BSTR message);
    9798    STDMETHOD(OnCanShowWindow)(BOOL *canShow);
Note: See TracChangeset for help on using the changeset viewer.

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