KVM: MMU: Replace role.glevels with role.cr4_pae
authorAvi Kivity <avi@redhat.com>
Wed, 14 Apr 2010 16:20:03 +0000 (19:20 +0300)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:17:47 +0000 (12:17 +0300)
commit5b7e0102ae744e9175b905f4267a81393bdb7a75
tree763f8ac81b9ebd0bebe316fd016cf0a98f33b9c7
parente269fb2189fb86d79d64c0ca74c6c1a549ad4aa3
KVM: MMU: Replace role.glevels with role.cr4_pae

There is no real distinction between glevels=3 and glevels=4; both have
exactly the same format and the code is treated exactly the same way.  Drop
role.glevels and replace is with role.cr4_pae (which is meaningful).  This
simplifies the code a bit.

As a side effect, it allows sharing shadow page tables between pae and
longmode guest page tables at the same guest page.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/mmutrace.h