Page MenuHomeFreeBSD

AMD-vi: Fortify IVHD device_identify process
ClosedPublic

Authored by khng on Apr 1 2021, 12:13 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 16 2024, 2:47 AM
Unknown Object (File)
Dec 20 2023, 5:07 AM
Unknown Object (File)
Dec 14 2023, 11:30 AM
Unknown Object (File)
Dec 12 2023, 3:56 AM
Unknown Object (File)
Nov 27 2023, 9:48 AM
Unknown Object (File)
Nov 22 2023, 4:27 PM
Unknown Object (File)
Nov 22 2023, 3:28 PM
Unknown Object (File)
Nov 22 2023, 3:26 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 38231
Build 35120: arc lint + arc unit