VirtualBox

Changeset 83599 in vbox for trunk/src


Ignore:
Timestamp:
Apr 7, 2020 5:03:28 AM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
137002
Message:

AMD IOMMU: bugref:9654 Use PDMDevHlpPCIRegisterMsi. Doesn't look like MSI is optional for IOMMU, so AssertRCReturn.

File:
1 edited

Legend:

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

    r83590 r83599  
    28712871
    28722872    /* MSI Capability Header register. */
     2873#if 0
    28732874    PDMPciDevSetDWord(pPciDev, offMsiCapHdr,
    28742875                        RT_BF_MAKE(IOMMU_BF_MSI_CAPHDR_CAP_ID,       0x5)             /* RO - Capability ID. */
     
    28782879                      | RT_BF_MAKE(IOMMU_BF_MSI_CAPHDR_MULTMESS_EN,  0x0)             /* RW - MSI multi-message enable */
    28792880                      | RT_BF_MAKE(IOMMU_BF_MSI_CAPHDR_64BIT_EN,     0x1));           /* RO - MSI 64-bit enable */
     2881#else
     2882    PDMMSIREG MsiReg;
     2883    RT_ZERO(MsiReg);
     2884    MsiReg.cMsiVectors    = 1;
     2885    MsiReg.iMsiCapOffset  = offMsiCapHdr;
     2886    MsiReg.iMsiNextOffset = offMsiMapCapHdr;
     2887    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
     2888    AssertRCReturn(rc, rc);
     2889#endif
    28802890
    28812891    /* MSI Address Lo. */
     
    28882898    PDMPciDevSetDWord(pPciDev, offMsiData, 0);                              /* RW - MSI data. */
    28892899
     2900    /** @todo IOMMU: I don't know if we can support this, disable later if required. */
    28902901    /* MSI Mapping Capability Header register. */
    28912902    PDMPciDevSetDWord(pPciDev, offMsiMapCapHdr,
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