diff options
| author | Yu Zhang <zhangyu1@linux.microsoft.com> | 2026-09-30 22:14:07 +0800 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-10-09 10:37:41 +0200 |
| commit | 07f8807ca978f486243e93aa4e85d20df871cd7f (patch) | |
| tree | ab68ffde6a948d98094ec82f902fb3eef5b6efb2 /tools/perf/scripts/python/syscall-counts.py | |
| parent | 118bdac1054628c04c547c2c988bb06ca43677a3 (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 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
