VirtualBox

Changeset 98150 in vbox for trunk/include


Ignore:
Timestamp:
Jan 20, 2023 6:46:21 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155323
Message:

VMM: Nested VMX: bugref:10318 Fix VMX CR0/CR4 fixed bits masking.

File:
1 edited

Legend:

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

    r98103 r98150  
    22992299 * @{ */
    23002300/** CR0 bits ignored on VM-entry while loading guest CR0 (ET, CD, NW, bits 6:15,
    2301  *  bit 17 and bits 19:28). */
    2302 #define VMX_ENTRY_GUEST_CR0_IGNORE_MASK                         UINT64_C(0x7ffaffd0)
     2301 *  bit 17 and bits 19:28).
     2302 *
     2303 *  I don't know the Intel spec. excludes the high bits here while includes them in
     2304 *  the corresponding VM-exit mask. Nonetheless, I'm including the high bits here
     2305 *  (by making it identical to the VM-exit CR0 mask) since they are reserved anyway
     2306 *  and to prevent omission of the high bits with hardware-assisted VMX execution.
     2307 */
     2308#define VMX_ENTRY_GUEST_CR0_IGNORE_MASK                         VMX_EXIT_HOST_CR0_IGNORE_MASK
    23032309/** DR7 bits set here are always cleared on VM-entry while loading guest DR7 (bit
    23042310 *  12, bits 14:15). */
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