From: Avi Kivity Date: Wed, 12 Sep 2012 12:12:09 +0000 (+0300) Subject: KVM: MMU: Simplify walk_addr_generic() loop X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~15^2~4^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13d22b6aebb000aeaf137862c6c0e0c4d138d798;p=pandora-kernel.git KVM: MMU: Simplify walk_addr_generic() loop The page table walk is coded as an infinite loop, with a special case on the last pte. Code it as an ordinary loop with a termination condition on the last pte (large page or walk length exhausted), and put the last pte handling code after the loop where it belongs. Reviewed-by: Xiao Guangrong Signed-off-by: Avi Kivity --- Reading git-diff-tree failed