From: Avi Kivity Date: Sat, 6 Jan 2007 00:36:38 +0000 (-0800) Subject: [PATCH] KVM: MMU: Implement simple reverse mapping X-Git-Tag: v2.6.20-rc4~56 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd4a4e5374110444dc38831af517e51ff5a053c3;p=pandora-kernel.git [PATCH] KVM: MMU: Implement simple reverse mapping Keep in each host page frame's page->private a pointer to the shadow pte which maps it. If there are multiple shadow ptes mapping the page, set bit 0 of page->private, and use the rest as a pointer to a linked list of all such mappings. Reverse mappings are needed because we when we cache shadow page tables, we must protect the guest page tables from being modified by the guest, as that would invalidate the cached ptes. Signed-off-by: Avi Kivity Acked-by: Ingo Molnar Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed