From: Marcelo Tosatti Date: Wed, 10 Jun 2009 15:27:04 +0000 (-0300) Subject: KVM: MMU audit: update count_writable_mappings / count_rmaps X-Git-Tag: v2.6.32-rc1~693^2~151 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=08a3732bf2e68048c9166e929ca2115127a412ab;p=pandora-kernel.git KVM: MMU audit: update count_writable_mappings / count_rmaps Under testing, count_writable_mappings returns a value that is 2 integers larger than what count_rmaps returns. Suspicion is that either of the two functions is counting a duplicate (either positively or negatively). Modifying check_writable_mappings_rmap to check for rmap existance on all present MMU pages fails to trigger an error, which should keep Avi happy. Also introduce mmu_spte_walk to invoke a callback on all present sptes visible to the current vcpu, might be useful in the future. Signed-off-by: Marcelo Tosatti Signed-off-by: Avi Kivity --- Reading git-diff-tree failed