Page MenuHomeFreeBSD

AMD-vi: Fortify IVHD device_identify process
ClosedPublic

Authored by khng on Apr 1 2021, 12:13 AM.
Tags
None
Referenced Files
F174514878: D29525.id87682.diff
Sat, Oct 3, 8:41 PM
Unknown Object (File)
Tue, Sep 29, 4:10 AM
Unknown Object (File)
Sat, Sep 26, 9:32 AM
Unknown Object (File)
Fri, Sep 25, 12:42 PM
Unknown Object (File)
Thu, Sep 24, 7:14 AM
Unknown Object (File)
Fri, Sep 18, 1:57 PM
Unknown Object (File)
Thu, Sep 17, 7:49 PM
Unknown Object (File)
Aug 28 2026, 9:24 PM
Subscribers

Details

Summary
  • Use malloc(9) to allocate ivhd_hdrs list. The previous assumption that there are at most 10 IVHDs in a system is not true. A counter example would be a system with 4 IOMMUs, and each IOMMU is related to IVHDs type 10h, 11h and 40h in the ACPI IVRS table.
  • Always scan through the whole ivhd_hdrs list to find IVHDs that has the same DeviceId but less prioritized IVHD type.

Sponsored by: The FreeBSD Foundation
MFC with: 74ada297e897

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable