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

Jason Gunthorpe
2025-05-06T16:27:11Z

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