On 04/02/2010 07:41 AM, Marek Olszewski wrote:
When a guest OS writes to a shadowed (and therefore page protected) guest page table, does the resulting page fault get handled in paging_tmpl.h:xxx_page_fault or does it call some rmap related code directly?
page faults are dispatched to the page_fault callback.
Also, what does the "direct" mmu page role mean?
It means that the page maps the linear range (gfn << 12)..(((gfn + (1 << level*9))) << 12) instead of shadowing a guest page table at gfn. Useful for real mode, large pages, and tdp.
-- Do not meddle in the internals of kernels, for they are subtle and quick to panic. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html