diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-02-07 07:47:43 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 04:53:20 -0400 |
commit | cc4b6871e771e76dc1de06adb8aed261a1c66be8 (patch) | |
tree | e64b3524153846180a2a481fe1e412d3cfc6d3fd | |
parent | 4d9976bbdc09e08b69fc12fee2042c3528187b32 (diff) |
KVM: export the load_pdptrs() function to modules
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>
-rw-r--r-- | arch/x86/kvm/x86.c | 1 | ||||
-rw-r--r-- | include/asm-x86/kvm_host.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 38edb2f558ea..0c910c774a9b 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -213,6 +213,7 @@ out: | |||
213 | 213 | ||
214 | return ret; | 214 | return ret; |
215 | } | 215 | } |
216 | EXPORT_SYMBOL_GPL(load_pdptrs); | ||
216 | 217 | ||
217 | static bool pdptrs_changed(struct kvm_vcpu *vcpu) | 218 | static bool pdptrs_changed(struct kvm_vcpu *vcpu) |
218 | { | 219 | { |
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h index 5c6ba2212b1b..623249890a0b 100644 --- a/include/asm-x86/kvm_host.h +++ b/include/asm-x86/kvm_host.h | |||
@@ -411,6 +411,8 @@ void kvm_mmu_zap_all(struct kvm *kvm); | |||
411 | unsigned int kvm_mmu_calculate_mmu_pages(struct kvm *kvm); | 411 | unsigned int kvm_mmu_calculate_mmu_pages(struct kvm *kvm); |
412 | void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages); | 412 | void kvm_mmu_change_mmu_pages(struct kvm *kvm, unsigned int kvm_nr_mmu_pages); |
413 | 413 | ||
414 | int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3); | ||
415 | |||
414 | enum emulation_result { | 416 | enum emulation_result { |
415 | EMULATE_DONE, /* no further processing */ | 417 | EMULATE_DONE, /* no further processing */ |
416 | EMULATE_DO_MMIO, /* kvm_run filled with mmio request */ | 418 | EMULATE_DO_MMIO, /* kvm_run filled with mmio request */ |