]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
KVM: export the load_pdptrs() function to modules
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 7 Feb 2008 12:47:43 +0000 (13:47 +0100)
committerAvi Kivity <avi@qumranet.com>
Sun, 27 Apr 2008 08:53:20 +0000 (11:53 +0300)
The load_pdptrs() function is required in the SVM module for NPT support.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kvm/x86.c
include/asm-x86/kvm_host.h

index 38edb2f558eaf5d223a0120561887e97d5f08490..0c910c774a9bdbbff74fac4c7fd27ec200bc33df 100644 (file)
@@ -213,6 +213,7 @@ out:
 
        return ret;
 }
+EXPORT_SYMBOL_GPL(load_pdptrs);
 
 static bool pdptrs_changed(struct kvm_vcpu *vcpu)
 {
index 5c6ba2212b1bd77014667339116c24b1d3858dc9..623249890a0b86da5396855b37091a1d7a02848c 100644 (file)
@@ -411,6 +411,8 @@ void kvm_mmu_zap_all(struct kvm *kvm);
 unsigned int kvm_mmu_calculate_mmu_pages(struct kvm *kvm);
 void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages);
 
+int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3);
+
 enum emulation_result {
        EMULATE_DONE,       /* no further processing */
        EMULATE_DO_MMIO,      /* kvm_run filled with mmio request */