RE: [PATCH v4 08/17] iommufd: Always setup MSI and anforce cc on kernel-managed domains

From: Tian, Kevin
Date: Tue Sep 26 2023 - 04:18:09 EST


> From: Liu, Yi L <yi.l.liu@xxxxxxxxx>
> Sent: Thursday, September 21, 2023 3:51 PM
>
> From: Nicolin Chen <nicolinc@xxxxxxxxxx>
>
> Now enforce_cache_coherency and msi_cookie are kernel-managed hwpt
> things.
> So, they should be only setup on kernel-managed domains. If the attaching
> domain is a user-managed domain, redirect the hwpt to hwpt->parent to do
> it correctly.
>

No redirection. The parent should already have the configuration done
when it's created. It shouldn't be triggered in the nesting path.