From: Joerg Roedel Date: Thu, 2 Sep 2010 15:29:45 +0000 (+0200) Subject: KVM: MMU: Fix 32 bit legacy paging with NPT X-Git-Tag: v2.6.37-rc1~142^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f87f928882d080eaec8b0d76aecff003d664697d;p=pandora-kernel.git KVM: MMU: Fix 32 bit legacy paging with NPT This patch fixes 32 bit legacy paging with NPT enabled. The mmu_check_root call on the top-level of the loop causes root_gfn to take values (in the tdp_enabled path) which are outside of guest memory. So the mmu_check_root call fails at some point in the loop interation causing the guest to tiple-fault. This patch changes the mmu_check_root calls to the places where they are really necessary. As a side-effect it introduces a check for the root of a pae page table too. Signed-off-by: Joerg Roedel Signed-off-by: Marcelo Tosatti --- Reading git-diff-tree failed