From: Takuya Yoshikawa Date: Mon, 14 Nov 2011 09:22:28 +0000 (+0900) Subject: KVM: MMU: Split gfn_to_rmap() into two functions X-Git-Tag: v3.3-rc1~131^2~54 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b9b1492364758de82c19c36f07baa9ae162c7e5;p=pandora-kernel.git KVM: MMU: Split gfn_to_rmap() into two functions rmap_write_protect() calls gfn_to_rmap() for each level with gfn fixed. This results in calling gfn_to_memslot() repeatedly with that gfn. This patch introduces __gfn_to_rmap() which takes the slot as an argument to avoid this. This is also needed for the following dirty logging optimization. Signed-off-by: Takuya Yoshikawa Signed-off-by: Avi Kivity --- Reading git-diff-tree failed