VirtualBox

Changeset 92843 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Dec 9, 2021 11:08:08 AM (3 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10092 For upcoming INVEPT instruction support.

File:
1 edited

Legend:

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

    r92685 r92843  
    894894{
    895895    /** Invalidate a specific page. */
    896     VMXTLBFLUSHVPID_INDIV_ADDR                 = 0,
     896    VMXTLBFLUSHVPID_INDIV_ADDR                    = 0,
    897897    /** Invalidate one context (specific VPID). */
    898     VMXTLBFLUSHVPID_SINGLE_CONTEXT             = 1,
     898    VMXTLBFLUSHVPID_SINGLE_CONTEXT                = 1,
    899899    /** Invalidate all contexts (all VPIDs). */
    900     VMXTLBFLUSHVPID_ALL_CONTEXTS               = 2,
     900    VMXTLBFLUSHVPID_ALL_CONTEXTS                  = 2,
    901901    /** Invalidate a single VPID context retaining global mappings. */
    902902    VMXTLBFLUSHVPID_SINGLE_CONTEXT_RETAIN_GLOBALS = 3,
    903903    /** Unsupported by VirtualBox. */
    904     VMXTLBFLUSHVPID_NOT_SUPPORTED              = 0xbad0,
     904    VMXTLBFLUSHVPID_NOT_SUPPORTED                 = 0xbad0,
    905905    /** Unsupported by CPU. */
    906     VMXTLBFLUSHVPID_NONE                       = 0xbad1
     906    VMXTLBFLUSHVPID_NONE                          = 0xbad1
    907907} VMXTLBFLUSHVPID;
    908908AssertCompileSize(VMXTLBFLUSHVPID, 4);
     909/** Mask of all valid INVVPID flush types.  */
     910#define VMX_INVVPID_VALID_MASK                    (  VMXTLBFLUSHVPID_INDIV_ADDR \
     911                                                   | VMXTLBFLUSHVPID_SINGLE_CONTEXT \
     912                                                   | VMXTLBFLUSHVPID_ALL_CONTEXTS \
     913                                                   | VMXTLBFLUSHVPID_SINGLE_CONTEXT_RETAIN_GLOBALS)
    909914
    910915/**
     
    924929} VMXTLBFLUSHEPT;
    925930AssertCompileSize(VMXTLBFLUSHEPT, 4);
     931/** Mask of all valid INVEPT flush types.  */
     932#define VMX_INVEPT_VALID_MASK                     (  VMXTLBFLUSHEPT_SINGLE_CONTEXT \
     933                                                   | VMXTLBFLUSHEPT_ALL_CONTEXTS)
    926934
    927935/**
     
    42224230    kVmxVDiag_Invvpid_Type3InvalidVpid,
    42234231    kVmxVDiag_Invvpid_VmxRoot,
     4232    /* INVEPT. */
     4233    kVmxVDiag_Invept_Cpl,
     4234    kVmxVDiag_Invept_DescRsvd,
     4235    kVmxVDiag_Invept_EptpInvalid,
     4236    kVmxVDiag_Invept_LongModeCS,
     4237    kVmxVDiag_Invept_RealOrV86Mode,
     4238    kVmxVDiag_Invept_TypeInvalid,
     4239    kVmxVDiag_Invept_VmxRoot,
    42244240    /* VMLAUNCH/VMRESUME. */
    42254241    kVmxVDiag_Vmentry_AddrApicAccess,
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