Changeset 23606 in vbox for trunk/src/VBox/Main
- Timestamp:
- Oct 7, 2009 6:50:20 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 53278
- Location:
- trunk/src/VBox/Main
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ConsoleImpl-LiveMigration.cpp
r23599 r23606 39 39 } 40 40 41 int 42 Console::migrationLoadRemote(PVM pVM, IMachine *pMachine) 43 { 44 /* 45 * Get the config. 46 */ 47 ULONG uPort; 48 HRESULT hrc = pMachine->COMGETTER(LiveMigrationPort)(&uPort); 49 if (FAILED(hrc)) 50 return VERR_GENERAL_FAILURE; 41 51 52 Bstr bstrPassword; 53 hrc = pMachine->COMGETTER(LiveMigrationPassword)(bstrPassword.asOutParam()); 54 if (FAILED(hrc)) 55 return VERR_GENERAL_FAILURE; 56 Utf8Str strPassword(bstrPassword); 57 58 /* 59 * Create the TCP server. 60 */ 61 //RTTcpServerCreateEx(NULL, 62 63 64 return VERR_NOT_IMPLEMENTED; 65 } 66 -
trunk/src/VBox/Main/ConsoleImpl.cpp
r23598 r23606 227 227 mSetVMErrorCallback(NULL), 228 228 mConfigConstructor(NULL), 229 mStartPaused(false) 229 mStartPaused(false), 230 mLiveMigrationTarget(FALSE) 230 231 {} 231 232 … … 235 236 Console::SharedFolderDataMap mSharedFolders; 236 237 bool mStartPaused; 238 BOOL mLiveMigrationTarget; 237 239 238 240 typedef std::list< ComPtr<IMedium> > HardDiskList; … … 4622 4624 task->mSavedStateFile = savedStateFile; 4623 4625 4626 /* test and clear the LiveMigrationTarget property */ 4627 rc = mMachine->COMGETTER(LiveMigrationTarget)(&task->mLiveMigrationTarget); 4628 CheckComRCReturnRC(rc); 4629 if (task->mLiveMigrationTarget) 4630 { 4631 rc = mMachine->COMSETTER(LiveMigrationTarget)(FALSE); 4632 CheckComRCReturnRC(rc); 4633 } 4634 4624 4635 /* Reset differencing hard disks for which autoReset is true */ 4625 4636 { … … 6715 6726 } 6716 6727 } 6728 else if (task->mLiveMigrationTarget) 6729 /* -> ConsoleImpl-LiveMigration.cpp */ 6730 vrc = console->migrationLoadRemote(pVM, pMachine); 6717 6731 else if (task->mStartPaused) 6718 6732 /* done */ -
trunk/src/VBox/Main/include/ConsoleImpl.h
r23599 r23606 512 512 #endif 513 513 514 /** @name Live migration support 515 * @{ */ 516 int migrationLoadRemote(PVM pVM, IMachine *pMachine); 517 /** @} */ 518 514 519 bool mSavedStateDataLoaded : 1; 515 520
Note:
See TracChangeset
for help on using the changeset viewer.