> Intel and AMD IOMMU drivers both reserve the x86 architectural MSI > address window from normal IOVA mappings, but each open-codes the range, > allocation attributes, and insertion into the reserved-region list. > > Add iommu_add_resv_x86_msi_region() to encapsulate those operations, and > convert the Intel and AMD drivers to use it. Return an error on allocation > failure so callers can preserve their existing error paths. > > Signed-off-by: Yu Zhang <[email protected]>
Sashiko has reviewed this patch and found no issues. It looks great! -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=3
