summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorYu Zhang <zhangyu1@linux.microsoft.com>2026-09-30 22:14:07 +0800
committerJoerg Roedel <joerg.roedel@amd.com>2026-10-09 10:37:41 +0200
commit07f8807ca978f486243e93aa4e85d20df871cd7f (patch)
treeab68ffde6a948d98094ec82f902fb3eef5b6efb2 /rust/kernel
parent118bdac1054628c04c547c2c988bb06ca43677a3 (diff)
iommu/x86: Add architectural MSI reserved region helper
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@linux.microsoft.com> Reviewed-by: Michael Kelley <mhklinux@outlook.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Vasant Hegde <vasant.hegde@amd.com> Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions