opnsense-src/sys/dev/iommu
Alan Cox 4670f90846 iommu_gas: Eliminate redundant parameters and push down lock acquisition
Since IOMMU map entries store a reference to the domain in which they
reside, there is no need to pass the domain to iommu_gas_free_entry(),
iommu_gas_free_space(), and iommu_gas_free_region().

Push down the acquisition and release of the IOMMU domain lock into
iommu_gas_free_space() and iommu_gas_free_region().

Both of these changes allow for simplifications in the callers of the
functions without really complicating the functions themselves.
Moreover, the latter change eliminates the direct use of the IOMMU
domain lock from the x86-specific DMAR code.

Reviewed by:	kib
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D35995
2022-07-30 14:28:48 -05:00
..
busdma_iommu.c iommu_gas: Eliminate redundant parameters and push down lock acquisition 2022-07-30 14:28:48 -05:00
busdma_iommu.h busdma_iommu: Fine-grained locking for the dmamap's map list 2022-06-25 00:59:23 -05:00
iommu.h iommu_gas: Eliminate redundant parameters and push down lock acquisition 2022-07-30 14:28:48 -05:00
iommu_gas.c iommu_gas: Eliminate redundant parameters and push down lock acquisition 2022-07-30 14:28:48 -05:00
iommu_gas.h iommu_gas: Eliminate a possible case of use-after-free 2022-07-25 11:14:58 -05:00
iommu_msi.h o Add iommu de-initialization method for MSI interface. 2020-10-24 20:09:27 +00:00
iommu_types.h Remove "All Rights Reserved" from FreeBSD Foundation sys/ copyrights 2021-08-08 10:42:24 -04:00