[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <2cc8a047-5453-44f1-839e-62425e1ca239@linux.intel.com>
Date: Mon, 12 May 2025 14:37:58 +0800
From: Baolu Lu <baolu.lu@...ux.intel.com>
To: Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>, Jason Gunthorpe <jgg@...pe.ca>,
Kevin Tian <kevin.tian@...el.com>
Cc: iommu@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 0/2] iommu/vt-d: Use ida for domain ID management
On 4/30/25 10:11, Lu Baolu wrote:
> 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.
>
> ---
> Change log:
> v2:
> - Drop the last patch which simplified the code with __free(). There
> needs a helper like xa_store_or_{reset,kfree}(). Thus I plan to put
> it a separated series with broader reviewers.
>
> v1:https://lore.kernel.org/linux-iommu/20250423031020.2189546-1-
> baolu.lu@...ux.intel.com/
>
> Lu Baolu (2):
> iommu/vt-d: Use ida to manage domain id
> iommu/vt-d: Replace spin_lock with mutex to protect domain ida
Queued for v6.16-rc1.
Powered by blists - more mailing lists