Re: [PATCH 0/7] iommu cleanup and refactoring

2022-02-07 Thread Lu Baolu
On 1/24/22 3:10 PM, Lu Baolu wrote: Hi, The guest pasid and aux-domain related code are dead code in current iommu subtree. As we have reached a consensus that all these features should be based on the new iommufd framework (which is under active development), the first part of this series

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-26 Thread Robin Murphy
On 2022-01-26 13:27, Jason Gunthorpe via iommu wrote: On Wed, Jan 26, 2022 at 09:51:36AM +0800, Lu Baolu wrote: they are fundamentally different things in their own right, and the ideal API should give us the orthogonality to also bind a device to an SVA domain without PASID (e.g. for KVM

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-26 Thread Jason Gunthorpe via iommu
On Wed, Jan 26, 2022 at 09:51:36AM +0800, Lu Baolu wrote: > > > they are fundamentally different things in their own right, and the ideal > > > API should give us the orthogonality to also bind a device to an SVA > > > domain > > > without PASID (e.g. for KVM stage 2, or userspace assignment of

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-25 Thread Lu Baolu
On 1/25/22 11:16 PM, Jason Gunthorpe wrote: On Tue, Jan 25, 2022 at 02:48:02PM +, Robin Murphy wrote: Agreed, certainly an IOMMU_DOMAIN_SVA type that can both encapsulate the mm and effectively replace iommu_sva seems like a logical and fairly small next step. We already have the

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-25 Thread Jason Gunthorpe via iommu
On Tue, Jan 25, 2022 at 02:48:02PM +, Robin Murphy wrote: > Agreed, certainly an IOMMU_DOMAIN_SVA type that can both encapsulate the mm > and effectively replace iommu_sva seems like a logical and fairly small next > step. We already have the paradigm of different domain types supporting >

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-25 Thread Robin Murphy
On 2022-01-24 17:44, Jason Gunthorpe wrote: On Mon, Jan 24, 2022 at 09:46:26AM +, Tian, Kevin wrote: From: Lu Baolu Sent: Monday, January 24, 2022 3:11 PM Hi, The guest pasid and aux-domain related code are dead code in current iommu subtree. As we have reached a consensus that all these

RE: [PATCH 0/7] iommu cleanup and refactoring

2022-01-24 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Tuesday, January 25, 2022 1:44 AM > > On Mon, Jan 24, 2022 at 09:46:26AM +, Tian, Kevin wrote: > > > From: Lu Baolu > > > Sent: Monday, January 24, 2022 3:11 PM > > > > > > Hi, > > > > > > The guest pasid and aux-domain related code are dead code in current >

Re: [PATCH 0/7] iommu cleanup and refactoring

2022-01-24 Thread Jason Gunthorpe via iommu
On Mon, Jan 24, 2022 at 09:46:26AM +, Tian, Kevin wrote: > > From: Lu Baolu > > Sent: Monday, January 24, 2022 3:11 PM > > > > Hi, > > > > The guest pasid and aux-domain related code are dead code in current > > iommu subtree. As we have reached a consensus that all these features > >

RE: [PATCH 0/7] iommu cleanup and refactoring

2022-01-24 Thread Tian, Kevin
> From: Lu Baolu > Sent: Monday, January 24, 2022 3:11 PM > > Hi, > > The guest pasid and aux-domain related code are dead code in current > iommu subtree. As we have reached a consensus that all these features > should be based on the new iommufd framework (which is under active >

[PATCH 0/7] iommu cleanup and refactoring

2022-01-23 Thread Lu Baolu
Hi, The guest pasid and aux-domain related code are dead code in current iommu subtree. As we have reached a consensus that all these features should be based on the new iommufd framework (which is under active development), the first part of this series removes and cleanups all the dead code.