VirtualBox

Changeset 86088 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Sep 11, 2020 9:33:38 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
140320
Message:

AMD IOMMU: bugref:9654 Add debugger info helper for dumping DTE given a device ID.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/iommu-amd.h

    r86030 r86088  
    454454
    455455/**
    456  * Gets the device table size given the size field.
    457  */
    458 #define IOMMU_GET_DEV_TAB_SIZE(a_uSize)     (((a_uSize) + 1) << X86_PAGE_4K_SHIFT)
     456 * Gets the device table length (in bytes) given the size field.
     457 */
     458#define IOMMU_GET_DEV_TAB_LEN(a_DevTab)     (((a_DevTab.n.u9Size) + 1) << X86_PAGE_4K_SHIFT)
    459459
    460460/**
     
    499499        RT_GCC_EXTENSION uint64_t  u1Rsvd0 : 1;                   /**< Bit  63      - Reserved. */
    500500        RT_GCC_EXTENSION uint64_t  u16DomainId : 16;              /**< Bits 79:64   - Domain ID. */
    501         RT_GCC_EXTENSION uint64_t  u16GstCr3TableRootPtrMed : 16; /**< Bits 95:80   - GCR3 TRP: Guest CR3 Table Root Ptr (Mid). */
     501        RT_GCC_EXTENSION uint64_t  u16GstCr3TableRootPtrMid : 16; /**< Bits 95:80   - GCR3 TRP: Guest CR3 Table Root Ptr (Mid). */
    502502        RT_GCC_EXTENSION uint64_t  u1IoTlbEnable : 1;             /**< Bit  96      - I: IOTLB Enable. */
    503503        RT_GCC_EXTENSION uint64_t  u1SuppressPfEvents : 1;        /**< Bit  97      - SE: Supress Page-fault events. */
     
    525525        RT_GCC_EXTENSION uint64_t  u22Rsvd0 : 22;                 /**< Bits 245:224 - Reserved. */
    526526        RT_GCC_EXTENSION uint64_t  u1AttrOverride : 1;            /**< Bit  246     - AttrV: Attribute Override. */
    527         RT_GCC_EXTENSION uint64_t  u1Mode0FC: 1;                  /**< Bit  247     - Mode0FC. */
    528         RT_GCC_EXTENSION uint64_t  u8SnoopAttr: 8;                /**< Bits 255:248 - Snoop Attribute. */
     527        RT_GCC_EXTENSION uint64_t  u1Mode0FC : 1;                 /**< Bit  247     - Mode0FC. */
     528        RT_GCC_EXTENSION uint64_t  u8SnoopAttr : 8;               /**< Bits 255:248 - Snoop Attribute. */
    529529    } n;
    530530    /** The 32-bit unsigned integer view. */
     
    565565/* Mask of the interrupt table root pointer. */
    566566#define IOMMU_DTE_IRTE_ROOT_PTR_MASK            UINT64_C(0x000fffffffffffc0)
     567/* Number of bits to shift to get the interrupt root table pointer at
     568   qword 2 (qword 0 being the first one) - 128-byte aligned. */
     569#define IOMMU_DTE_IRTE_ROOT_PTR_SHIFT           6
     570
    567571
    568572/**
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette