Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-03-02 Thread Jean-Philippe Brucker
On 01/03/18 03:03, Liu, Yi L wrote: > Hi Jean, > >> From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] >> Sent: Thursday, February 15, 2018 8:41 PM >> Subject: Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices >> >> On 13/02/18

Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-03-02 Thread Jean-Philippe Brucker
On 28/02/18 20:34, Sinan Kaya wrote: > On 2/12/2018 1:33 PM, Jean-Philippe Brucker wrote: >> +int iommu_sva_unbind_group(struct iommu_group *group, int pasid) >> +{ >> +struct group_device *device; >> + >> +mutex_lock(>mutex); >> +list_for_each_entry(device, >devices, list) >> +

RE: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-28 Thread Liu, Yi L
Hi Jean, > From: Jean-Philippe Brucker [mailto:jean-philippe.bruc...@arm.com] > Sent: Thursday, February 15, 2018 8:41 PM > Subject: Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices > > On 13/02/18 23:34, Tian, Kevin wrote: > >> From: Jean-Philippe Br

Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-28 Thread Sinan Kaya
On 2/12/2018 1:33 PM, Jean-Philippe Brucker wrote: > +int iommu_sva_unbind_group(struct iommu_group *group, int pasid) > +{ > + struct group_device *device; > + > + mutex_lock(>mutex); > + list_for_each_entry(device, >devices, list) > + iommu_sva_unbind_device(device->dev,

Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-15 Thread Jean-Philippe Brucker
On 15/02/18 10:21, j...@8bytes.org wrote: > On Tue, Feb 13, 2018 at 12:57:23PM +, Jean-Philippe Brucker wrote: >> * bind_device() fails if the device's group has more than one device, >> otherwise calls __bind_device(). This prevents device drivers that are >> oblivious to IOMMU groups from

Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-15 Thread Jean-Philippe Brucker
On 13/02/18 23:34, Tian, Kevin wrote: >> From: Jean-Philippe Brucker >> Sent: Tuesday, February 13, 2018 8:57 PM >> >> On 13/02/18 07:54, Tian, Kevin wrote: From: Jean-Philippe Brucker Sent: Tuesday, February 13, 2018 2:33 AM Add bind() and unbind() operations to the IOMMU API.

Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-15 Thread Christian K├Ânig
Am 15.02.2018 um 11:21 schrieb j...@8bytes.org: On Tue, Feb 13, 2018 at 12:57:23PM +, Jean-Philippe Brucker wrote: * bind_device() fails if the device's group has more than one device, otherwise calls __bind_device(). This prevents device drivers that are oblivious to IOMMU groups from

Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-15 Thread j...@8bytes.org
On Tue, Feb 13, 2018 at 12:57:23PM +, Jean-Philippe Brucker wrote: > * bind_device() fails if the device's group has more than one device, > otherwise calls __bind_device(). This prevents device drivers that are > oblivious to IOMMU groups from opening a backdoor. > > * bind_group() calls

RE: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-13 Thread Tian, Kevin
> From: Jean-Philippe Brucker > Sent: Tuesday, February 13, 2018 8:57 PM > > On 13/02/18 07:54, Tian, Kevin wrote: > >> From: Jean-Philippe Brucker > >> Sent: Tuesday, February 13, 2018 2:33 AM > >> > >> Add bind() and unbind() operations to the IOMMU API. Device drivers > can > >> use them to

Re: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-13 Thread Jean-Philippe Brucker
On 13/02/18 07:54, Tian, Kevin wrote: >> From: Jean-Philippe Brucker >> Sent: Tuesday, February 13, 2018 2:33 AM >> >> Add bind() and unbind() operations to the IOMMU API. Device drivers can >> use them to share process page tables with their devices. bind_group() >> is provided for VFIO's

RE: [PATCH 02/37] iommu/sva: Bind process address spaces to devices

2018-02-12 Thread Tian, Kevin
> From: Jean-Philippe Brucker > Sent: Tuesday, February 13, 2018 2:33 AM > > Add bind() and unbind() operations to the IOMMU API. Device drivers can > use them to share process page tables with their devices. bind_group() > is provided for VFIO's convenience, as it needs to provide a coherent >