Re: [PATCH v4 6/7] iommu: Introduce iommu_dev_reset_prepare() and iommu_dev_reset_done()

Nicolin Chen
2025-09-22T19:40:11Z

On Fri, Sep 12, 2025 at 09:49:13AM +0000, Tian, Kevin wrote:
> given it impacts uAPI:
>
> - now attach/replace can be done anytime
> - with this series attach/replace is rejected when a device is being reset
> - later with compat testing ops attach/replace can be done again at
> any time
>
> we should be cautious here, especially if this series goes into 6.18 (likely
> the next LTS version) the interim behavior change may last long. yes
> we discussed that no know usage would want to do attach/replace
> while a device is being reset, but I wonder whether we should instead
> wait for a full solution to avoid unnecessary uAPI change back-and-forth...

That's a very fair point. To keep the uAPI consistent:

I will split the series, making a smaller preparatory one, as a
part-1 for release_domain and old_domain.

Part-2 will roll out a can_attach op across drivers. And part-3
should have the final reset patches.

Thanks
Nicolin