VirtualBox

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

File:
1 edited

Legend:

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

    r25860 r25901  
    571571
    572572    return mConsole->onMediumChange(aMediumAttachment, aForce);
     573}
     574
     575STDMETHODIMP Session::OnCPUChange(ULONG aCPU, BOOL aRemove)
     576{
     577    LogFlowThisFunc(("\n"));
     578
     579    AutoCaller autoCaller(this);
     580    AssertComRCReturn (autoCaller.rc(), autoCaller.rc());
     581
     582    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
     583    AssertReturn(mState == SessionState_Open, VBOX_E_INVALID_VM_STATE);
     584    AssertReturn(mType == SessionType_Direct, VBOX_E_INVALID_OBJECT_STATE);
     585
     586    return mConsole->onCPUChange(aCPU, aRemove);
    573587}
    574588
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