- Timestamp:
- Aug 17, 2010 1:51:51 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/ftm.h
r31723 r31732 41 41 * @{ 42 42 */ 43 VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool f Source, unsigned uInterval, const char *pszAddress, unsigned uPort);43 VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fMaster, unsigned uInterval, const char *pszAddress, unsigned uPort); 44 44 45 45 #endif /* IN_RING3 */ -
trunk/include/VBox/vm.h
r31359 r31732 787 787 * This is initialized together with the rest of the VM structure. */ 788 788 bool fHwVirtExtForced; 789 /** PARAV enabled flag. */790 bool f PARAVEnabled;789 /** Set when this VM is the master FT node. */ 790 bool fFaultTolerantMaster; 791 791 /** Large page enabled flag. */ 792 792 bool fUseLargePages; … … 962 962 } ssm; 963 963 964 /** FTM part. */ 965 union 966 { 967 #ifdef ___FTMInternal_h 968 struct FTM s; 969 #endif 970 uint8_t padding[128]; /* multiple of 64 */ 971 } ftm; 972 964 973 /** REM part. */ 965 974 union … … 991 1000 } cfgm; 992 1001 993 /** PARAV part. */994 union995 {996 #ifdef ___PARAVInternal_h997 struct PARAV s;998 #endif999 uint8_t padding[24]; /* multiple of 8 */1000 } parav;1001 1002 1002 /** Padding for aligning the cpu array on a page boundrary. */ 1003 uint8_t abAlignment2[1 992];1003 uint8_t abAlignment2[1886]; 1004 1004 1005 1005 /* ---- end small stuff ---- */ -
trunk/include/VBox/vm.mac
r31359 r31732 71 71 .fHWACCMEnabled resb 1 72 72 .fHwVirtExtForced resb 1 73 .fPARAVEnabled resb 1 73 .fFaultTolerantMaster resb 1 74 .fUseLargePages resb 1 74 75 75 76 alignb 8 -
trunk/src/VBox/VMM/FTM.cpp
r31723 r31732 5 5 6 6 /* 7 * Copyright (C) 20 08Oracle Corporation7 * Copyright (C) 2010 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 25 25 #include <VBox/err.h> 26 26 #include <VBox/param.h> 27 #include <VBox/ftm.h>27 #include "FTMInternal.h" 28 28 29 29 #include <iprt/assert.h> … … 31 31 32 32 33 /** 34 * Powers on the fault tolerant virtual machine. 35 * 36 * @returns VBox status code. 37 * 38 * @param pVM The VM to power on. 39 * @param fMaster FT master or clone 40 * @param uInterval FT sync interval 41 * @param pszAddress Master VM address 42 * @param uPort Master VM port 43 * 44 * @thread Any thread. 45 * @vmstate Created 46 * @vmstateto PoweringOn+Running (master), PoweringOn+Running_FT (clone) 47 */ 48 VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fMaster, unsigned uInterval, const char *pszAddress, unsigned uPort) 49 { 50 VMSTATE enmVMState = VMR3GetState(pVM); 51 AssertMsgReturn(enmVMState == VMSTATE_POWERING_ON, 52 ("%s\n", VMR3GetStateName(enmVMState)), 53 VERR_INTERNAL_ERROR_4); 33 54 34 VMMR3DECL(int) FTMR3PowerOn(PVM pVM, bool fSource, unsigned uInterval, const char *pszAddress, unsigned uPort) 35 { 55 if (fMaster) 56 { 57 return VMR3PowerOn(pVM); 58 } 59 else 60 { 61 /* clone */ 62 } 36 63 return VERR_NOT_IMPLEMENTED; 37 64 }
Note:
See TracChangeset
for help on using the changeset viewer.