[PATCH v6 07/16] iommufd: Prepare software MSI installation for address lists

Andrew Jones andrew.jones at oss.qualcomm.com
Mon Sep 28 03:23:00 PDT 2026


On Fri, Sep 25, 2026 at 05:16:50PM +0200, Andrew Jones wrote:
> Teach the software MSI path to install every mapping in an address list
> before publishing newly allocated maps. Mark the complete list as
> required by the group and roll back mappings installed by a failed
> operation.
> 
> Keep iommufd_sw_msi() as a one-address wrapper so existing callers
> retain their current behavior.
> 
> Signed-off-by: Andrew Jones <andrew.jones at oss.qualcomm.com>
> Tested-by: Fangyu Yu <fangyu.yu at linux.alibaba.com>
> ---
>  drivers/iommu/iommufd/driver.c | 101 +++++++++++++++++++++++----------
>  1 file changed, 72 insertions(+), 29 deletions(-)
>

Regarding the Sashiko finding for this patch. It's complaining about the
mixing of goto and cleanup helpers in the same function. However, there
is already precedent for that type of mixing in iommufd, so I'm inclined
to leave it unless somebody other than Sashiko shouts.

Thanks,
drew



More information about the linux-riscv mailing list