[RFC PATCH v1 4/8] iommu/arm-smmu-v3: check smmu compatibility on attach

Michael Shavit mshavit at google.com
Thu Aug 17 20:14:11 PDT 2023


On Fri, Aug 18, 2023 at 3:17 AM Robin Murphy <robin.murphy at arm.com> wrote:
>
> On 2023-08-17 19:16, Michael Shavit wrote:
> > Record the domain's pgtbl_cfg when it's being prepared so that it can
> > later be compared to the features an smmu supports.
>
> What's wrong with retrieving the existing config from the
> io_pgtable_ops, same as all the other io-pgtable code does?
>

I didn't think accessing the io_pgtable struct outside of io-pgtable
code would be ok, but now that you mention it I do see usages of
io_pgtable_ops_to_pgtable in iommu drivers.

Will change.



More information about the linux-arm-kernel mailing list