Changeset 80742 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Sep 12, 2019 4:43:35 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 133294
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r80690 r80742 5316 5316 PVMXVMCSINFO pVmcsInfo = pVmxTransient->pVmcsInfo; 5317 5317 5318 /*5319 * Figure out fixed CR0 bits in VMX operation.5320 */5321 5318 uint64_t fSetCr0 = pVM->hm.s.vmx.Msrs.u64Cr0Fixed0; 5322 5319 uint64_t const fZapCr0 = pVM->hm.s.vmx.Msrs.u64Cr0Fixed1; … … 5415 5412 Assert(pVM->hm.s.fNestedPaging || (uXcptBitmap & RT_BIT(X86_XCPT_PF))); 5416 5413 5417 /* Apply the hardware specified fixed CR0bits and enable caching. */5414 /* Apply the hardware specified CR0 fixed bits and enable caching. */ 5418 5415 u64GuestCr0 |= fSetCr0; 5419 5416 u64GuestCr0 &= fZapCr0; … … 5455 5452 Assert(u64GuestCr0 & X86_CR0_NE); 5456 5453 5457 /* Apply the hardware specified fixed CR0bits and enable caching. */5454 /* Apply the hardware specified CR0 fixed bits and enable caching. */ 5458 5455 u64GuestCr0 |= fSetCr0; 5459 5456 u64GuestCr0 &= fZapCr0; … … 5603 5600 if (ASMAtomicUoReadU64(&pVCpu->hm.s.fCtxChanged) & HM_CHANGED_GUEST_CR4) 5604 5601 { 5605 PCPUMCTX pCtx = &pVCpu->cpum.GstCtx; 5606 PVMXVMCSINFO pVmcsInfo = pVmxTransient->pVmcsInfo; 5607 5608 /* 5609 * Figure out fixed CR4 bits in VMX operation. 5610 */ 5602 PCPUMCTX pCtx = &pVCpu->cpum.GstCtx; 5603 PVMXVMCSINFO pVmcsInfo = pVmxTransient->pVmcsInfo; 5604 5611 5605 uint64_t const fSetCr4 = pVM->hm.s.vmx.Msrs.u64Cr4Fixed0; 5612 5606 uint64_t const fZapCr4 = pVM->hm.s.vmx.Msrs.u64Cr4Fixed1; … … 5694 5688 } 5695 5689 5696 /* Apply the hardware specified fixed CR4bits (mainly CR4.VMXE). */5690 /* Apply the hardware specified CR4 fixed bits (mainly CR4.VMXE). */ 5697 5691 u64GuestCr4 |= fSetCr4; 5698 5692 u64GuestCr4 &= fZapCr4; … … 9247 9241 uint64_t fSetCr0 = (pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 & pVM->hm.s.vmx.Msrs.u64Cr0Fixed1); 9248 9242 uint64_t const fZapCr0 = (pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 | pVM->hm.s.vmx.Msrs.u64Cr0Fixed1); 9249 /* Exceptions for unrestricted guest execution for fixed CR0bits (PE, PG).9243 /* Exceptions for unrestricted guest execution for CR0 fixed bits (PE, PG). 9250 9244 See Intel spec. 26.3.1 "Checks on Guest Control Registers, Debug Registers and MSRs." */ 9251 9245 if (fUnrestrictedGuest)
Note:
See TracChangeset
for help on using the changeset viewer.