RE: [RFC 11/20] iommu/iommufd: Add IOMMU_IOASID_ALLOC/FREE

2021-10-26 Thread Tian, Kevin
> From: David Gibson > Sent: Monday, October 25, 2021 1:05 PM > > > > > For above cases a [base, max] hint can be provided by the user per > > > > Jason's recommendation. > > > > > > Provided at which stage? > > > > IOMMU_IOASID_ALLOC > > Ok. I have mixed thoughts on this. Doing this at ALLOC

RE: [RFC 10/20] iommu/iommufd: Add IOMMU_DEVICE_GET_INFO

2021-10-26 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Tuesday, October 26, 2021 7:35 AM > > On Fri, Oct 22, 2021 at 03:08:06AM +, Tian, Kevin wrote: > > > > I have no idea what security model makes sense for wbinvd, that is the > > > major question you have to answer. > > > > wbinvd flushes the entire cache in

Re: [RFC 13/20] iommu: Extend iommu_at[de]tach_device() for multiple devices group

2021-10-26 Thread David Gibson
On Mon, Oct 25, 2021 at 08:36:02PM -0300, Jason Gunthorpe wrote: > On Tue, Oct 26, 2021 at 12:16:43AM +1100, David Gibson wrote: > > If you attach devices A and B (both in group X) to IOAS 1, then detach > > device A, what happens? Do you detach both devices? Or do you have a > > counter so you