summaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2023-05-11 01:42:11 -0300
committerJoerg Roedel <jroedel@suse.de>2023-05-23 08:15:56 +0200
commitfcbb0a4d738ce3ccc06d2c73ba227cce5094d885 (patch)
tree52e67d0f4c116c0771fab2b57175c8761c7cc848 /scripts/generate_rust_analyzer.py
parent8b4eb75ee50e6f4606f88debf44aeb47937057d4 (diff)
downloadlwn-fcbb0a4d738ce3ccc06d2c73ba227cce5094d885.tar.gz
lwn-fcbb0a4d738ce3ccc06d2c73ba227cce5094d885.zip
iommu: Revise iommu_group_alloc_default_domain()
Robin points out that the fallback to guessing what domains the driver supports should only happen if the driver doesn't return a preference from its ops->def_domain_type(). Re-organize iommu_group_alloc_default_domain() so it internally uses iommu_def_domain_type only during the fallback and makes it clearer how the fallback sequence works. Make iommu_group_alloc_default_domain() return the domain so the return based logic is cleaner and to prepare for the next patch. Remove the iommu_alloc_default_domain() function as it is now trivially just calling iommu_group_alloc_default_domain(). Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Tested-by: Heiko Stuebner <heiko@sntech.de> Tested-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/13-v5-1b99ae392328+44574-iommu_err_unwind_jgg@nvidia.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions