Re: [PATCH 0/4] PCI, iommu: Factor 'untrusted' check for ATS enablement

Raj, Ashok
2020-05-15T17:25:09Z

Hi Christoph

On Fri, May 15, 2020 at 08:43:51AM -0700, Christoph Hellwig wrote:
> Can you please lift the untrusted flag into struct device? It really
> isn't a PCI specific concept, and we should not have code poking into
> pci_dev all over the iommu code.

Just for clarification: All IOMMU's today mostly pertain to only PCI devices
and for devices that aren't PCI like HPET for instance we give a PCI
identifier. Facilities like ATS for instance require the platform to have
an IOMMU.

what additional problems does moving this to struct device solve?

Cheers,
Ashok