aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
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 /arch/x86/kvm/svm.c
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 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index fb5d6c2e6a08..9e29a13136c4 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -426,8 +426,10 @@ static __init int svm_hardware_setup(void)
426 npt_enabled = false; 426 npt_enabled = false;
427 } 427 }
428 428
429 if (npt_enabled) 429 if (npt_enabled) {
430 printk(KERN_INFO "kvm: Nested Paging enabled\n"); 430 printk(KERN_INFO "kvm: Nested Paging enabled\n");
431 kvm_enable_tdp();
432 }
431 433
432 return 0; 434 return 0;
433 435