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)
Wed, Jul 15, 1:05 PM
Unknown Object (File)
Sat, Jul 4, 10:35 AM
Unknown Object (File)
Fri, Jun 26, 10:27 AM
Unknown Object (File)
Fri, Jun 26, 5:26 AM
Unknown Object (File)
Tue, Jun 23, 4:53 PM
Unknown Object (File)
Tue, Jun 23, 7:22 AM
Unknown Object (File)
Jun 16 2026, 9:12 AM
Unknown Object (File)
Jun 2 2026, 1:42 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