VirtualBox

Changeset 101059 in vbox


Ignore:
Timestamp:
Sep 8, 2023 7:50:06 AM (15 months ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10318 EPT memtype define nits.

File:
1 edited

Legend:

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

    r99163 r101059  
    410410
    411411
     412/** @name VMX EPT memory type encodings.
     413 * @{ */
     414#define VMX_EPT_MT_UC                                           UINT64_C(0)
     415#define VMX_EPT_MT_WC                                           UINT64_C(1)
     416#define VMX_EPT_MT_RSVD_2                                       UINT64_C(2)
     417#define VMX_EPT_MT_RSVD_3                                       UINT64_C(3)
     418#define VMX_EPT_MT_WT                                           UINT64_C(4)
     419#define VMX_EPT_MT_WP                                           UINT64_C(5)
     420#define VMX_EPT_MT_WB                                           UINT64_C(6)
     421#define VMX_EPT_MT_RSVD_7                                       UINT64_C(7)
     422/** @} */
     423
     424
    412425/** @name VMX Extended Page Tables (EPT) Common Bits.
    413426 * @{ */
     
    432445#define EPT_E_MEMTYPE_SHIFT                 3
    433446/** Bits 3-5 - Memory type: UC (Uncacheable). */
    434 #define EPT_E_MEMTYPE_UC                    (UINT64_C(0) << EPT_E_MEMTYPE_SHIFT)
     447#define EPT_E_MEMTYPE_UC                    (VMX_EPT_MT_UC << EPT_E_MEMTYPE_SHIFT)
    435448/** Bits 3-5 - Memory type: WC (Write Combining). */
    436 #define EPT_E_MEMTYPE_WC                    (UINT64_C(1) << EPT_E_MEMTYPE_SHIFT)
     449#define EPT_E_MEMTYPE_WC                    (VMX_EPT_MT_WC << EPT_E_MEMTYPE_SHIFT)
    437450/** Bits 3-5 - Memory type: Invalid (2). */
    438 #define EPT_E_MEMTYPE_INVALID_2             (UINT64_C(2) << EPT_E_MEMTYPE_SHIFT)
     451#define EPT_E_MEMTYPE_INVALID_2             (VMX_EPT_MT_RSVD_2 << EPT_E_MEMTYPE_SHIFT)
    439452/** Bits 3-5 - Memory type: Invalid (3). */
    440 #define EPT_E_MEMTYPE_INVALID_3             (UINT64_C(3) << EPT_E_MEMTYPE_SHIFT)
     453#define EPT_E_MEMTYPE_INVALID_3             (VMX_EPT_MT_RSVD_3 << EPT_E_MEMTYPE_SHIFT)
    441454/** Bits 3-5 - Memory type: WT (Write Through). */
    442 #define EPT_E_MEMTYPE_WT                    (UINT64_C(4) << EPT_E_MEMTYPE_SHIFT)
     455#define EPT_E_MEMTYPE_WT                    (VMX_EPT_MT_WT << EPT_E_MEMTYPE_SHIFT)
    443456/** Bits 3-5 - Memory type: WP (Write Protected). */
    444 #define EPT_E_MEMTYPE_WP                    (UINT64_C(5) << EPT_E_MEMTYPE_SHIFT)
     457#define EPT_E_MEMTYPE_WP                    (VMX_EPT_MT_WP << EPT_E_MEMTYPE_SHIFT)
    445458/** Bits 3-5 - Memory type: WB (Write Back). */
    446 #define EPT_E_MEMTYPE_WB                    (UINT64_C(6) << EPT_E_MEMTYPE_SHIFT)
     459#define EPT_E_MEMTYPE_WB                    (VMX_EPT_MT_WB << EPT_E_MEMTYPE_SHIFT)
    447460/** Bits 3-5 - Memory type: Invalid (7). */
    448 #define EPT_E_MEMTYPE_INVALID_7             (UINT64_C(7) << EPT_E_MEMTYPE_SHIFT)
     461#define EPT_E_MEMTYPE_INVALID_7             (VMX_EPT_MT_RSVD_7 << EPT_E_MEMTYPE_SHIFT)
    449462/** Bit 6 - Ignore page attribute table (leaf, MBZ). */
    450463#define EPT_E_BIT_IGNORE_PAT                6
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