On Wed, 2011-05-18 at 13:47 +0800, Wei Liu wrote:
> On Wed, May 18, 2011 at 1:25 PM, Christopher Benninger
> <
chrisbenninger@xxxxxxxxx> wrote:
> > Hi Jeremy,
> > I am definitely doing something weird, but on purpose. I am trying to
> > determine which process specifically owns the pte in question. I have a domU
> > module which I can ask for information, I just dont know how to get the ptr
> > provided, into a useful context I can send it.
>
> Most pte updates belong to current process. Maybe you can use CR3 to
> determine to which page table a specified pte belongs. But it may be
> hard to determine the actual task_struct IMHO.
If you can record it at the time of the setpte, its easy: "current" is