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

2018-09-06 Thread Jean-Philippe Brucker
On 05/09/2018 14:23, Auger Eric wrote: >> + * If the driver intends to share process address spaces, it should pass a >> valid >> + * @mm_exit handler. Otherwise @mm_exit can be NULL. > I don't get case where mm_exit is allowed to be NULL. Right, this comment is a bit premature. Next version adds

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

2018-09-05 Thread Auger Eric
Hi Jean-Philippe, On 05/11/2018 09:06 PM, Jean-Philippe Brucker wrote: > 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 sva_param structure attached to struct > dev

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

2018-05-11 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 sva_param structure attached to struct device. Signed-off-by: Jean-Philippe Brucker --- v1->v2: use iommu_sva_device_in