VirtualBox

Ignore:
Timestamp:
Sep 16, 2020 7:52:40 AM (4 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 Nit.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Bus/DevIommuAmd.cpp

    r86131 r86132  
    19881988
    19891989    RTGCPHYS const GCPhysDevTab = pThis->aDevTabBaseAddrs[idxSeg].n.u40Base << X86_PAGE_4K_SHIFT;
    1990     uint16_t const offDte       = (uDevId & ~g_auDevTabSegMasks[idxSegsEn]) << IOMMU_DTE_SIZE_SHIFT;
     1990    uint16_t const offDte       = (uDevId & ~g_auDevTabSegMasks[idxSegsEn]) * sizeof(DTE_T);
    19911991    RTGCPHYS const GCPhysDte    = GCPhysDevTab + offDte;
    19921992
     
    24732473    RTGCPHYS const GCPhysIntrTable = pDte->au64[2] & IOMMU_DTE_IRTE_ROOT_PTR_MASK;
    24742474    uint16_t const cbIntrTable     = IOMMU_GET_INTR_TAB_LEN(pDte);
    2475     uint16_t const offIrte         = (uDataIn & IOMMU_MSI_DATA_IRTE_OFFSET_MASK) << IOMMU_IRTE_SIZE_SHIFT;
     2475    uint16_t const offIrte         = (uDataIn & IOMMU_MSI_DATA_IRTE_OFFSET_MASK) * sizeof(IRTE_T);
    24762476    RTGCPHYS const GCPhysIrte      = GCPhysIntrTable + offIrte;
    24772477
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