Re: [PATCH v8 2/4] iommufd: Add iommufd_access_replace() API

From: Jason Gunthorpe
Date: Fri Jul 28 2023 - 08:28:19 EST


On Fri, Jul 28, 2023 at 06:20:56AM +0000, Tian, Kevin wrote:

> But this does imply inconsistent behavior between success and failure.
> Not sure whether it's worth a fix e.g. introducing another notifier for
> mdev drivers to re-pin...

After unmap drivers should re-establish their DMA mappings when they
are next required. It is a mdev driver bug if they don't do this..

Jason