VirtualBox

Changeset 44374 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Jan 25, 2013 12:29:24 PM (12 years ago)
Author:
vboxsync
Message:

FTM: pVM -> pUVM for main, mark as many as possible interfaces module internal.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/FTMAll.cpp

    r41801 r44374  
    3939 * @param   enmType     Checkpoint type
    4040 */
    41 VMMDECL(int)  FTMSetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType)
     41VMM_INT_DECL(int) FTMSetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmType)
    4242{
    4343    if (!pVM->fFaultTolerantMaster)
     
    5959 * @param   pVM         Pointer to the VM.
    6060 */
    61 VMMDECL(bool) FTMIsDeltaLoadSaveActive(PVM pVM)
     61VMM_INT_DECL(bool) FTMIsDeltaLoadSaveActive(PVM pVM)
    6262{
    6363    return pVM->ftm.s.fDeltaLoadSaveActive;
  • trunk/src/VBox/VMM/VMMR3/FTM.cpp

    r44340 r44374  
    2929#include "FTMInternal.h"
    3030#include <VBox/vmm/vm.h>
     31#include <VBox/vmm/uvm.h>
    3132#include <VBox/err.h>
    3233#include <VBox/param.h>
     
    102103 * @param   pVM         Pointer to the VM.
    103104 */
    104 VMMR3DECL(int) FTMR3Init(PVM pVM)
     105VMMR3_INT_DECL(int) FTMR3Init(PVM pVM)
    105106{
    106107    /*
     
    158159 * @param   pVM         Pointer to the VM.
    159160 */
    160 VMMR3DECL(int) FTMR3Term(PVM pVM)
     161VMMR3_INT_DECL(int) FTMR3Term(PVM pVM)
    161162{
    162163    if (pVM->ftm.s.hShutdownEvent != NIL_RTSEMEVENT)
     
    11251126 * @returns VBox status code.
    11261127 *
    1127  * @param   pVM         Pointer to the VM.
     1128 * @param   pUVM        The user mode VM handle.
    11281129 * @param   fMaster     FT master or standby
    11291130 * @param   uInterval   FT sync interval
     
    11361137 * @vmstateto   PoweringOn+Running (master), PoweringOn+Running_FT (standby)
    11371138 */
    1138 VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fMaster, unsigned uInterval, const char *pszAddress, unsigned uPort, const char *pszPassword)
    1139 {
    1140     int rc = VINF_SUCCESS;
     1139VMMR3DECL(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);
    11411145
    11421146    VMSTATE enmVMState = VMR3GetState(pVM);
     
    11561160        pVM->ftm.s.pszPassword  = RTStrDup(pszPassword);
    11571161
    1158     rc = RTSemEventCreate(&pVM->ftm.s.hShutdownEvent);
     1162    int rc = RTSemEventCreate(&pVM->ftm.s.hShutdownEvent);
    11591163    if (RT_FAILURE(rc))
    11601164        return rc;
     
    12131217 * @returns VBox status code.
    12141218 *
    1215  * @param   pVM         Pointer to the VM.
    1216  */
    1217 VMMR3DECL(int) FTMR3CancelStandby(PVM pVM)
    1218 {
     1219 * @param   pUVM        The user mode VM handle.
     1220 */
     1221VMMR3DECL(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);
    12191226    AssertReturn(!pVM->fFaultTolerantMaster, VERR_NOT_SUPPORTED);
    12201227    Assert(pVM->ftm.s.standby.hServer);
     
    13021309 * @param   enmCheckpoint   Checkpoint type
    13031310 */
    1304 VMMR3DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmCheckpoint)
     1311VMMR3_INT_DECL(int) FTMR3SetCheckpoint(PVM pVM, FTMCHECKPOINTTYPE enmCheckpoint)
    13051312{
    13061313    int rc;
     
    13111318    switch (enmCheckpoint)
    13121319    {
    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
    13241332    pVM->ftm.s.fCheckpointingActive = true;
    13251333    if (VM_IS_EMT(pVM))
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