KVM: MMU: Make tdp_enabled a mmu-context parameter
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 10 Sep 2010 15:30:39 +0000 (17:30 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Oct 2010 08:52:28 +0000 (10:52 +0200)
commitc5a78f2b649ae75ae788e7622ca5a586af2cb35a
tree969423628be1dd64996c10359edddf02ed4f7343
parent957446afce22df9a42b9482fcd55985f4037fe66
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>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c