VirtualBox

Changeset 93223 in vbox


Ignore:
Timestamp:
Jan 13, 2022 12:07:19 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10092 When Unrestricted Guest is supported by the CPU, the CPU still reports PE and PG bits as MB1 in IA32_VMX_CR0_FIXED0. It's just VMX instructions ignores them.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/hm_vmx.h

    r93115 r93223  
    36923692/** CR0 bits set here must always be set when in VMX operation. */
    36933693#define VMX_V_CR0_FIXED0                                        (X86_CR0_PE | X86_CR0_NE | X86_CR0_PG)
    3694 /** VMX_V_CR0_FIXED0 when unrestricted-guest execution is supported for the guest. */
    3695 #define VMX_V_CR0_FIXED0_UX                                     (VMX_V_CR0_FIXED0 & ~(X86_CR0_PE | X86_CR0_PG))
    36963694/** CR4 bits set here must always be set when in VMX operation. */
    36973695#define VMX_V_CR4_FIXED0                                        (X86_CR4_VMXE)
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r93115 r93223  
    14421442
    14431443    /* CR0 Fixed-0. */
    1444     pGuestVmxMsrs->u64Cr0Fixed0 = pGuestFeatures->fVmxUnrestrictedGuest ? VMX_V_CR0_FIXED0_UX : VMX_V_CR0_FIXED0;
     1444    pGuestVmxMsrs->u64Cr0Fixed0 = VMX_V_CR0_FIXED0;
    14451445
    14461446    /* CR0 Fixed-1. */
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