Re: [PATCH 1/2] iommu: Add static iommu_ops->release_domain

From: Baolu Lu
Date: Tue Feb 27 2024 - 20:19:52 EST


On 2/27/24 3:32 PM, Tian, Kevin wrote:
From: Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx>
Sent: Friday, February 23, 2024 1:13 PM


+ /*
+ * If the iommu driver provides release_domain then the core code
+ * ensures that domain is attached prior to calling release_device.
+ * Drivers can use this to enforce a translation on the idle iommu.
'enforce a translation' is confusing in the context of blocking/identity
domain.

Blocking or identity domain is also kind of a translation from the
core's perspective. The core does not care what type of translation the
release_domain is; it just enforces this type of translation before
device release if the driver has specified one.

Best regards,
baolu