VirtualBox

Changeset 32140 in vbox


Ignore:
Timestamp:
Aug 31, 2010 12:47:07 PM (14 years ago)
Author:
vboxsync
Message:

FT updates

Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/ftm.h

    r32135 r32140  
    5858VMMR3DECL(int) FTMR3Term(PVM pVM);
    5959VMMR3DECL(int) FTMR3CancelStandby(PVM pVM);
    60 VMMR3DECL(int) FTMR3SyncState(PVM pVM);
     60VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType);
    6161
    6262#endif /* IN_RING3 */
  • trunk/include/VBox/vmm.h

    r30488 r32140  
    105105    /** Ring switch to force preemption. */
    106106    VMMCALLRING3_VM_R0_PREEMPT,
     107    /** Sync the FTM state with the standby node. */
     108    VMMCALLRING3_FTM_SET_CHECKPOINT,
    107109    /** The usual 32-bit hack. */
    108110    VMMCALLRING3_32BIT_HACK = 0x7fffffff
  • trunk/src/VBox/VMM/FTM.cpp

    r32121 r32140  
    10661066 *
    10671067 * @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 */
     1070VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType)
     1071{
    10731072    if (!pVM->fFaultTolerantMaster)
    10741073        return VINF_SUCCESS;
  • trunk/src/VBox/VMM/VMM.cpp

    r30798 r32140  
    7474#include "VMMSwitcher/VMMSwitcher.h"
    7575#include <VBox/vm.h>
     76#include <VBox/ftm.h>
    7677
    7778#include <VBox/err.h>
     
    21472148            break;
    21482149
     2150        case VMMCALLRING3_FTM_SET_CHECKPOINT:
     2151            pVCpu->vmm.s.rcCallRing3 = FTMR3SetCheckpoint(pVM, (FTMCHECKPOINTTYPE)pVCpu->vmm.s.u64CallRing3Arg);
     2152            break;
     2153
    21492154        default:
    21502155            AssertMsgFailed(("enmCallRing3Operation=%d\n", pVCpu->vmm.s.enmCallRing3Operation));
  • trunk/src/VBox/VMM/VMMAll/FTMAll.cpp

    r32135 r32140  
    4545
    4646#ifdef IN_RING3
    47     return FTMR3SyncState(pVM);
     47    return FTMR3SetCheckpoint(pVM, enmType);
    4848#else
    49     return VERR_NOT_IMPLEMENTED;
     49    return VMMRZCallRing3(pVM, VMMGetCpu(pVM), VMMCALLRING3_FTM_SET_CHECKPOINT, enmType);
    5050#endif
    5151}
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette