Changeset 31766 in vbox
- Timestamp:
- Aug 18, 2010 2:31:16 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64948
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/include/VBox/ftm.h ¶
r31753 r31766 44 44 VMMR3DECL(int) FTMR3Init(PVM pVM); 45 45 VMMR3DECL(int) FTMR3Term(PVM pVM); 46 VMMR3DECL(int) FTMR3 StandbyCancel(PVM pVM);46 VMMR3DECL(int) FTMR3CancelStandby(PVM pVM); 47 47 48 48 #endif /* IN_RING3 */ -
TabularUnified trunk/src/VBox/Main/ConsoleImpl.cpp ¶
r31751 r31766 7203 7203 7204 7204 /** 7205 * Progress cancelation callback for fault tolerance VM poweron 7206 */ 7207 static void faultToleranceProgressCancelCallback(void *pvUser) 7208 { 7209 PVM pVM = (PVM)pvUser; 7210 7211 if (pVM) 7212 FTMR3CancelStandby(pVM); 7213 } 7214 7215 /** 7205 7216 * Thread function which starts the VM (also from saved state) and 7206 7217 * track progress. … … 7474 7485 rc = pMachine->COMGETTER(FaultTolerancePassword)(bstrPassword.asOutParam()); 7475 7486 } 7476 if ( SUCCEEDED(rc))7487 if (task->mProgress->setCancelCallback(faultToleranceProgressCancelCallback, pVM)) 7477 7488 { 7478 Utf8Str strAddress(bstrAddress); 7479 const char *pszAddress = strAddress.isEmpty() ? NULL : strAddress.c_str(); 7480 Utf8Str strPassword(bstrPassword); 7481 const char *pszPassword = strPassword.isEmpty() ? NULL : strPassword.c_str(); 7482 7483 /** @todo set progress cancel callback! */ 7484 7485 /* Power on the FT enabled VM. */ 7486 vrc = FTMR3PowerOn(pVM, (task->mEnmFaultToleranceState == FaultToleranceState_Master) /* fMaster */, uInterval, pszAddress, uPort, pszPassword); 7487 AssertRC(vrc); 7489 if (SUCCEEDED(rc)) 7490 { 7491 Utf8Str strAddress(bstrAddress); 7492 const char *pszAddress = strAddress.isEmpty() ? NULL : strAddress.c_str(); 7493 Utf8Str strPassword(bstrPassword); 7494 const char *pszPassword = strPassword.isEmpty() ? NULL : strPassword.c_str(); 7495 7496 /* Power on the FT enabled VM. */ 7497 vrc = FTMR3PowerOn(pVM, (task->mEnmFaultToleranceState == FaultToleranceState_Master) /* fMaster */, uInterval, pszAddress, uPort, pszPassword); 7498 AssertRC(vrc); 7499 } 7500 task->mProgress->setCancelCallback(NULL, NULL); 7488 7501 } 7502 else 7503 rc = E_FAIL; 7489 7504 } 7490 7505 else if (task->mStartPaused) -
TabularUnified trunk/src/VBox/VMM/FTM.cpp ¶
r31754 r31766 172 172 * @param pVM The VM to power on. 173 173 */ 174 VMMR3DECL(int) FTMR3 StandbyCancel(PVM pVM)174 VMMR3DECL(int) FTMR3CancelStandby(PVM pVM) 175 175 { 176 176 AssertReturn(!pVM->fFaultTolerantMaster, VERR_NOT_SUPPORTED);
Note:
See TracChangeset
for help on using the changeset viewer.