VirtualBox

Changeset 80579 in vbox for trunk/src


Ignore:
Timestamp:
Sep 4, 2019 8:48:17 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
133098
Message:

VMM/HMVMXR0: Nested VMX: bugref:9180 No need to AND/OR the fixed-0 and fixed-1 bits in this manner here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r80561 r80579  
    52845284         * Figure out fixed CR0 bits in VMX operation.
    52855285         */
    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;
    52895288        if (pVM->hm.s.vmx.fUnrestrictedGuest)
    52905289            fSetCr0 &= ~(uint64_t)(X86_CR0_PE | X86_CR0_PG);
     
    55795578         * Figure out fixed CR4 bits in VMX operation.
    55805579         */
    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;
    55845582
    55855583        /*
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette