RE: [PATCH v4 02/11] iommufd: Introduce IOMMUFD_OBJ_VIOMMU and its related struct

2024-10-27 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Friday, October 25, 2024 11:24 PM > > On Fri, Oct 25, 2024 at 08:47:40AM +, Tian, Kevin wrote: > > > From: Jason Gunthorpe > > > Sent: Tuesday, October 22, 2024 9:16 PM > > > > > > On Tue, Oct 22, 2024 at 04:59:07PM +0800, Baolu Lu wrote: > > > > > > > Is it f

Re: [PATCH v4 02/11] iommufd: Introduce IOMMUFD_OBJ_VIOMMU and its related struct

2024-10-25 Thread Jason Gunthorpe
On Fri, Oct 25, 2024 at 08:47:40AM +, Tian, Kevin wrote: > > From: Jason Gunthorpe > > Sent: Tuesday, October 22, 2024 9:16 PM > > > > On Tue, Oct 22, 2024 at 04:59:07PM +0800, Baolu Lu wrote: > > > > > Is it feasible to make vIOMMU object more generic, rather than strictly > > > tying it to

RE: [PATCH v4 02/11] iommufd: Introduce IOMMUFD_OBJ_VIOMMU and its related struct

2024-10-25 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Tuesday, October 22, 2024 9:16 PM > > On Tue, Oct 22, 2024 at 04:59:07PM +0800, Baolu Lu wrote: > > > Is it feasible to make vIOMMU object more generic, rather than strictly > > tying it to nested translation? For example, a normal paging domain that > > translate

Re: [PATCH v4 02/11] iommufd: Introduce IOMMUFD_OBJ_VIOMMU and its related struct

2024-10-22 Thread Baolu Lu
On 2024/10/22 21:15, Jason Gunthorpe wrote: On Tue, Oct 22, 2024 at 04:59:07PM +0800, Baolu Lu wrote: Is it feasible to make vIOMMU object more generic, rather than strictly tying it to nested translation? For example, a normal paging domain that translates gPAs to hPAs could also have a vIOMMU

Re: [PATCH v4 02/11] iommufd: Introduce IOMMUFD_OBJ_VIOMMU and its related struct

2024-10-22 Thread Jason Gunthorpe
On Tue, Oct 22, 2024 at 04:59:07PM +0800, Baolu Lu wrote: > Is it feasible to make vIOMMU object more generic, rather than strictly > tying it to nested translation? For example, a normal paging domain that > translates gPAs to hPAs could also have a vIOMMU object associated with > it. > > While

Re: [PATCH v4 02/11] iommufd: Introduce IOMMUFD_OBJ_VIOMMU and its related struct

2024-10-22 Thread Baolu Lu
On 2024/10/22 12:40, Nicolin Chen wrote: On Tue, Oct 22, 2024 at 10:28:30AM +0800, Baolu Lu wrote: On 2024/10/22 8:19, Nicolin Chen wrote: + * @viommu_alloc: Allocate an iommufd_viommu on a physical IOMMU instance behind + *the @dev, as the set of virtualization resources shar

Re: [PATCH v4 02/11] iommufd: Introduce IOMMUFD_OBJ_VIOMMU and its related struct

2024-10-21 Thread Nicolin Chen
On Tue, Oct 22, 2024 at 10:28:30AM +0800, Baolu Lu wrote: > On 2024/10/22 8:19, Nicolin Chen wrote: > > + * @viommu_alloc: Allocate an iommufd_viommu on a physical IOMMU instance > > behind > > + *the @dev, as the set of virtualization resources > > shared/passed > > + *

Re: [PATCH v4 02/11] iommufd: Introduce IOMMUFD_OBJ_VIOMMU and its related struct

2024-10-21 Thread Baolu Lu
On 2024/10/22 8:19, Nicolin Chen wrote: + * @viommu_alloc: Allocate an iommufd_viommu on a physical IOMMU instance behind + *the @dev, as the set of virtualization resources shared/passed + *to user space IOMMU instance. And associate it with a nesting + *