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 Mon, Jun 02, 2025 at 01:48:57PM -0300, Jason Gunthorpe wrote:
> On Tue, Jun 03, 2025 at 12:25:21AM +0800, Xu Yilun wrote:
> 
> > > Looking at your patch series, I understand the reason you need a vfio
> > > ioctl is to call pci_request_regions_exclusive—is that correct?
> > 
> > The immediate reason is to unbind the TDI before unmapping the BAR.
> 
> Maybe you should just do this directly, require the TSM layer to issue
> an unbind if it gets any requests to change the secure EPT?

The TSM layer won't touch S-EPT, KVM manages S-EPT. 

Similarly IOMMUFD/IOMMU driver manages IOMMUPT. When p2p is
involved, still need to unbind the TDI first then unmap the BAR for
IOMMUPT.

Thanks,
Yilun

> 
> 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