Changeset 79144 in vbox
- Timestamp:
- Jun 14, 2019 5:01:07 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r79142 r79144 5009 5009 Assert(pVM->hm.s.fNestedPaging || (uXcptBitmap & RT_BIT(X86_XCPT_PF))); 5010 5010 5011 /* Apply the fixed CR0 bits and enable caching. */5011 /* Apply the hardware specified fixed CR0 bits and enable caching. */ 5012 5012 u64GuestCr0 |= fSetCr0; 5013 5013 u64GuestCr0 &= fZapCr0; … … 5037 5037 * originally supplied. We must copy those bits from the nested-guest CR0 into 5038 5038 * the nested-guest CR0 read-shadow. 5039 *5040 * Note! We are zapping away any CR0 fixed bits of our VMX emulation and applying5041 * the hardware's VMX CR0 fixed bits here.5042 5039 */ 5043 5040 HMVMX_CPUMCTX_ASSERT(pVCpu, CPUMCTX_EXTRN_CR0); … … 5047 5044 Assert(u64GuestCr0 & X86_CR0_NE); 5048 5045 5049 /* Apply the fixed CR0 bits and enable caching. */ 5046 /* 5047 * Apply the hardware specified fixed CR0 bits and enable caching. 5048 * Note! We could be altering our VMX emulation's fixed bits. We thus 5049 * need to re-apply them while importing CR0. 5050 */ 5050 5051 u64GuestCr0 |= fSetCr0; 5051 5052 u64GuestCr0 &= fZapCr0; … … 5285 5286 } 5286 5287 5287 /* Apply the fixed CR4 bits (mainly CR4.VMXE). */ 5288 /* 5289 * Apply the hardware specified fixed CR4 bits (mainly CR4.VMXE). 5290 * Note! For nested-guests, we could be altering our VMX emulation's 5291 * fixed bits. We thus need to re-apply them while importing CR4. 5292 */ 5288 5293 u64GuestCr4 |= fSetCr4; 5289 5294 u64GuestCr4 &= fZapCr4;
Note:
See TracChangeset
for help on using the changeset viewer.