Re: [RFC PATCH v1 4/8] iommu/arm-smmu-v3: check smmu compatibility on attach
From: Michael Shavit
Date: Thu Aug 17 2023 - 23:15:52 EST
On Fri, Aug 18, 2023 at 3:17 AM Robin Murphy <robin.murphy@xxxxxxx> 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.