Changeset 57429 in vbox for trunk/src/VBox/VMM/VMMR0/HMVMXR0.h
- Timestamp:
- Aug 18, 2015 1:35:18 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.h
r56287 r57429 45 45 46 46 47 # if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)47 # if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) 48 48 DECLASM(int) VMXR0SwitcherStartVM64(RTHCUINT fResume, PCPUMCTX pCtx, PVMCSCACHE pCache, PVM pVM, PVMCPU pVCpu); 49 49 VMMR0DECL(int) VMXR0Execute64BitsHandler(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx, HM64ON32OP enmOp, uint32_t cbParam, … … 63 63 # endif 64 64 65 # ifdef VBOX_WITH_HYBRID_32BIT_KERNEL 66 /* Don't use fAllow64BitGuests for VMXReadVmcsGstN() even though it looks right, as it can be forced to 'true'. 67 HMVMX_IS_64BIT_HOST_MODE() is what we need. */ 68 # define VMXReadVmcsHstN(idxField, p64Val) HMVMX_IS_64BIT_HOST_MODE() ? \ 69 VMXReadVmcs64(idxField, p64Val) \ 70 : (*(p64Val) &= UINT64_C(0xffffffff), \ 71 VMXReadVmcs32(idxField, (uint32_t *)(p64Val))) 72 # define VMXReadVmcsGstN VMXReadVmcsHstN 73 # define VMXReadVmcsGstNByIdxVal VMXReadVmcsGstN 74 # elif HC_ARCH_BITS == 32 65 # if HC_ARCH_BITS == 32 75 66 # define VMXReadVmcsHstN VMXReadVmcs32 76 67 # define VMXReadVmcsGstN(idxField, pVal) VMXReadCachedVmcsEx(pVCpu, idxField##_CACHE_IDX, pVal)
Note:
See TracChangeset
for help on using the changeset viewer.