Re: [PATCH v6 3/5] iommu/x86: Add architectural MSI reserved region helper

From: Vasant Hegde

Date: Thu Oct 01 2026 - 08:08:22 EST




On 9/30/2026 7:44 PM, Yu Zhang wrote:
> 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 <zhangyu1@xxxxxxxxxxxxxxxxxxx>
> Reviewed-by: Michael Kelley <mhklinux@xxxxxxxxxxx>
> Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Reviewed-by: Vasant Hegde <vasant.hegde@xxxxxxx>

-Vasant