Re: [PATCH v7 0/5] Add Intel IOMMU debugfs support

From: Jacob Pan
Date: Thu Feb 22 2018 - 12:07:36 EST


On Thu, 22 Feb 2018 08:48:37 +0100
Yves-Alexis Perez <corsac@xxxxxxxxxx> wrote:

> On Tue, 2018-02-20 at 14:25 -0800, Jacob Pan wrote:
> > I didn't know about chipsec but reading the code seems to rely on an
> > out-of-tree kernel module. I don't think it matches what we need
> > here.
>
> Yes good indeed, I had forgot about that. Maybe the userland part is
> still useful, but there's definitely a need for (protected) access to
> privileged memory (and access to /dev/mem is less practical than
> debugfs, I guess).
>
Another reason we can't use /dev/mem is that the context entries are
not static, they are created for each device when the first map()
comes. So we need to rely on the list in the intel iommu driver to dump
the context.
> Regards,

[Jacob Pan]