aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2008-12-21 19:20:09 +0200
committerAvi Kivity <avi@redhat.com>2009-03-24 11:02:51 +0200
commita770f6f28b1a9287189f3dc8333eb694d9a2f0ab (patch)
treeed88e3dc411630780acfae24fc917750df6561d2 /arch/x86/include
parentKVM: ia64: Code cleanup (diff)
downloadlinux-dev-a770f6f28b1a9287189f3dc8333eb694d9a2f0ab.tar.xz
linux-dev-a770f6f28b1a9287189f3dc8333eb694d9a2f0ab.zip
KVM: MMU: Inherit a shadow page's guest level count from vcpu setup
Instead of "calculating" it on every shadow page allocation, set it once when switching modes, and copy it when allocating pages. This doesn't buy us much, but sets up the stage for inheriting more information related to the mmu setup. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include')
-rw-r--r--arch/x86/include/asm/kvm_host.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h
index 0a4dab25a919..28f875f28f58 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -244,6 +244,7 @@ struct kvm_mmu {
hpa_t root_hpa;
int root_level;
int shadow_root_level;
+ union kvm_mmu_page_role base_role;
u64 *pae_root;
};