Re: [PATCH v3 5/7] iommu/vt-d: Factor out helpers from domain_context_mapping_one()

From: Jason Gunthorpe
Date: Tue Aug 06 2024 - 13:13:26 EST


On Tue, Aug 06, 2024 at 10:39:39AM +0800, Lu Baolu wrote:
> Extract common code from domain_context_mapping_one() into new helpers,
> making it reusable by other functions such as the upcoming identity domain
> implementation. No intentional functional changes.
>
> Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> ---
> drivers/iommu/intel/iommu.c | 99 ++++++++++++++++++++++---------------
> 1 file changed, 58 insertions(+), 41 deletions(-)

Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx>

Jason