VirtualBox

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


Ignore:
Timestamp:
Aug 19, 2020 7:46:35 AM (4 years ago)
Author:
vboxsync
Message:

AMD IOMMU: bugref:9654 PDMDevHlpPCIRegisterMsi must be called -after- PDMDevHlpPCIRegister.

File:
1 edited

Legend:

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

    r85815 r85825  
    59625962    MsiReg.iMsiNextOffset = 0; /* IOMMU_PCI_OFF_MSI_MAP_CAP_HDR */
    59635963    MsiReg.fMsi64bit      = 1; /* 64-bit addressing support is mandatory; See AMD spec. 2.8 "IOMMU Interrupt Support". */
    5964     rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
    5965     AssertRCReturn(rc, rc);
    59665964
    59675965    /* MSI Address (Lo, Hi) and MSI data are read-write PCI config registers handled by our generic PCI config space code. */
     
    59935991    rc = PDMDevHlpPCIRegister(pDevIns, pPciDev);
    59945992    AssertLogRelRCReturn(rc, rc);
     5993
     5994    /*
     5995     * Register MSI support for the PCI device.
     5996     * This must be done -after- register it as a PCI device!
     5997     */
     5998    rc = PDMDevHlpPCIRegisterMsi(pDevIns, &MsiReg);
     5999    AssertRCReturn(rc, rc);
    59956000
    59966001    /*
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