KVM: MMU: make page walker aware of mapping levels
commite04da980c35d75fa050ba4009ad99025432d8d7d
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 27 Jul 2009 14:30:45 +0000 (27 16:30 +0200)
committerAvi Kivity <avi@redhat.com>
Thu, 10 Sep 2009 05:33:18 +0000 (10 08:33 +0300)
tree6d9747d45bf551f1b5b799bb08424e7194eab7fd
parent852e3c19ac64b7c3912e8efe42d3ce090ebc0161
KVM: MMU: make page walker aware of mapping levels

The page walker may be used with nested paging too when accessing mmio
areas.  Make it support the additional page-level too.

[ Marcelo: fix reserved bit check for 1gb pte ]

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/kvm/mmu.c
arch/x86/kvm/paging_tmpl.h