I know that in linux, pages aren't necessarily marked dirty/accessed immediately, but rather they are unmapped from page tables, and when the pte's are removed, any accessed/dirty bits from the pte are pasted into the page struct for the page in question.
On Wed, Aug 12, 2015 at 11:30 PM, Tom Mitchell <mitch@niftyegg.com> wrote:
The accessed bit is a file system + OS feature. If it works in waysyou expect life is good. OS meta data may live above the microkerneland needs to be checked.
Oh I agree that it's a filesystem/OS feature, but afaik, only the microkernel actually knows about it.
Especially if you aren't writing to a file, but have the file mmap'ed as writable, especially in a shared context.
My main curiosity is how to let an OS take advantage of this extra information to optimize page handling.
Asking the microkernel might be possible with an ioctl() toa driver you craft. The page table is both in memory and in theprocessor so knowing what to ask from user space is not obvious.There are security issues with all of these. Ity is also very dynamic.
I do not think of the page table as one table. It is a complexmulti layered structure managed by privileged code and extractingthe portions any security model might allow seem a complex risk.
Would having a capability for the page directory in question suffice to assure security?Debugging tools might let you see what you want. Debugging toolsneed their own framework and support.
Do not ignore cache architecture and MTTR and PAT...
_______________________________________________ Devel mailing list Devel@sel4.systems https://sel4.systems/lists/listinfo/devel