VirtualBox

Changeset 86454 in vbox for trunk


Ignore:
Timestamp:
Oct 5, 2020 8:26:13 PM (4 years ago)
Author:
vboxsync
Message:

hm_vmx.h: Added some generic EPT defines (gcc 10). bugref:9841

File:
1 edited

Legend:

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

    r85974 r86454  
    448448 * @{
    449449 */
     450
     451/** @name Common bits
     452 * @{ */
     453/** Bit 0 - Readable (we often think of it as present). */
     454#define EPT_E_BIT_READ          0
     455#define EPT_E_READ              RT_BIT_64(EPT_E_BIT_READ)       /**< @see EPT_E_BIT_READ */
     456/** Bit 1 - Writable. */
     457#define EPT_E_BIT_WRITE         1
     458#define EPT_E_WRITE             RT_BIT_64(EPT_E_BIT_WRITE)      /**< @see EPT_E_BIT_WRITE */
     459/** Bit 2 - Executable. */
     460#define EPT_E_BIT_EXECUTE       2
     461#define EPT_E_EXECUTE           RT_BIT_64(EPT_E_BIT_EXECUTE)    /**< @see EPT_E_BIT_EXECUTE */
     462/** Bit 3 - Page size (not applicable to all levels). */
     463#define EPT_E_BIT_SIZE          3
     464#define EPT_E_SIZE              RT_BIT_64(EPT_E_BIT_SIZE)       /**< @see EPT_E_BIT_SIZE */
     465/** Bits 8-11 & 52-63 - Available for software */
     466#define EPT_E_AVL               UINT64_C(0xfff0000000000f00)
     467/** Bits 12-51 - Physical Page number of the next level. */
     468#define EPT_E_PG_MASK           UINT64_C(0x000ffffffffff000)
     469/** Bits 5-7 - Reserved. */
     470#define EPT_E_RESERVED          UINT64_C(0x00e0)
     471/** Bits 4-7 - Reserved w/o size bit. */
     472#define EPT_E_RESERVED_NO_SIZE  UINT64_C(0x00f0)
     473/** @} */
    450474
    451475/**
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