VirtualBox

Changeset 91967 in vbox for trunk/src


Ignore:
Timestamp:
Oct 21, 2021 3:45:02 PM (3 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:10092 Bitfield assertions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/include/PGMInternal.h

    r91939 r91967  
    24222422#define PGM_BF_PTWALK_EFF_RSVD_31_23_SHIFT          23
    24232423#define PGM_BF_PTWALK_EFF_RSVD_31_23_MASK           UINT32_C(0xff800000)
     2424
     2425/** The bit count where the EPT specific bits begin. */
     2426#define PGMPTWALK_EFF_EPT_ATTR_SHIFT                PGM_BF_PTWALK_EFF_R_SHIFT
     2427
    24242428RT_BF_ASSERT_COMPILE_CHECKS(PGM_BF_PTWALK_EFF_, UINT32_C(0), UINT32_MAX,
    24252429                            (X, RW, US, PWT, PCD, A, D, PAT, G, RSVD_11_9, R, W, X_SUPER, RSVD_21_15, X_USER, RSVD_31_23));
     
    24402444AssertCompile(PGM_BF_PTWALK_EFF_PAT_MASK == X86_PTE_PAT);
    24412445AssertCompile(PGM_BF_PTWALK_EFF_G_MASK   == X86_PTE_G);
     2446AssertCompile(PGM_BF_PTWALK_EFF_R_SHIFT       - PGMPTWALK_EFF_EPT_ATTR_SHIFT == EPT_E_BIT_READ);
     2447AssertCompile(PGM_BF_PTWALK_EFF_W_SHIFT       - PGMPTWALK_EFF_EPT_ATTR_SHIFT == EPT_E_BIT_WRITE);
     2448AssertCompile(PGM_BF_PTWALK_EFF_X_SUPER_SHIFT - PGMPTWALK_EFF_EPT_ATTR_SHIFT == EPT_E_BIT_EXECUTE);
     2449AssertCompile(PGM_BF_PTWALK_EFF_X_USER_SHIFT  - PGMPTWALK_EFF_EPT_ATTR_SHIFT == EPT_E_BIT_USER_EXECUTE);
    24422450/** @} */
    24432451
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