Changeset 44374 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Jan 25, 2013 12:29:24 PM (12 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/FTMAll.cpp
r41801 r44374 39 39 * @param enmType Checkpoint type 40 40 */ 41 VMM DECL(int)FTMSetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType)41 VMM_INT_DECL(int) FTMSetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType) 42 42 { 43 43 if (!pVM->fFaultTolerantMaster) … … 59 59 * @param pVM Pointer to the VM. 60 60 */ 61 VMM DECL(bool)FTMIsDeltaLoadSaveActive(PVM pVM)61 VMM_INT_DECL(bool) FTMIsDeltaLoadSaveActive(PVM pVM) 62 62 { 63 63 return pVM->ftm.s.fDeltaLoadSaveActive; -
trunk/src/VBox/VMM/VMMR3/FTM.cpp
r44340 r44374 29 29 #include "FTMInternal.h" 30 30 #include <VBox/vmm/vm.h> 31 #include <VBox/vmm/uvm.h> 31 32 #include <VBox/err.h> 32 33 #include <VBox/param.h> … … 102 103 * @param pVM Pointer to the VM. 103 104 */ 104 VMMR3 DECL(int) FTMR3Init(PVM pVM)105 VMMR3_INT_DECL(int) FTMR3Init(PVM pVM) 105 106 { 106 107 /* … … 158 159 * @param pVM Pointer to the VM. 159 160 */ 160 VMMR3 DECL(int) FTMR3Term(PVM pVM)161 VMMR3_INT_DECL(int) FTMR3Term(PVM pVM) 161 162 { 162 163 if (pVM->ftm.s.hShutdownEvent != NIL_RTSEMEVENT) … … 1125 1126 * @returns VBox status code. 1126 1127 * 1127 * @param p VM Pointer to the VM.1128 * @param pUVM The user mode VM handle. 1128 1129 * @param fMaster FT master or standby 1129 1130 * @param uInterval FT sync interval … … 1136 1137 * @vmstateto PoweringOn+Running (master), PoweringOn+Running_FT (standby) 1137 1138 */ 1138 VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fMaster, unsigned uInterval, const char *pszAddress, unsigned uPort, const char *pszPassword) 1139 { 1140 int rc = VINF_SUCCESS; 1139 VMMR3DECL(int) FTMR3PowerOn(PUVM pUVM, bool fMaster, unsigned uInterval, 1140 const char *pszAddress, unsigned uPort, const char *pszPassword) 1141 { 1142 UVM_ASSERT_VALID_EXT_RETURN(pUVM, VERR_INVALID_VM_HANDLE); 1143 PVM pVM = pUVM->pVM; 1144 VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE); 1141 1145 1142 1146 VMSTATE enmVMState = VMR3GetState(pVM); … … 1156 1160 pVM->ftm.s.pszPassword = RTStrDup(pszPassword); 1157 1161 1158 rc = RTSemEventCreate(&pVM->ftm.s.hShutdownEvent);1162 int rc = RTSemEventCreate(&pVM->ftm.s.hShutdownEvent); 1159 1163 if (RT_FAILURE(rc)) 1160 1164 return rc; … … 1213 1217 * @returns VBox status code. 1214 1218 * 1215 * @param pVM Pointer to the VM. 1216 */ 1217 VMMR3DECL(int) FTMR3CancelStandby(PVM pVM) 1218 { 1219 * @param pUVM The user mode VM handle. 1220 */ 1221 VMMR3DECL(int) FTMR3CancelStandby(PUVM pUVM) 1222 { 1223 UVM_ASSERT_VALID_EXT_RETURN(pUVM, VERR_INVALID_VM_HANDLE); 1224 PVM pVM = pUVM->pVM; 1225 VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE); 1219 1226 AssertReturn(!pVM->fFaultTolerantMaster, VERR_NOT_SUPPORTED); 1220 1227 Assert(pVM->ftm.s.standby.hServer); … … 1302 1309 * @param enmCheckpoint Checkpoint type 1303 1310 */ 1304 VMMR3 DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmCheckpoint)1311 VMMR3_INT_DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmCheckpoint) 1305 1312 { 1306 1313 int rc; … … 1311 1318 switch (enmCheckpoint) 1312 1319 { 1313 case FTMCHECKPOINTTYPE_NETWORK: 1314 STAM_REL_COUNTER_INC(&pVM->ftm.s.StatCheckpointNetwork); 1315 break; 1316 1317 case FTMCHECKPOINTTYPE_STORAGE: 1318 STAM_REL_COUNTER_INC(&pVM->ftm.s.StatCheckpointStorage); 1319 break; 1320 1321 default: 1322 break; 1323 } 1320 case FTMCHECKPOINTTYPE_NETWORK: 1321 STAM_REL_COUNTER_INC(&pVM->ftm.s.StatCheckpointNetwork); 1322 break; 1323 1324 case FTMCHECKPOINTTYPE_STORAGE: 1325 STAM_REL_COUNTER_INC(&pVM->ftm.s.StatCheckpointStorage); 1326 break; 1327 1328 default: 1329 AssertMsgFailedReturn(("%d\n", enmCheckpoint), VERR_INVALID_PARAMETER); 1330 } 1331 1324 1332 pVM->ftm.s.fCheckpointingActive = true; 1325 1333 if (VM_IS_EMT(pVM))
Note:
See TracChangeset
for help on using the changeset viewer.