diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-09-10 17:30:44 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 10:52:32 +0200 |
commit | 52fde8df7dd13d90f5f8dc43157418bff968d90a (patch) | |
tree | b02791abecb83a1b9772b95c333581087ab622f5 /arch/x86/kvm/mmu.h | |
parent | cb659db8a7d1ed558898f533a957dfc342f9499d (diff) | |
download | op-kernel-dev-52fde8df7dd13d90f5f8dc43157418bff968d90a.zip op-kernel-dev-52fde8df7dd13d90f5f8dc43157418bff968d90a.tar.gz |
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.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h index f05a03d..7086ca8 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) { |