Re: [PATCH 04/37] iommu/sva: Add a mm_exit callback for device drivers

2018-02-13 Thread Jean-Philippe Brucker
On 13/02/18 08:11, Tian, Kevin wrote: >> From: Jean-Philippe Brucker >> Sent: Tuesday, February 13, 2018 2:33 AM >> >> When an mm exits, devices that were bound to it must stop performing >> DMA >> on its PASID. Let device drivers register a callback to be notified on mm >> exit. Add the callback t

RE: [PATCH 04/37] iommu/sva: Add a mm_exit callback for device drivers

2018-02-13 Thread Tian, Kevin
> From: Jean-Philippe Brucker > Sent: Tuesday, February 13, 2018 2:33 AM > > When an mm exits, devices that were bound to it must stop performing > DMA > on its PASID. Let device drivers register a callback to be notified on mm > exit. Add the callback to the iommu_param structure attached to stru

[PATCH 04/37] iommu/sva: Add a mm_exit callback for device drivers

2018-02-12 Thread Jean-Philippe Brucker
When an mm exits, devices that were bound to it must stop performing DMA on its PASID. Let device drivers register a callback to be notified on mm exit. Add the callback to the iommu_param structure attached to struct device. Signed-off-by: Jean-Philippe Brucker --- drivers/iommu/iommu-sva.c | 5