Messages in this thread | | | Date | Fri, 7 May 2021 08:56:43 -0300 | From | Jason Gunthorpe <> | Subject | Re: [PATCH V4 05/18] iommu/ioasid: Redefine IOASID set and allocation APIs |
| |
On Fri, May 07, 2021 at 07:36:49AM +0000, Tian, Kevin wrote:
> for /dev/ioasid there is still an open whether an process is allowed to > open /dev/ioasid once or multiple times. If there is only one ioasid_fd > per process, the accounting can be made accurately. otherwise the > same problem still exists as each ioasid_fd is akin to the container, then > we need find a better solution.
You can't really do tricks like 'FD once per process' in linux.
The locked page accounting problem is much bigger than vfio and I don't really know of any solution..
Jason
| |