Re: [RFC PATCH 2/5] iommu/vt-d: Add generic IO page table support

From: Jason Gunthorpe
Date: Mon Nov 06 2023 - 14:32:41 EST


On Mon, Nov 06, 2023 at 02:12:23AM -0500, Tina Zhang wrote:
> Add basic hook up code to implement generic IO page table framework.
>
> Signed-off-by: Tina Zhang <tina.zhang@xxxxxxxxx>
> ---
> drivers/iommu/intel/Kconfig | 1 +
> drivers/iommu/intel/iommu.c | 94 +++++++++++++++++++++++++++++++++++++
> drivers/iommu/intel/iommu.h | 7 +++
> drivers/iommu/io-pgtable.c | 3 ++
> include/linux/io-pgtable.h | 2 +
> 5 files changed, 107 insertions(+)

If this is going to happen can we also convert vt-d to actually use
the io page table stuff directly and shuffle the code around so it is
structured like the rest of the io page table implementations?

Jason