Changeset 45091 in vbox for trunk/src/VBox/VMM/VMMR0/HWVMXR0.h
- Timestamp:
- Mar 19, 2013 4:01:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HWVMXR0.h
r44528 r45091 135 135 136 136 /** 137 * Does Ring-0 global VT-x initialization. 138 * 139 * @returns VBox status code. 140 * @param pVM Pointer to the VM. 141 */ 142 VMMR0DECL(int) VMXR0GlobalInit(void); 143 144 /** 145 * Does Ring-0 global VT-x termination. 146 * 147 * @returns VBox status code. 148 * @param pVM Pointer to the VM. 149 */ 150 VMMR0DECL(void) VMXR0GlobalTerm(void); 151 152 /** 137 153 * Does Ring-0 per VM VT-x initialization. 138 154 * … … 299 315 #endif 300 316 301 /** 302 * Return value of cached VMCS read for performance reasons (Darwin) and for 303 * running 64 bits guests on 32-bit hosts. 304 * 305 * @param idxField VMCS field index. 306 * @param pVal Value pointer (out). 307 */ 308 #ifdef VMX_USE_CACHED_VMCS_ACCESSES 309 # define VMXReadCachedVmcs(idxField, pVal) VMXReadCachedVmcsEx(pVCpu, idxField##_CACHE_IDX, pVal) 317 #ifdef VBOX_WITH_OLD_VTX_CODE 318 # ifdef VMX_USE_CACHED_VMCS_ACCESSES 319 # define VMXReadCachedVmcs(idxField, pVal) VMXReadCachedVmcsEx(pVCpu, idxField##_CACHE_IDX, pVal) 320 # else 321 # define VMXReadCachedVmcs VMXReadVmcsField 322 # endif 323 # define VMXReadVmcs VMXReadVmcsField 310 324 #else 311 # define VMXReadCachedVmcs(idxField, pVal) VMXReadVmcs(idxField, pVal) 325 # if HC_ARCH_BITS == 64 || defined(VBOX_WITH_HYBRID_32BIT_KERNEL) 326 # define VMXReadVmcsHstN VMXReadVmcs64 327 # define VMXReadVmcsGstN VMXReadVmcs64 328 # else 329 # define VMXReadVmcsHstN VMXReadVmcs32 330 # define VMXReadVmcsGstN(idxField, pVal) VMXReadCachedVmcsEx(pVCpu, idxField##_CACHE_IDX, pVal) 331 # endif 312 332 #endif 313 333
Note:
See TracChangeset
for help on using the changeset viewer.