diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 11:31:03 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:52:46 -0400 |
commit | 4b16184c1ccafa4b0c188c622ea532fb90e6f5b0 (patch) | |
tree | 27bac1b008fc41f2b27a70faecf3e1ca1b7473ee /arch/x86/kvm/mmu.c | |
parent | 5bd2edc341d11af175e759a546e4335ba3e0584f (diff) |
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.c | 1 |
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) | |||
2962 | { | 2962 | { |
2963 | mmu_free_roots(vcpu); | 2963 | mmu_free_roots(vcpu); |
2964 | } | 2964 | } |
2965 | EXPORT_SYMBOL_GPL(kvm_mmu_unload); | ||
2965 | 2966 | ||
2966 | static void mmu_pte_write_zap_pte(struct kvm_vcpu *vcpu, | 2967 | static void mmu_pte_write_zap_pte(struct kvm_vcpu *vcpu, |
2967 | struct kvm_mmu_page *sp, | 2968 | struct kvm_mmu_page *sp, |