Hi Stuart,
On Mon, Feb 04, 2013 at 09:37:20PM -0600, Stuart Yoder wrote:
> + DOMAIN_ATTR_ENABLE,
> + DOMAIN_ATTR_FSL_PAMUV1,
> Instead of advertising those constraints somehow, it seem easier just
> to advertise that this IOMMU is a PAMU v1. The attribute would be
> read only and would be a boolean-- if the attribute is present then
> it's a PAMU v1.
> [...]
> Wanted to get your thoughts on that.
Sounds reasonable. Just put PAMU into the name of the attributes to make
clear these attributes are specific to your implementation and implement
the attributes in the PAMU specific get/set_attr call-backs. This is
particularily true for DOMAIN_ATTR_ENABLE (or better
DOMAIN_ATTR_PAMU_ENABLE). We can also go with DOMAIN_ATTR_FSL_PAMUV1 for
now, but a more generic way of determining the IOMMU type might make
sense. But this can be changed later.
Regards,
Joerg
_______________________________________________
iommu mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/iommu