On 12/09/2018 03:42, Lu Baolu wrote:
Hi,Ah right, domain attributes won't work. Your suggestion seems more
On 09/11/2018 12:22 AM, Jean-Philippe Brucker wrote:
Hi,Domain is not a good choice for per iommu cap query. A domain might be
On 30/08/2018 05:09, Lu Baolu wrote:
Below APIs are introduced in the IOMMU glue for device drivers to useiommu_capable() cannot represent hardware capabilities, we need
the finer granularity translation.
* iommu_capable(IOMMU_CAP_AUX_DOMAIN)
- Represents the ability for supporting multiple domains per device
(a.k.a. finer granularity translations) of the IOMMU hardware.
something else for systems with multiple IOMMUs that have different
caps. How about iommu_domain_get_attr on the device's domain instead?
attached to devices belonging to different iommu's.
How about an API with device structure as parameter? A device always
belongs to a specific iommu. This API is supposed to be used the
device driver.
suitable, but maybe users can simply try to enable auxiliary domains
first, and conclude that the IOMMU doesn't support it if it returns an error