diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 15:30:39 (GMT) |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 08:52:28 (GMT) |
commit | c5a78f2b649ae75ae788e7622ca5a586af2cb35a (patch) | |
tree | 969423628be1dd64996c10359edddf02ed4f7343 /arch/x86/include | |
parent | 957446afce22df9a42b9482fcd55985f4037fe66 (diff) | |
download | linux-fsl-qoriq-c5a78f2b649ae75ae788e7622ca5a586af2cb35a.tar.xz |
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')
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 |
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 789e946..80ef28b 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]; |