Changeset 101059 in vbox
- Timestamp:
- Sep 8, 2023 7:50:06 AM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/hm_vmx.h
r99163 r101059 410 410 411 411 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 412 425 /** @name VMX Extended Page Tables (EPT) Common Bits. 413 426 * @{ */ … … 432 445 #define EPT_E_MEMTYPE_SHIFT 3 433 446 /** 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) 435 448 /** 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) 437 450 /** 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) 439 452 /** 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) 441 454 /** 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) 443 456 /** 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) 445 458 /** 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) 447 460 /** 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) 449 462 /** Bit 6 - Ignore page attribute table (leaf, MBZ). */ 450 463 #define EPT_E_BIT_IGNORE_PAT 6
Note:
See TracChangeset
for help on using the changeset viewer.