[PATCH v2 13/22] iommufd: Add mmap interface

Jason Gunthorpe jgg at nvidia.com
Tue May 6 05:55:35 PDT 2025


On Tue, May 06, 2025 at 09:22:55AM +0000, Tian, Kevin wrote:

> what Nicoline proposed in v3 adopts a similar policy. So it kind of
> makes sense to me, except that we should not return -EBUSY in 
> vIOMMU destroy ioctl. Instead, just decrement the reference.

It forces the userspace to unmap the vmas before it can destroy things
which is not so nice when it is easy enough to fix up on the kernel
side..

Jason



More information about the linux-arm-kernel mailing list