Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-11-10 Thread Stefano Stabellini
On Mon, 31 Oct 2022, Bertrand Marquis wrote: > Hi All, > > > On 30 Oct 2022, at 21:14, Stefano Stabellini wrote: > > > > On Sun, 30 Oct 2022, Julien Grall wrote: > >> Hi Stefano, > >> > >> On 30/10/2022 14:23, Stefano Stabellini wrote: > >>> On Fri, 28 Oct 2022, Julien Grall wrote: > On

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-11-02 Thread Elliott Mitchell
On Wed, Nov 02, 2022 at 08:50:58AM +, Bertrand Marquis wrote: > > > On 1 Nov 2022, at 20:25, Elliott Mitchell wrote: > > > > Allocate a domain Id to each IOMMU domain and this very much seems quite > > similar to Xen's grant tables. I'm unsure the two can be unified, but > > they appear to

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-11-02 Thread Juergen Gross
On 02.11.22 09:50, Bertrand Marquis wrote: Hi Elliott, On 1 Nov 2022, at 20:25, Elliott Mitchell wrote: On Tue, Nov 01, 2022 at 04:30:31PM +, Bertrand Marquis wrote: On 1 Nov 2022, at 15:01, Elliott Mitchell wrote: On Mon, Oct 31, 2022 at 01:26:44PM +, Bertrand Marquis wrote:

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-11-02 Thread Bertrand Marquis
Hi Elliott, > On 1 Nov 2022, at 20:25, Elliott Mitchell wrote: > > On Tue, Nov 01, 2022 at 04:30:31PM +, Bertrand Marquis wrote: >> >>> On 1 Nov 2022, at 15:01, Elliott Mitchell wrote: >>> >>> On Mon, Oct 31, 2022 at 01:26:44PM +, Bertrand Marquis wrote: > On 30 Oct 2022,

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-11-01 Thread Elliott Mitchell
On Tue, Nov 01, 2022 at 04:30:31PM +, Bertrand Marquis wrote: > > > On 1 Nov 2022, at 15:01, Elliott Mitchell wrote: > > > > On Mon, Oct 31, 2022 at 01:26:44PM +, Bertrand Marquis wrote: > >> > >>> On 30 Oct 2022, at 21:14, Stefano Stabellini > >>> wrote: > >>> > >>> Ideally this

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-11-01 Thread Bertrand Marquis
Hi Elliot, > On 1 Nov 2022, at 15:01, Elliott Mitchell wrote: > > On Mon, Oct 31, 2022 at 01:26:44PM +, Bertrand Marquis wrote: >> >>> On 30 Oct 2022, at 21:14, Stefano Stabellini wrote: >>> >>> Ideally this would be something quick that can be easily invoked as the >>> first step of an

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-11-01 Thread Elliott Mitchell
On Mon, Oct 31, 2022 at 01:26:44PM +, Bertrand Marquis wrote: > > > On 30 Oct 2022, at 21:14, Stefano Stabellini wrote: > > > > Ideally this would be something quick that can be easily invoked as the > > first step of an external third-party build process. > > I think that we are making

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-31 Thread Bertrand Marquis
Hi All, > On 30 Oct 2022, at 21:14, Stefano Stabellini wrote: > > On Sun, 30 Oct 2022, Julien Grall wrote: >> Hi Stefano, >> >> On 30/10/2022 14:23, Stefano Stabellini wrote: >>> On Fri, 28 Oct 2022, Julien Grall wrote: On 28/10/2022 14:13, Bertrand Marquis wrote: >> On 28 Oct 2022,

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-30 Thread Stefano Stabellini
On Sun, 30 Oct 2022, Julien Grall wrote: > Hi Stefano, > > On 30/10/2022 14:23, Stefano Stabellini wrote: > > On Fri, 28 Oct 2022, Julien Grall wrote: > > > On 28/10/2022 14:13, Bertrand Marquis wrote: > > > > > On 28 Oct 2022, at 14:06, Julien Grall wrote: > > > > > > > > > > Hi Rahul, > > > >

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-30 Thread Julien Grall
Hi Stefano, On 30/10/2022 14:23, Stefano Stabellini wrote: On Fri, 28 Oct 2022, Julien Grall wrote: On 28/10/2022 14:13, Bertrand Marquis wrote: On 28 Oct 2022, at 14:06, Julien Grall wrote: Hi Rahul, On 28/10/2022 13:54, Rahul Singh wrote: For ACPI, I would have expected the information

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-30 Thread Stefano Stabellini
On Fri, 28 Oct 2022, Julien Grall wrote: > On 28/10/2022 14:13, Bertrand Marquis wrote: > > > On 28 Oct 2022, at 14:06, Julien Grall wrote: > > > > > > Hi Rahul, > > > > > > On 28/10/2022 13:54, Rahul Singh wrote: > > > > > > > > > For ACPI, I would have expected the information to be found in

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Michal Orzel
On 28/10/2022 17:45, Bertrand Marquis wrote: > > > Hi Julien, > >> On 28 Oct 2022, at 16:01, Julien Grall wrote: >> >> >> >> On 28/10/2022 15:37, Bertrand Marquis wrote: >>> Hi Julien, >> >> Hi Bertrand, >> On 28 Oct 2022, at 14:27, Julien Grall wrote: On 28/10/2022

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Bertrand Marquis
Hi Julien, > On 28 Oct 2022, at 16:01, Julien Grall wrote: > > > > On 28/10/2022 15:37, Bertrand Marquis wrote: >> Hi Julien, > > Hi Bertrand, > >>> On 28 Oct 2022, at 14:27, Julien Grall wrote: >>> >>> >>> >>> On 28/10/2022 14:13, Bertrand Marquis wrote: Hi Julien, >>> >>> Hi

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Oleksandr Tyshchenko
On Thu, Oct 27, 2022 at 7:49 PM Rahul Singh wrote: > Hi Oleksandr, > Hello Rahul [sorry for the possible format issues] > > > On 26 Oct 2022, at 7:23 pm, Oleksandr Tyshchenko > wrote: > > > > > > > > On Wed, Oct 26, 2022 at 8:18 PM Michal Orzel > wrote: > > Hi Rahul, > > > > > > Hello all

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Julien Grall
On 28/10/2022 15:37, Bertrand Marquis wrote: Hi Julien, Hi Bertrand, On 28 Oct 2022, at 14:27, Julien Grall wrote: On 28/10/2022 14:13, Bertrand Marquis wrote: Hi Julien, Hi Bertrand, On 28 Oct 2022, at 14:06, Julien Grall wrote: Hi Rahul, On 28/10/2022 13:54, Rahul Singh

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Bertrand Marquis
Hi Julien, > On 28 Oct 2022, at 14:27, Julien Grall wrote: > > > > On 28/10/2022 14:13, Bertrand Marquis wrote: >> Hi Julien, > > Hi Bertrand, > >>> On 28 Oct 2022, at 14:06, Julien Grall wrote: >>> >>> Hi Rahul, >>> >>> On 28/10/2022 13:54, Rahul Singh wrote: > For ACPI, I would

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Julien Grall
On 28/10/2022 14:13, Bertrand Marquis wrote: Hi Julien, Hi Bertrand, On 28 Oct 2022, at 14:06, Julien Grall wrote: Hi Rahul, On 28/10/2022 13:54, Rahul Singh wrote: For ACPI, I would have expected the information to be found in the IOREQ. So can you add more context why this is

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Bertrand Marquis
Hi Julien, > On 28 Oct 2022, at 14:06, Julien Grall wrote: > > Hi Rahul, > > On 28/10/2022 13:54, Rahul Singh wrote: >>> For ACPI, I would have expected the information to be found in the >>> IOREQ. >>> >>> So can you add more context why this is necessary for everyone?

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Julien Grall
Hi Rahul, On 28/10/2022 13:54, Rahul Singh wrote: For ACPI, I would have expected the information to be found in the IOREQ. So can you add more context why this is necessary for everyone? We have information for IOMMU and Master-ID but we don’t have information for linking vMaster-ID to

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-28 Thread Rahul Singh
Hi Julien, > On 27 Oct 2022, at 5:33 pm, Julien Grall wrote: > > On 27/10/2022 17:08, Rahul Singh wrote: >> Hi Julien, > > Hi Rahul, > >>> On 26 Oct 2022, at 8:48 pm, Julien Grall wrote: >>> >>> >>> >>> On 26/10/2022 15:33, Rahul Singh wrote: Hi Julien, >>> >>> Hi Rahul, >>> >

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-27 Thread Michal Orzel
Hi Rahul, On 27/10/2022 18:33, Julien Grall wrote: > > > On 27/10/2022 17:08, Rahul Singh wrote: >> Hi Julien, > > Hi Rahul, > >>> On 26 Oct 2022, at 8:48 pm, Julien Grall wrote: >>> >>> >>> >>> On 26/10/2022 15:33, Rahul Singh wrote: Hi Julien, >>> >>> Hi Rahul, >>> > On 26 Oct

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-27 Thread Rahul Singh
Hi Oleksandr, > On 26 Oct 2022, at 7:23 pm, Oleksandr Tyshchenko wrote: > > > > On Wed, Oct 26, 2022 at 8:18 PM Michal Orzel wrote: > Hi Rahul, > > > Hello all > > [sorry for the possible format issues] > > > On 26/10/2022 16:33, Rahul Singh wrote: > > > > > > Hi Julien, > > > >>

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-27 Thread Julien Grall
On 27/10/2022 17:08, Rahul Singh wrote: Hi Julien, Hi Rahul, On 26 Oct 2022, at 8:48 pm, Julien Grall wrote: On 26/10/2022 15:33, Rahul Singh wrote: Hi Julien, Hi Rahul, On 26 Oct 2022, at 2:36 pm, Julien Grall wrote: On 26/10/2022 14:17, Rahul Singh wrote: Hi All, Hi Rahul,

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-27 Thread Rahul Singh
Hi Michal, > On 26 Oct 2022, at 6:17 pm, Michal Orzel wrote: > > Hi Rahul, > > On 26/10/2022 16:33, Rahul Singh wrote: >> >> >> Hi Julien, >> >>> On 26 Oct 2022, at 2:36 pm, Julien Grall wrote: >>> >>> >>> >>> On 26/10/2022 14:17, Rahul Singh wrote: Hi All, >>> >>> Hi Rahul, >>>

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-27 Thread Rahul Singh
Hi Julien, > On 26 Oct 2022, at 8:48 pm, Julien Grall wrote: > > > > On 26/10/2022 15:33, Rahul Singh wrote: >> Hi Julien, > > Hi Rahul, > >>> On 26 Oct 2022, at 2:36 pm, Julien Grall wrote: >>> >>> >>> >>> On 26/10/2022 14:17, Rahul Singh wrote: Hi All, >>> >>> Hi Rahul, >>>

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-27 Thread Ayan Kumar Halder
On 27/10/2022 10:01, Ayan Kumar Halder wrote: On 26/10/2022 14:17, Rahul Singh wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. Hi All, Hi Rahul, I have a

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-27 Thread Ayan Kumar Halder
On 26/10/2022 14:17, Rahul Singh wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. Hi All, Hi Rahul, I have a very basic question. At Arm, we started to

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-26 Thread Julien Grall
On 26/10/2022 15:33, Rahul Singh wrote: Hi Julien, Hi Rahul, On 26 Oct 2022, at 2:36 pm, Julien Grall wrote: On 26/10/2022 14:17, Rahul Singh wrote: Hi All, Hi Rahul, At Arm, we started to implement the POC to support 2 levels of page tables/nested translation in SMMUv3. To

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-26 Thread Oleksandr Tyshchenko
On Wed, Oct 26, 2022 at 8:18 PM Michal Orzel wrote: > Hi Rahul, > Hello all [sorry for the possible format issues] > > On 26/10/2022 16:33, Rahul Singh wrote: > > > > > > Hi Julien, > > > >> On 26 Oct 2022, at 2:36 pm, Julien Grall wrote: > >> > >> > >> > >> On 26/10/2022 14:17, Rahul

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-26 Thread Michal Orzel
Hi Rahul, On 26/10/2022 16:33, Rahul Singh wrote: > > > Hi Julien, > >> On 26 Oct 2022, at 2:36 pm, Julien Grall wrote: >> >> >> >> On 26/10/2022 14:17, Rahul Singh wrote: >>> Hi All, >> >> Hi Rahul, >> >>> At Arm, we started to implement the POC to support 2 levels of page >>> tables/nested

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-26 Thread Rahul Singh
Hi Julien, > On 26 Oct 2022, at 2:36 pm, Julien Grall wrote: > > > > On 26/10/2022 14:17, Rahul Singh wrote: >> Hi All, > > Hi Rahul, > >> At Arm, we started to implement the POC to support 2 levels of page >> tables/nested translation in SMMUv3. >> To support nested translation for guest

Re: Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-26 Thread Julien Grall
On 26/10/2022 14:17, Rahul Singh wrote: Hi All, Hi Rahul, At Arm, we started to implement the POC to support 2 levels of page tables/nested translation in SMMUv3. To support nested translation for guest OS Xen needs to expose the virtual IOMMU. If we passthrough the device to the guest

Proposal for virtual IOMMU binding b/w vIOMMU and passthrough devices

2022-10-26 Thread Rahul Singh
Hi All, At Arm, we started to implement the POC to support 2 levels of page tables/nested translation in SMMUv3. To support nested translation for guest OS Xen needs to expose the virtual IOMMU. If we passthrough the device to the guest that is behind an IOMMU and virtual IOMMU is enabled for