VirtualBox

Changeset 89007 in vbox for trunk


Ignore:
Timestamp:
May 12, 2021 9:23:03 AM (4 years ago)
Author:
vboxsync
Message:

Intel IOMMU: bugref:9967 Asserting level and trigger mode should be sufficient here since the R/W masks takes care of it already.

File:
1 edited

Legend:

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

    r89001 r89007  
    11201120        /*
    11211121         * Interrupt is unmasked, raise it.
    1122          *
    11231122         * Interrupts generated by the DMAR have trigger mode and level as 0.
    11241123         * See Intel spec. 5.1.6 "Remapping Hardware Event Interrupt Programming".
    11251124         */
    11261125        MSIMSG Msi;
    1127         Msi.Addr.au32[0]         = dmarRegReadRaw32(pThis, offMsiAddrLoReg);
    1128         Msi.Addr.au32[1]         = (pThis->fExtCapReg & VTD_BF_ECAP_REG_EIM_MASK) ? dmarRegReadRaw32(pThis, offMsiAddrHiReg) : 0;
    1129         Msi.Data.u32             = dmarRegReadRaw32(pThis, offMsiDataReg);
    1130         Msi.Data.n.u1Level       = 0;
    1131         Msi.Data.n.u1TriggerMode = 0;
     1126        Msi.Addr.au32[0] = dmarRegReadRaw32(pThis, offMsiAddrLoReg);
     1127        Msi.Addr.au32[1] = (pThis->fExtCapReg & VTD_BF_ECAP_REG_EIM_MASK) ? dmarRegReadRaw32(pThis, offMsiAddrHiReg) : 0;
     1128        Msi.Data.u32     = dmarRegReadRaw32(pThis, offMsiDataReg);
     1129        Assert(Msi.Data.n.u1Level == 0);
     1130        Assert(Msi.Data.n.u1TriggerMode == 0);
    11321131
    11331132        PCDMARCC pThisCC = PDMDEVINS_2_DATA_CC(pDevIns, PCDMARCC);
     
    17891788    if (uGstsReg & VTD_BF_GSTS_REG_IRES_MASK)
    17901789    {
    1791         /* Handle compatibility format interrupts. */
    17921790        bool const fIsRemappable = RT_BF_GET(pMsiIn->Addr.au32[0], VTD_BF_REMAPPABLE_MSI_ADDR_INTR_FMT);
    17931791        if (!fIsRemappable)
    17941792        {
     1793            /* Handle compatibility format interrupts. */
    17951794            STAM_COUNTER_INC(&pThis->CTX_SUFF_Z(StatMsiRemapCfi));
    17961795
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