summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-09-10 17:30:39 +0200
committerAvi Kivity <avi@redhat.com>2010-10-24 10:52:28 +0200
commitc5a78f2b649ae75ae788e7622ca5a586af2cb35a (patch)
tree969423628be1dd64996c10359edddf02ed4f7343 /arch/x86/include/asm/kvm_host.h
parent957446afce22df9a42b9482fcd55985f4037fe66 (diff)
downloadblackbird-op-linux-c5a78f2b649ae75ae788e7622ca5a586af2cb35a.tar.gz
blackbird-op-linux-c5a78f2b649ae75ae788e7622ca5a586af2cb35a.zip
KVM: MMU: Make tdp_enabled a mmu-context parameter
This patch changes the tdp_enabled flag from its global meaning to the mmu-context and renames it to direct_map there. This is necessary for Nested SVM with emulation of Nested Paging where we need an extra MMU context to shadow the Nested Nested Page Table. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-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 789e9462668f..80ef28bddcc3 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -249,6 +249,7 @@ struct kvm_mmu {
int root_level;
int shadow_root_level;
union kvm_mmu_page_role base_role;
+ bool direct_map;
u64 *pae_root;
u64 rsvd_bits_mask[2][4];
OpenPOWER on IntegriCloud