KVM: MMU: shadow support for 1gb pages
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 27 Jul 2009 14:30:46 +0000 (16:30 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:19 +0000 (08:33 +0300)
commit7e4e4056f72da51c5dede48515df0ecd20eaf8ca
tree74ed536181a241c959d1bf5366c624f376e6784a
parente04da980c35d75fa050ba4009ad99025432d8d7d
KVM: MMU: shadow support for 1gb pages

This patch adds support for shadow paging to the 1gb page table code in KVM.
With this code the guest can use 1gb pages even if the host does not support
them.

[ Marcelo: fix shadow page collision on pmd level if a guest 1gb page is mapped
           with 4kb ptes on host level ]

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h