]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: Refactor mmu_alloc_roots function
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Sep 2010 15:30:59 +0000 (17:30 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:42 +0000 (10:52 +0200)
commit5a770905cebc9be60c5f9ec33e973a921c21f294
tree62b8c506c076b4c66e1c144d6e831db551c61749
parent60ddd3b56a046647e416378cff942ae89a8bf8a7
KVM: MMU: Refactor mmu_alloc_roots function

This patch factors out the direct-mapping paths of the
mmu_alloc_roots function into a seperate function. This
makes it a lot easier to avoid all the unnecessary checks
done in the shadow path which may break when running direct.
In fact, this patch already fixes a problem when running PAE
guests on a PAE shadow page table.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c