Re: [PATCH RFC PREVIEW 0/6] iommu: enable user space iopfs in non-nested and non-svm cases
From: Jason Gunthorpe
Date: Wed Sep 04 2024 - 12:14:29 EST
On Mon, Sep 02, 2024 at 12:48:19PM +0200, Joel Granados wrote:
> > > Supplementary repositories supporting this patchset:
> > > 1. A user space library libvfn [1] which is used for testing and
> > > verification (see examples/iopf.c), and
> >
> > That's pretty neat, I've been wanting to see some kind of IOMMU test
> > suite based around a capable widely available device. This is the
> > closest I've seen..
>
> Yes! This is an obvious application of libvfn. Do you see it as a
> something that can be included in tools/selftests/iommu?
Maybe? What would it look like in-kernel?
I've been thinking the same thing with mlx5
Maybe some kind of test runner with a plugin driver that has some kind
of 'do dma', 'generate interrupt', etc sort of operations, IDK.
Jason