Implementation of a VMM
Posted: Fri Aug 05, 2005 7:53 am
Finally a topic on VMM with all these Phys MM ones floating around .
Anyways, the way I picture a virtual memory manager is built on top a lower level layer to provide information about paging (like thier presence, which page belongs to what table, etc..) and all the virtual mem manager should be is a way to allocate pages, page tables, page dirs, and free them. Then a way to map virtual addresses to physical ones.
When I allocate a page I just create it from my stack of free pages right? If so I wouldn't know when to map a virtual address to a physical one when it is allocated, maybe allow a user to specify a location (virtual) where the page is allocated to?
I'm really in the dark about these design methods.
Got to go but thanks in advance to anyone that can help
Anyways, the way I picture a virtual memory manager is built on top a lower level layer to provide information about paging (like thier presence, which page belongs to what table, etc..) and all the virtual mem manager should be is a way to allocate pages, page tables, page dirs, and free them. Then a way to map virtual addresses to physical ones.
When I allocate a page I just create it from my stack of free pages right? If so I wouldn't know when to map a virtual address to a physical one when it is allocated, maybe allow a user to specify a location (virtual) where the page is allocated to?
I'm really in the dark about these design methods.
Got to go but thanks in advance to anyone that can help