VirtualBox

Changeset 72855 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Jul 4, 2018 8:36:12 AM (7 years ago)
Author:
vboxsync
Message:

VMM/HM: Use enum for Tagged-TLB flush types, and related cleanup.

File:
1 edited

Legend:

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

    r72854 r72855  
    742742{
    743743    /** Invalidate a specific page. */
    744     VMXFLUSHVPID_INDIV_ADDR                    = 0,
     744    VMXTLBFLUSHVPID_INDIV_ADDR                 = 0,
    745745    /** Invalidate one context (specific VPID). */
    746     VMXFLUSHVPID_SINGLE_CONTEXT                = 1,
     746    VMXTLBFLUSHVPID_SINGLE_CONTEXT             = 1,
    747747    /** Invalidate all contexts (all VPIDs). */
    748     VMXFLUSHVPID_ALL_CONTEXTS                  = 2,
     748    VMXTLBFLUSHVPID_ALL_CONTEXTS               = 2,
    749749    /** Invalidate a single VPID context retaining global mappings. */
    750     VMXFLUSHVPID_SINGLE_CONTEXT_RETAIN_GLOBALS = 3,
     750    VMXTLBFLUSHVPID_SINGLE_CONTEXT_RETAIN_GLOBALS = 3,
    751751    /** Unsupported by VirtualBox. */
    752     VMXFLUSHVPID_NOT_SUPPORTED                 = 0xbad0,
     752    VMXTLBFLUSHVPID_NOT_SUPPORTED              = 0xbad0,
    753753    /** Unsupported by CPU. */
    754     VMXFLUSHVPID_NONE                          = 0xbad1
    755 } VMXFLUSHVPID;
    756 AssertCompileSize(VMXFLUSHVPID, 4);
     754    VMXTLBFLUSHVPID_NONE                       = 0xbad1
     755} VMXTLBFLUSHVPID;
     756AssertCompileSize(VMXTLBFLUSHVPID, 4);
    757757
    758758/**
     
    763763{
    764764    /** Invalidate one context (specific EPT). */
    765     VMXFLUSHEPT_SINGLE_CONTEXT                 = 1,
     765    VMXTLBFLUSHEPT_SINGLE_CONTEXT              = 1,
    766766    /* Invalidate all contexts (all EPTs) */
    767     VMXFLUSHEPT_ALL_CONTEXTS                   = 2,
     767    VMXTLBFLUSHEPT_ALL_CONTEXTS                = 2,
    768768    /** Unsupported by VirtualBox.   */
    769     VMXFLUSHEPT_NOT_SUPPORTED                  = 0xbad0,
     769    VMXTLBFLUSHEPT_NOT_SUPPORTED               = 0xbad0,
    770770    /** Unsupported by CPU. */
    771     VMXFLUSHEPT_NONE                           = 0xbad1
    772 } VMXFLUSHEPT;
    773 AssertCompileSize(VMXFLUSHEPT, 4);
     771    VMXTLBFLUSHEPT_NONE                        = 0xbad1
     772} VMXTLBFLUSHEPT;
     773AssertCompileSize(VMXTLBFLUSHEPT, 4);
    774774
    775775/**
     
    826826} VMXCAPABILITY;
    827827AssertCompileSize(VMXCAPABILITY, 8);
     828
     829/**
     830 * VMX tagged-TLB flush types.
     831 */
     832typedef enum
     833{
     834    VMXTLBFLUSHTYPE_EPT,
     835    VMXTLBFLUSHTYPE_VPID,
     836    VMXTLBFLUSHTYPE_EPT_VPID,
     837    VMXTLBFLUSHTYPE_NONE
     838} VMXTLBFLUSHTYPE;
     839/** Pointer to a VMXTLBFLUSHTYPE enum. */
     840typedef VMXTLBFLUSHTYPE *PVMXTLBFLUSHTYPE;
     841/** Pointer to a const VMXTLBFLUSHTYPE enum. */
     842typedef const VMXTLBFLUSHTYPE *PCVMXTLBFLUSHTYPE;
    828843
    829844/**
     
    23212336 * @param   pDescriptor     Pointer to the descriptor.
    23222337 */
    2323 DECLASM(int) VMXR0InvEPT(VMXFLUSHEPT enmFlush, uint64_t *pDescriptor);
     2338DECLASM(int) VMXR0InvEPT(VMXTLBFLUSHEPT enmFlush, uint64_t *pDescriptor);
    23242339
    23252340
     
    23312346 * @param   pDescriptor     Pointer to the descriptor.
    23322347 */
    2333 DECLASM(int) VMXR0InvVPID(VMXFLUSHVPID enmFlush, uint64_t *pDescriptor);
     2348DECLASM(int) VMXR0InvVPID(VMXTLBFLUSHVPID enmFlush, uint64_t *pDescriptor);
    23342349
    23352350
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