VirtualBox

Changeset 83989 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Apr 27, 2020 8:53:56 AM (5 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 Bits.

File:
1 edited

Legend:

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

    r83988 r83989  
    27932793        case IOMMU_MMIO_OFF_PPR_EVT_B_BAR:            uReg = pThis->EvtLogBBaseAddr.u64;        break;
    27942794
    2795         case IOMMU_MMIO_OFF_DEV_TAB_SEG_FIRST:
    2796         case IOMMU_MMIO_OFF_DEV_TAB_SEG_LAST:
     2795        case IOMMU_MMIO_OFF_DEV_TAB_SEG_1:
     2796        case IOMMU_MMIO_OFF_DEV_TAB_SEG_2:
     2797        case IOMMU_MMIO_OFF_DEV_TAB_SEG_3:
     2798        case IOMMU_MMIO_OFF_DEV_TAB_SEG_4:
     2799        case IOMMU_MMIO_OFF_DEV_TAB_SEG_5:
     2800        case IOMMU_MMIO_OFF_DEV_TAB_SEG_6:
     2801        case IOMMU_MMIO_OFF_DEV_TAB_SEG_7:
    27972802        {
    27982803            uint8_t const offDevTabSeg = (off - IOMMU_MMIO_OFF_DEV_TAB_SEG_FIRST) >> 3;
     
    29352940    RTGCPHYS const GCPhysDevTabEntry = GCPhysDevTab + offDevTabEntry;
    29362941
     2942    Assert(!(GCPhysDevTab & X86_PAGE_4K_OFFSET_MASK));
    29372943    int rc = PDMDevHlpPCIPhysRead(pDevIns, GCPhysDevTabEntry, pDevTabEntry, sizeof(*pDevTabEntry));
    29382944    if (RT_FAILURE(rc))
     
    37283734    pThis->ExtFeat.n.u5MaxPasidSup           = 0;   /* Requires GstTranslateSup. */
    37293735    pThis->ExtFeat.n.u1UserSupervisorSup     = 0;
    3730     AssertCompile(IOMMU_MAX_DEV_TAB_SEGMENTS < RT_ELEMENTS(g_acDevTabSegs));
     3736    AssertCompile(IOMMU_MAX_DEV_TAB_SEGMENTS <= 3);
    37313737    pThis->ExtFeat.n.u2DevTabSegSup          = IOMMU_MAX_DEV_TAB_SEGMENTS;
    37323738    pThis->ExtFeat.n.u1PprLogOverflowWarn    = 0;
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