VirtualBox

Changeset 93337 in vbox


Ignore:
Timestamp:
Jan 19, 2022 5:46:03 AM (3 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10092 Comment clarifying CR0-fixed-0 and CR0-fixed-1 bits reporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r93292 r93337  
    14801480    }
    14811481
    1482     /* CR0 Fixed-0. */
     1482    /* CR0 Fixed-0 (we report this fixed value regardless of whether UX is supported as it does on real hardware). */
    14831483    pGuestVmxMsrs->u64Cr0Fixed0 = VMX_V_CR0_FIXED0;
    14841484
     
    14901490         * CPU features and/or micro-architecture/generation. Why? Ask Intel.
    14911491         */
    1492         uint64_t const uHostMsr = fIsNstGstHwExecAllowed ? pHostVmxMsrs->u64Cr0Fixed1 : 0xffffffff;
     1492        uint64_t const uHostMsr = fIsNstGstHwExecAllowed ? pHostVmxMsrs->u64Cr0Fixed1 : VMX_V_CR0_FIXED1;
    14931493        pGuestVmxMsrs->u64Cr0Fixed1 = uHostMsr | pGuestVmxMsrs->u64Cr0Fixed0;   /* Make sure the CR0 MB1 bits are not clear. */
    14941494    }
Note: See TracChangeset for help on using the changeset viewer.

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