[PATCH 0/3] iommu/vt-d: Use ida for domain ID management

Lu Baolu posted 3 patches 9 months, 3 weeks ago
There is a newer version of this series
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(-)
[PATCH 0/3] iommu/vt-d: Use ida for domain ID management
Posted by Lu Baolu 9 months, 3 weeks ago
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