From: Avi Kivity Date: Fri, 22 Aug 2008 16:24:38 +0000 (+0300) Subject: KVM: MMU: Add generic shadow walker X-Git-Tag: v2.6.28-rc1~269^2~68 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3d000db5688c8beff6319fb9ff4b98dcac32f798;p=pandora-kernel.git KVM: MMU: Add generic shadow walker We currently walk the shadow page tables in two places: direct map (for real mode and two dimensional paging) and paging mode shadow. Since we anticipate requiring a third walk (for invlpg), it makes sense to have a generic facility for shadow walk. This patch adds such a shadow walker, walks the page tables and calls a method for every spte encountered. The method can examine the spte, modify it, or even instantiate it. The walk can be aborted by returning nonzero from the method. Signed-off-by: Avi Kivity --- Reading git-diff-tree failed