summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2010-09-10 17:30:44 +0200
committerAvi Kivity <avi@redhat.com>2010-10-24 10:52:32 +0200
commit52fde8df7dd13d90f5f8dc43157418bff968d90a (patch)
treeb02791abecb83a1b9772b95c333581087ab622f5 /arch/x86/kvm/mmu.h
parentcb659db8a7d1ed558898f533a957dfc342f9499d (diff)
downloadlinux-52fde8df7dd13d90f5f8dc43157418bff968d90a.tar.gz
linux-52fde8df7dd13d90f5f8dc43157418bff968d90a.tar.bz2
linux-52fde8df7dd13d90f5f8dc43157418bff968d90a.zip
KVM: MMU: Introduce kvm_init_shadow_mmu helper function
Some logic of the init_kvm_softmmu function is required to build the Nested Nested Paging context. So factor the required logic into a seperate function and export it. Also make the whole init path suitable for more than one mmu context. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.h')
-rw-r--r--arch/x86/kvm/mmu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h
index f05a03dfba4e..7086ca85d3e7 100644
--- a/arch/x86/kvm/mmu.h
+++ b/arch/x86/kvm/mmu.h
@@ -49,6 +49,7 @@
#define PFERR_FETCH_MASK (1U << 4)
int kvm_mmu_get_spte_hierarchy(struct kvm_vcpu *vcpu, u64 addr, u64 sptes[4]);
+int kvm_init_shadow_mmu(struct kvm_vcpu *vcpu, struct kvm_mmu *context);
static inline unsigned int kvm_mmu_available_pages(struct kvm *kvm)
{