Changeset 48565 in vbox for trunk/include/VBox/vmm
- Timestamp:
- Sep 19, 2013 10:16:00 PM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 89117
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm.h
r48562 r48565 71 71 #define VMCPU_HMCF_IS_PENDING(pVCpu, fFlags) RT_BOOL((pVCpu)->hm.s.fContextUseFlags & (fFlags)) 72 72 73 /** @def VMCPU_HMCF_RESET_TO 74 * Resets the HM-context flags to the specified value. 75 * 76 * @param pVCpu Pointer to the VMCPU. 77 * @param fFlags The reset value. 78 */ 79 #define VMCPU_HMCF_RESET_TO(pVCpu, fFlags) ((pVCpu)->hm.s.fContextUseFlags = (fFlags)) 80 73 81 /** 74 82 * Checks whether HM (VT-x/AMD-V) is being used by this VM. … … 82 90 */ 83 91 #if defined(VBOX_STRICT) && defined(IN_RING3) 84 # define HMIsEnabled(a_pVM) HMIsEnabledNotMacro(a_pVM)92 # define HMIsEnabled(a_pVM) HMIsEnabledNotMacro(a_pVM) 85 93 #else 86 # define HMIsEnabled(a_pVM) ((a_pVM)->fHMEnabled)94 # define HMIsEnabled(a_pVM) ((a_pVM)->fHMEnabled) 87 95 #endif 88 96 … … 98 106 */ 99 107 #if HC_ARCH_BITS == 64 100 # define HMIsRawModeCtxNeeded(a_pVM) (!HMIsEnabled(a_pVM))108 # define HMIsRawModeCtxNeeded(a_pVM) (!HMIsEnabled(a_pVM)) 101 109 #else 102 # define HMIsRawModeCtxNeeded(a_pVM) (!HMIsEnabled(a_pVM) || (a_pVM)->fHMNeedRawModeCtx)110 # define HMIsRawModeCtxNeeded(a_pVM) (!HMIsEnabled(a_pVM) || (a_pVM)->fHMNeedRawModeCtx) 103 111 #endif 104 112 … … 110 118 * @internal 111 119 */ 112 #define HMCanEmulateIoBlock(a_pVCpu) (!CPUMIsGuestInPagedProtectedMode(a_pVCpu))120 #define HMCanEmulateIoBlock(a_pVCpu) (!CPUMIsGuestInPagedProtectedMode(a_pVCpu)) 113 121 114 122 /** … … 119 127 * @internal 120 128 */ 121 #define HMCanEmulateIoBlockEx(a_pCtx) (!CPUMIsGuestInPagedProtectedModeEx(a_pCtx))129 #define HMCanEmulateIoBlockEx(a_pCtx) (!CPUMIsGuestInPagedProtectedModeEx(a_pCtx)) 122 130 123 131 /** … … 128 136 */ 129 137 #ifdef IN_RING0 130 # define HMIsInHwVirtCtx(a_pVCpu) (VMCPU_GET_STATE(a_pVCpu) == VMCPUSTATE_STARTED_HM)138 # define HMIsInHwVirtCtx(a_pVCpu) (VMCPU_GET_STATE(a_pVCpu) == VMCPUSTATE_STARTED_HM) 131 139 #else 132 # define HMIsInHwVirtCtx(a_pVCpu) (false)140 # define HMIsInHwVirtCtx(a_pVCpu) (false) 133 141 #endif 134 142
Note:
See TracChangeset
for help on using the changeset viewer.