diff options
author | Jason Gunthorpe <jgg@nvidia.com> | 2025-07-14 12:50:26 +0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2025-07-14 11:18:04 +0100 |
commit | 85cfaacc99377a63e47412eeef66eff77197acea (patch) | |
tree | b4d1bef3a121add56e0fa870a11a00a656a79ec4 /scripts/lib/kdoc/kdoc_re.py | |
parent | 0fa6f0893466c9fc0a149d215cfcee760e41cb00 (diff) |
iommu/vt-d: Split paging_domain_compatible()
Make First/Second stage specific functions that follow the same pattern in
intel_iommu_domain_alloc_first/second_stage() for computing
EOPNOTSUPP. This makes the code easier to understand as if we couldn't
create a domain with the parameters for this IOMMU instance then we
certainly are not compatible with it.
Check superpage support directly against the per-stage cap bits and the
pgsize_bitmap.
Add a note that the force_snooping is read without locking. The locking
needs to cover the compatible check and the add of the device to the list.
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/7-v3-dbbe6f7e7ae3+124ffe-vtd_prep_jgg@nvidia.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20250714045028.958850-10-baolu.lu@linux.intel.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_re.py')
0 files changed, 0 insertions, 0 deletions