Changeset 79073 in vbox for trunk/include/VBox
- Timestamp:
- Jun 11, 2019 5:26:37 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/cpum.h
r78986 r79073 2214 2214 * 2215 2215 * @returns The nested-guest CR0. 2216 * @param pVCpu The cross context virtual CPU structure of the calling EMT. 2217 * @param pCtx Pointer to the context. 2218 */ 2219 DECLINLINE(uint64_t) CPUMGetGuestVmxMaskedCr0(PCVMCPU pVCpu, PCCPUMCTX pCtx) 2216 * @param pVCpu The cross context virtual CPU structure of the calling EMT. 2217 * @param pCtx Pointer to the context. 2218 * @param fGstHostMask The CR0 guest/host mask to use. 2219 */ 2220 DECLINLINE(uint64_t) CPUMGetGuestVmxMaskedCr0(PCVMCPU pVCpu, PCCPUMCTX pCtx, uint64_t fGstHostMask) 2220 2221 { 2221 2222 /* … … 2231 2232 Assert(pVmcs); 2232 2233 uint64_t const uGstCr0 = pCtx->cr0; 2233 uint64_t const fGstHostMask = pVmcs->u64Cr0Mask.u;2234 2234 uint64_t const fReadShadow = pVmcs->u64Cr0ReadShadow.u; 2235 2235 return (fReadShadow & fGstHostMask) | (uGstCr0 & ~fGstHostMask); … … 2240 2240 * 2241 2241 * @returns The nested-guest CR4. 2242 * @param pVCpu The cross context virtual CPU structure of the calling EMT. 2243 * @param pCtx Pointer to the context. 2244 */ 2245 DECLINLINE(uint64_t) CPUMGetGuestVmxMaskedCr4(PCVMCPU pVCpu, PCCPUMCTX pCtx) 2242 * @param pVCpu The cross context virtual CPU structure of the calling EMT. 2243 * @param pCtx Pointer to the context. 2244 * @param fGstHostMask The CR4 guest/host mask to use. 2245 */ 2246 DECLINLINE(uint64_t) CPUMGetGuestVmxMaskedCr4(PCVMCPU pVCpu, PCCPUMCTX pCtx, uint64_t fGstHostMask) 2246 2247 { 2247 2248 /* … … 2257 2258 Assert(pVmcs); 2258 2259 uint64_t const uGstCr4 = pCtx->cr4; 2259 uint64_t const fGstHostMask = pVmcs->u64Cr4Mask.u;2260 2260 uint64_t const fReadShadow = pVmcs->u64Cr4ReadShadow.u; 2261 2261 return (fReadShadow & fGstHostMask) | (uGstCr4 & ~fGstHostMask);
Note:
See TracChangeset
for help on using the changeset viewer.