Re: [RFC PATCH 3/3] iommufd/tsm: Add tsm_bind/unbind iommufd ioctls

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Jun 03, 2025 at 11:47:33AM +0800, Xu Yilun wrote:

> VFIO doesn't have enough information, but VFIO needs to know about
> bound state. So comes the suggestion [1] that the VFIO uAPI, then VFIO
> reach into iommufd for real bind.
> 
> And my implementation [2] is:
> 
> ioctl(vfio_cdev_fd, VFIO_DEVICE_TSM_BIND)
> -> vfio_iommufd_tsm_bind()
>    -> iommufd_device_tsm_bind()
>       -> iommufd_vdevice_tsm_bind()
>          -> pci_tsm_bind()

This doesn't work, logically you are binding the vdevice, not the
idevice, the uapi should provide the vdevice id, which VFIO doesn't
have.

If you really need vfio involvement then you need callbacks, I think.

Jason




[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux