summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
authorJoerg Roedel2010-09-10 17:31:03 +0200
committerAvi Kivity2010-10-24 10:52:46 +0200
commit4b16184c1ccafa4b0c188c622ea532fb90e6f5b0 (patch)
tree27bac1b008fc41f2b27a70faecf3e1ca1b7473ee /arch/x86/kvm/mmu.c
parentKVM: SVM: Implement MMU helper functions for Nested Nested Paging (diff)
downloadkernel-qcow2-linux-4b16184c1ccafa4b0c188c622ea532fb90e6f5b0.tar.gz
kernel-qcow2-linux-4b16184c1ccafa4b0c188c622ea532fb90e6f5b0.tar.xz
kernel-qcow2-linux-4b16184c1ccafa4b0c188c622ea532fb90e6f5b0.zip
KVM: SVM: Initialize Nested Nested MMU context on VMRUN
This patch adds code to initialize the Nested Nested Paging MMU context when the L1 guest executes a VMRUN instruction and has nested paging enabled in its VMCB. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 95cbeed74cf9..6e248d80e350 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -2962,6 +2962,7 @@ void kvm_mmu_unload(struct kvm_vcpu *vcpu)
{
mmu_free_roots(vcpu);
}
+EXPORT_SYMBOL_GPL(kvm_mmu_unload);
static void mmu_pte_write_zap_pte(struct kvm_vcpu *vcpu,
struct kvm_mmu_page *sp,