I have process i
and I want to know if that process has physical pages in memory zone z
.
I know how to do a page table walk if I have a given address; however, since those all require some sort of virtual address.
I know the beginning page of z
from z -> zone_start_pfn
and it's end from zone_end_pfn(z)
and reading seems to indicate that reverse mapping isn't available.
So what is the easy way to determine if process i
has PPNs in zone z
?
I want to do this in kernel space if that makes things easier.