Re: [PATCH v4 11/22] iommu: Introduce guest PASID bind function

2019-08-05 Thread Jacob Pan
On Tue, 16 Jul 2019 18:44:56 +0200 Auger Eric wrote: > > +struct gpasid_bind_data { > other structs in iommu.h are prefixed with iommu_? Good point, will add iommu_ prefix. Thanks, Jacob ___ iommu mailing list iommu@lists.linux-foundation.org https:

Re: [PATCH v4 11/22] iommu: Introduce guest PASID bind function

2019-08-05 Thread Jacob Pan
On Tue, 16 Jul 2019 18:44:56 +0200 Auger Eric wrote: > Hi Jacob, > > On 6/9/19 3:44 PM, Jacob Pan wrote: > > Guest shared virtual address (SVA) may require host to shadow guest > > PASID tables. Guest PASID can also be allocated from the host via > > enlightened interfaces. In this case, guest n

Re: [PATCH v4 11/22] iommu: Introduce guest PASID bind function

2019-07-16 Thread Auger Eric
Hi Jacob, On 6/9/19 3:44 PM, Jacob Pan wrote: > Guest shared virtual address (SVA) may require host to shadow guest > PASID tables. Guest PASID can also be allocated from the host via > enlightened interfaces. In this case, guest needs to bind the guest > mm, i.e. cr3 in guest physical address to

Re: [PATCH v4 11/22] iommu: Introduce guest PASID bind function

2019-06-24 Thread Jacob Pan
On Tue, 18 Jun 2019 16:36:33 +0100 Jean-Philippe Brucker wrote: > On 09/06/2019 14:44, Jacob Pan wrote: > > Guest shared virtual address (SVA) may require host to shadow guest > > PASID tables. Guest PASID can also be allocated from the host via > > enlightened interfaces. In this case, guest nee

Re: [PATCH v4 11/22] iommu: Introduce guest PASID bind function

2019-06-18 Thread Jean-Philippe Brucker
On 09/06/2019 14:44, Jacob Pan wrote: > Guest shared virtual address (SVA) may require host to shadow guest > PASID tables. Guest PASID can also be allocated from the host via > enlightened interfaces. In this case, guest needs to bind the guest > mm, i.e. cr3 in guest physical address to the actua

[PATCH v4 11/22] iommu: Introduce guest PASID bind function

2019-06-09 Thread Jacob Pan
Guest shared virtual address (SVA) may require host to shadow guest PASID tables. Guest PASID can also be allocated from the host via enlightened interfaces. In this case, guest needs to bind the guest mm, i.e. cr3 in guest physical address to the actual PASID table in the host IOMMU. Nesting will