diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-02-07 07:47:41 -0500 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 04:53:19 -0400 |
commit | 1855267210e1a8c9d41fe3a3c7a0d42eca5fb7cd (patch) | |
tree | 2af29e610ce7c7196798cc5f580f7282f902df2a /include/asm-x86/kvm_host.h | |
parent | 6c7dac72d5c7dc0e09512dce865398167be9a8f7 (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.h | 2 |
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 | ||
494 | int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code); | 494 | int kvm_mmu_page_fault(struct kvm_vcpu *vcpu, gva_t gva, u32 error_code); |
495 | 495 | ||
496 | void kvm_enable_tdp(void); | ||
497 | |||
496 | int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3); | 498 | int load_pdptrs(struct kvm_vcpu *vcpu, unsigned long cr3); |
497 | int complete_pio(struct kvm_vcpu *vcpu); | 499 | int complete_pio(struct kvm_vcpu *vcpu); |
498 | 500 | ||