[PATCH v4 04/28] iommu/io-pgtable-arm: Move selftests to a separate file
Jason Gunthorpe
jgg at ziepe.ca
Mon Sep 15 09:45:17 PDT 2025
On Tue, Aug 19, 2025 at 09:51:32PM +0000, Mostafa Saleh wrote:
> Soon, io-pgtable-arm.c will be compiled as part of the KVM/arm64
> in the hypervisor object, which doesn't have many of the kernel APIs,
> as faux devices, printk...
>
> We would need to factor this things outside of this file, this patch
> moves the selftests outside, which remove many of the kernel
> dependencies, which also is not needed by the hypervisor.
> Create io-pgtable-arm-kernel.c for that, and in the next patch
> the rest of the code is factored out.
Please send this as a stand alone patch, it looks like a good idea.
Also please add the boiler plate to wrap the selftest into a kunit and
use the usual kunit machinery. We alredy have an kunit for
smmuv3, it can just add another file to that.
Jason
More information about the linux-arm-kernel
mailing list