This converts the Intel iommu driver's domain ID management from a
fixed-size bitmap to the dynamic ida allocator. This improves memory
efficiency by only allocating resources for the domain IDs actually in
use, rather than the maximum possible number.
The also includes necessary cleanups after the ida conversion, including
locking adjustment for the ida and code simplification.
Please review and comment.
Lu Baolu (3):
iommu/vt-d: Use ida to manage domain id
iommu/vt-d: Replace spin_lock with mutex to protect domain ida
iommu/vt-d: Simplify domain_attach_iommu()
drivers/iommu/intel/dmar.c | 3 +
drivers/iommu/intel/iommu.c | 113 ++++++++----------------------------
drivers/iommu/intel/iommu.h | 20 +++++--
3 files changed, 44 insertions(+), 92 deletions(-)
--
2.43.0