Changeset 32140 in vbox
- Timestamp:
- Aug 31, 2010 12:47:07 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/ftm.h
r32135 r32140 58 58 VMMR3DECL(int) FTMR3Term(PVM pVM); 59 59 VMMR3DECL(int) FTMR3CancelStandby(PVM pVM); 60 VMMR3DECL(int) FTMR3S yncState(PVM pVM);60 VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType); 61 61 62 62 #endif /* IN_RING3 */ -
trunk/include/VBox/vmm.h
r30488 r32140 105 105 /** Ring switch to force preemption. */ 106 106 VMMCALLRING3_VM_R0_PREEMPT, 107 /** Sync the FTM state with the standby node. */ 108 VMMCALLRING3_FTM_SET_CHECKPOINT, 107 109 /** The usual 32-bit hack. */ 108 110 VMMCALLRING3_32BIT_HACK = 0x7fffffff -
trunk/src/VBox/VMM/FTM.cpp
r32121 r32140 1066 1066 * 1067 1067 * @param pVM The VM to operate on. 1068 */ 1069 VMMR3DECL(int) FTMR3SyncState(PVM pVM) 1070 { 1071 VM_ASSERT_OTHER_THREAD(pVM); 1072 1068 * @param enmType Checkpoint type 1069 */ 1070 VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType) 1071 { 1073 1072 if (!pVM->fFaultTolerantMaster) 1074 1073 return VINF_SUCCESS; -
trunk/src/VBox/VMM/VMM.cpp
r30798 r32140 74 74 #include "VMMSwitcher/VMMSwitcher.h" 75 75 #include <VBox/vm.h> 76 #include <VBox/ftm.h> 76 77 77 78 #include <VBox/err.h> … … 2147 2148 break; 2148 2149 2150 case VMMCALLRING3_FTM_SET_CHECKPOINT: 2151 pVCpu->vmm.s.rcCallRing3 = FTMR3SetCheckpoint(pVM, (FTMCHECKPOINTTYPE)pVCpu->vmm.s.u64CallRing3Arg); 2152 break; 2153 2149 2154 default: 2150 2155 AssertMsgFailed(("enmCallRing3Operation=%d\n", pVCpu->vmm.s.enmCallRing3Operation)); -
trunk/src/VBox/VMM/VMMAll/FTMAll.cpp
r32135 r32140 45 45 46 46 #ifdef IN_RING3 47 return FTMR3S yncState(pVM);47 return FTMR3SetCheckpoint(pVM, enmType); 48 48 #else 49 return V ERR_NOT_IMPLEMENTED;49 return VMMRZCallRing3(pVM, VMMGetCpu(pVM), VMMCALLRING3_FTM_SET_CHECKPOINT, enmType); 50 50 #endif 51 51 }
Note:
See TracChangeset
for help on using the changeset viewer.