Re: [PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-04-15 Thread Jean-Philippe Brucker
On Mon, Apr 13, 2020 at 03:06:31PM -0700, Jacob Pan wrote: > > > > But quotas are only necessary for VMs, when the host shares the > > > > PASID space with them (which isn't a use-case for Arm systems as > > > > far as I know, each VM gets its own PASID space). > > > Is there a host-guest PASID

Re: [PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-04-13 Thread Jacob Pan
Hi Jean, Sorry for the delay, I have to do some research based on your feedback. I also plan to document this in the next version. On Tue, 7 Apr 2020 13:01:46 +0200 Jean-Philippe Brucker wrote: > On Mon, Apr 06, 2020 at 08:33:53AM -0700, Jacob Pan wrote: > > Hi Jean, > > > > On Wed, 1 Apr

Re: [PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-04-07 Thread Jean-Philippe Brucker
On Mon, Apr 06, 2020 at 08:33:53AM -0700, Jacob Pan wrote: > Hi Jean, > > On Wed, 1 Apr 2020 15:53:16 +0200 > Jean-Philippe Brucker wrote: > > > On Wed, Mar 25, 2020 at 10:55:26AM -0700, Jacob Pan wrote: > > > Bare metal SVA allocates IOASIDs for native process addresses. This > > > should be

Re: [PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-04-06 Thread Jacob Pan
Hi Jean, On Wed, 1 Apr 2020 15:53:16 +0200 Jean-Philippe Brucker wrote: > On Wed, Mar 25, 2020 at 10:55:26AM -0700, Jacob Pan wrote: > > Bare metal SVA allocates IOASIDs for native process addresses. This > > should be separated from VM allocated IOASIDs thus under its own > > set. > > > >

Re: [PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-04-01 Thread Jean-Philippe Brucker
On Wed, Mar 25, 2020 at 10:55:26AM -0700, Jacob Pan wrote: > Bare metal SVA allocates IOASIDs for native process addresses. This > should be separated from VM allocated IOASIDs thus under its own set. > > This patch creates a system IOASID set with its quota set to PID_MAX. > This is a reasonable

RE: [PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-03-28 Thread Tian, Kevin
> From: Jacob Pan > Sent: Saturday, March 28, 2020 1:29 AM > > On Fri, 27 Mar 2020 09:41:55 + > "Tian, Kevin" wrote: > > > > From: Jacob Pan > > > Sent: Thursday, March 26, 2020 1:55 AM > > > > > > Bare metal SVA allocates IOASIDs for native process addresses. This > > > should be

Re: [PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-03-27 Thread Jacob Pan
On Fri, 27 Mar 2020 09:41:55 + "Tian, Kevin" wrote: > > From: Jacob Pan > > Sent: Thursday, March 26, 2020 1:55 AM > > > > Bare metal SVA allocates IOASIDs for native process addresses. This > > should be separated from VM allocated IOASIDs thus under its own > > set. > > A curious

RE: [PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-03-27 Thread Tian, Kevin
> From: Jacob Pan > Sent: Thursday, March 26, 2020 1:55 AM > > Bare metal SVA allocates IOASIDs for native process addresses. This > should be separated from VM allocated IOASIDs thus under its own set. A curious question. Now bare metal SVA uses the system set and guest SVA uses

[PATCH 05/10] iommu/ioasid: Create an IOASID set for host SVA use

2020-03-25 Thread Jacob Pan
Bare metal SVA allocates IOASIDs for native process addresses. This should be separated from VM allocated IOASIDs thus under its own set. This patch creates a system IOASID set with its quota set to PID_MAX. This is a reasonable default in that SVM capable devices can only bind to limited user