aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/kvm_host.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2008-02-07 07:47:41 -0500
committerAvi Kivity <avi@qumranet.com>2008-04-27 04:53:19 -0400
commit1855267210e1a8c9d41fe3a3c7a0d42eca5fb7cd (patch)
tree2af29e610ce7c7196798cc5f580f7282f902df2a /include/asm-x86/kvm_host.h
parent6c7dac72d5c7dc0e09512dce865398167be9a8f7 (diff)
KVM: export information about NPT to generic x86 code
The generic x86 code has to know if the specific implementation uses Nested Paging. In the generic code Nested Paging is called Two Dimensional Paging (TDP) to avoid confusion with (future) TDP implementations of other vendors. This patch exports the availability of TDP to the generic x86 code. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/asm-x86/kvm_host.h')
-rw-r--r--include/asm-x86/kvm_host.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h
index 274f153c8704..5c6ba2212b1b 100644
--- a/include/asm-x86/kvm_host.h
+++ b/include/asm-x86/kvm_host.h
@@ -493,6 +493,8 @@ int kvm_fix_hypercall(struct kvm_vcpu *vcpu);
493 493
494int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code); 494int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code);
495 495
496void kvm_enable_tdp(void);
497
496int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3); 498int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3);
497int complete_pio(struct kvm_vcpu *vcpu); 499int complete_pio(struct kvm_vcpu *vcpu);
498 500