VirtualBox

Changeset 91711 in vbox


Ignore:
Timestamp:
Oct 13, 2021 11:06:54 AM (3 years ago)
Author:
vboxsync
Message:

hm_vmx.h: Nested VMX: bugref:10092 Added some macros (removed one duplicate define) for upcoming guest-mode EPT changes.

File:
1 edited

Legend:

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

    r91580 r91711  
    465465#define EPT_E_BIT_SHADOW_STACK  60
    466466#define EPT_E_SHADOW_STACK      RT_BIT_64(EPT_E_BIT_SHADOW_STACK)   /**< @see EPT_E_BIT_SHADOW_STACK*/
    467 /** Bit 61 - Sub-page write permissions (PT only, ignored).
    468  * @note Ignored if sub-page write permissions for EPT is disabled. */
    469 #define EPT_E_BIT_SHADOW_STACK  60
    470 #define EPT_E_SHADOW_STACK      RT_BIT_64(EPT_E_BIT_SHADOW_STACK)   /**< @see EPT_E_BIT_SHADOW_STACK*/
    471 
    472 /* Bit 62 is always ignored at time of writing. */
     467
     468/* Bit 61, 62 are always ignored at time of writing. */
    473469
    474470/** Bit 63 - Supress \#VE (leaf only, ignored).
     
    520516/** The PML4 index mask (apply to a shifted page address). */
    521517#define EPT_PML4_MASK           X86_PML4_MASK
     518/** Bits - - EPT - PML4 MBZ Mask. */
     519#define EPT_PML4E_MBZ_MASK      UINT64_C(0x00000000000000f8)
    522520
    523521/**
     
    558556typedef const EPTPML4 *PCEPTPML4;
    559557
     558
    560559/**
    561560 * EPT Page Directory Pointer Entry. Bit view.
     
    587586/** The PDPT index mask (apply to a shifted page address). */
    588587#define EPT_PDPT_MASK           X86_PDPT_MASK_AMD64
     588/** Bits 3-7 - - EPT - PDPTE MBZ Mask. */
     589#define EPT_PDPTE_MBZ_MASK      UINT64_C(0x00000000000000f8)
     590/** Bits 12-29 - - EPT - 1GB PDPTE MBZ Mask. */
     591#define EPT_PDPTE1G_MBZ_MASK    UINT64_C(0x000000003ffff000)
     592/** */
    589593
    590594/**
     
    624628/** Pointer to a const EPT Page Directory Pointer Table. */
    625629typedef const EPTPDPT *PCEPTPDPT;
     630
    626631
    627632/**
     
    656661/** The PD index mask (apply to a shifted page address). */
    657662#define EPT_PD_MASK             X86_PD_PAE_MASK
     663/** Bits 3-7 - EPT - PDE MBZ Mask. */
     664#define EPT_PDE_MBZ_MASK        UINT64_C(0x00000000000000f8)
     665
     666
    658667
    659668/**
     
    688697/** Bits 21-51 - - EPT - Physical Page number of the next level. */
    689698#define EPT_PDE2M_PG_MASK       X86_PDE2M_PAE_PG_MASK
     699/** Bits 20-12 - - EPT - PDE 2M MBZ Mask. */
     700#define EPT_PDE2M_MBZ_MASK      UINT64_C(0x00000000001ff000)
     701
    690702
    691703/**
     
    764776/** The EPT PT index mask (apply to a shifted page address). */
    765777#define EPT_PT_MASK             X86_PT_PAE_MASK
     778/** No bits - - EPT - PTE MBZ bits. */
     779#define EPT_PTE_MBZ_MASK        UINT64_C(0x0000000000000000)
     780
    766781
    767782/**
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