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)
Sun, Mar 9, 9:46 PM
Unknown Object (File)
Sun, Feb 23, 10:48 PM
Unknown Object (File)
Feb 17 2025, 1:01 AM
Unknown Object (File)
Feb 4 2025, 10:27 PM
Unknown Object (File)
Jan 22 2025, 2:24 PM
Unknown Object (File)
Jan 18 2025, 3:12 PM
Unknown Object (File)
Jan 18 2025, 1:34 AM
Unknown Object (File)
Jan 15 2025, 1:11 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