Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Nicolin Chen
On Fri, Aug 09, 2024 at 07:49:10PM -0300, Jason Gunthorpe wrote: > On Fri, Aug 09, 2024 at 12:18:42PM -0700, Nicolin Chen wrote: > > > > The bigger issue is that we still have the hypervisor GIC driver > > > controlling things and it will need to know to use the guest provided > > > MSI address ca

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Jason Gunthorpe
On Fri, Aug 09, 2024 at 08:00:34AM +, Tian, Kevin wrote: > > - IOMMUFD should provide VMM a way to tell the gPA (or directly + > > GITS_TRANSLATER?). Then kernel should do the stage-2 mapping. I > > have talked to Jason about this a while ago, and we have a few > > thoughts how to implem

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Jason Gunthorpe
On Fri, Aug 09, 2024 at 12:18:42PM -0700, Nicolin Chen wrote: > > The bigger issue is that we still have the hypervisor GIC driver > > controlling things and it will need to know to use the guest provided > > MSI address captured during the MSI trap, not its own address. I don't > > have an idea h

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Nicolin Chen
On Fri, Aug 09, 2024 at 06:43:47PM +0100, Robin Murphy wrote: > On 2024-08-09 9:00 am, Tian, Kevin wrote: > > > From: Nicolin Chen > > > Sent: Friday, August 9, 2024 7:00 AM > > > > > > On Thu, Aug 08, 2024 at 01:38:44PM +0100, Robin Murphy wrote: > > > > On 06/08/2024 9:25 am, Tian, Kevin wrote:

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Nicolin Chen
On Fri, Aug 09, 2024 at 03:41:36PM -0300, Jason Gunthorpe wrote: > On Thu, Aug 08, 2024 at 01:38:44PM +0100, Robin Murphy wrote: > > On 06/08/2024 9:25 am, Tian, Kevin wrote: > > > > From: Nicolin Chen > > > > Sent: Saturday, August 3, 2024 8:32 AM > > > > > > > > From: Robin Murphy > > > > > >

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Jason Gunthorpe
On Thu, Aug 08, 2024 at 01:38:44PM +0100, Robin Murphy wrote: > On 06/08/2024 9:25 am, Tian, Kevin wrote: > > > From: Nicolin Chen > > > Sent: Saturday, August 3, 2024 8:32 AM > > > > > > From: Robin Murphy > > > > > > Currently, iommu-dma is the only place outside of IOMMUFD and drivers > > >

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Robin Murphy
On 2024-08-09 9:00 am, Tian, Kevin wrote: From: Nicolin Chen Sent: Friday, August 9, 2024 7:00 AM On Thu, Aug 08, 2024 at 01:38:44PM +0100, Robin Murphy wrote: On 06/08/2024 9:25 am, Tian, Kevin wrote: From: Nicolin Chen Sent: Saturday, August 3, 2024 8:32 AM From: Robin Murphy Currently,

RE: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Friday, August 9, 2024 7:00 AM > > On Thu, Aug 08, 2024 at 01:38:44PM +0100, Robin Murphy wrote: > > On 06/08/2024 9:25 am, Tian, Kevin wrote: > > > > From: Nicolin Chen > > > > Sent: Saturday, August 3, 2024 8:32 AM > > > > > > > > From: Robin Murphy > > > > > > >

RE: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-09 Thread Tian, Kevin
> From: Robin Murphy > Sent: Thursday, August 8, 2024 8:39 PM > > On 06/08/2024 9:25 am, Tian, Kevin wrote: > >> From: Nicolin Chen > >> Sent: Saturday, August 3, 2024 8:32 AM > >> > >> From: Robin Murphy > >> > >> Currently, iommu-dma is the only place outside of IOMMUFD and drivers > >> which

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-08 Thread Nicolin Chen
On Thu, Aug 08, 2024 at 01:38:44PM +0100, Robin Murphy wrote: > On 06/08/2024 9:25 am, Tian, Kevin wrote: > > > From: Nicolin Chen > > > Sent: Saturday, August 3, 2024 8:32 AM > > > > > > From: Robin Murphy > > > > > > Currently, iommu-dma is the only place outside of IOMMUFD and drivers > > >

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-08 Thread Robin Murphy
On 06/08/2024 9:25 am, Tian, Kevin wrote: From: Nicolin Chen Sent: Saturday, August 3, 2024 8:32 AM From: Robin Murphy Currently, iommu-dma is the only place outside of IOMMUFD and drivers which might need to be aware of the stage 2 domain encapsulated within a nested domain. This would be in

Re: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-06 Thread Nicolin Chen
On Tue, Aug 06, 2024 at 08:25:33AM +, Tian, Kevin wrote: > > From: Nicolin Chen > > Sent: Saturday, August 3, 2024 8:32 AM > > > > From: Robin Murphy > > > > Currently, iommu-dma is the only place outside of IOMMUFD and drivers > > which might need to be aware of the stage 2 domain encapsulat

RE: [PATCH v2 2/3] iommu/dma: Support MSIs through nested domains

2024-08-06 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Saturday, August 3, 2024 8:32 AM > > From: Robin Murphy > > Currently, iommu-dma is the only place outside of IOMMUFD and drivers > which might need to be aware of the stage 2 domain encapsulated within > a nested domain. This would be in the legacy-VFIO-style case