[PATCH v4 2/4] iommu/io-pgtable-arm: Move selftests to a separate file
Jason Gunthorpe
jgg at ziepe.ca
Mon Sep 22 06:30:33 PDT 2025
On Mon, Sep 22, 2025 at 08:59:26AM +0000, Mostafa Saleh wrote:
> Clean up the io-pgtable-arm library by moving the selftests out.
> Next the tests will be registered with kunit.
>
> This is useful also to factor out kernel specific code out, so
> it can compiled as part of the hypervisor object.
>
> Signed-off-by: Mostafa Saleh <smostafa at google.com>
> ---
> drivers/iommu/Makefile | 1 +
> drivers/iommu/io-pgtable-arm-selftests.c | 208 +++++++++++++++++++++++
> drivers/iommu/io-pgtable-arm.c | 200 ----------------------
> 3 files changed, 209 insertions(+), 200 deletions(-)
> create mode 100644 drivers/iommu/io-pgtable-arm-selftests.c
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Jason
More information about the linux-arm-kernel
mailing list