- Timestamp:
- Sep 4, 2019 8:48:17 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 133098
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r80561 r80579 5284 5284 * Figure out fixed CR0 bits in VMX operation. 5285 5285 */ 5286 /** @todo Why do we need to OR and AND the fixed-0 and fixed-1 bits below? */ 5287 uint64_t fSetCr0 = pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 & pVM->hm.s.vmx.Msrs.u64Cr0Fixed1; 5288 uint64_t const fZapCr0 = pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 | pVM->hm.s.vmx.Msrs.u64Cr0Fixed1; 5286 uint64_t fSetCr0 = pVM->hm.s.vmx.Msrs.u64Cr0Fixed0 5287 uint64_t const fZapCr0 = pVM->hm.s.vmx.Msrs.u64Cr0Fixed1; 5289 5288 if (pVM->hm.s.vmx.fUnrestrictedGuest) 5290 5289 fSetCr0 &= ~(uint64_t)(X86_CR0_PE | X86_CR0_PG); … … 5579 5578 * Figure out fixed CR4 bits in VMX operation. 5580 5579 */ 5581 /** @todo Why do we need to OR and AND the fixed-0 and fixed-1 bits below? */ 5582 uint64_t const fSetCr4 = pVM->hm.s.vmx.Msrs.u64Cr4Fixed0 & pVM->hm.s.vmx.Msrs.u64Cr4Fixed1; 5583 uint64_t const fZapCr4 = pVM->hm.s.vmx.Msrs.u64Cr4Fixed0 | pVM->hm.s.vmx.Msrs.u64Cr4Fixed1; 5580 uint64_t const fSetCr4 = pVM->hm.s.vmx.Msrs.u64Cr4Fixed0 5581 uint64_t const fZapCr4 = pVM->hm.s.vmx.Msrs.u64Cr4Fixed1; 5584 5582 5585 5583 /*
Note:
See TracChangeset
for help on using the changeset viewer.