aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-03-24 04:45:10 -0400
committerAvi Kivity <avi@redhat.com>2011-05-11 07:56:57 -0400
commit89a9fb78b5bd8bece353449079726556ecab41df (patch)
tree09e42352ef9001038e215be138762726bddef883 /arch/x86/kvm/svm.c
parent887864758580c80710947c38a4692032163777df (diff)
KVM: SVM: Remove unused svm_features
We use boot_cpu_has now. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 2a193222c987..cb43e98eff63 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -376,7 +376,6 @@ struct svm_cpu_data {
376}; 376};
377 377
378static DEFINE_PER_CPU(struct svm_cpu_data *, svm_data); 378static DEFINE_PER_CPU(struct svm_cpu_data *, svm_data);
379static uint32_t svm_features;
380 379
381struct svm_init_data { 380struct svm_init_data {
382 int cpu; 381 int cpu;
@@ -802,8 +801,6 @@ static __init int svm_hardware_setup(void)
802 goto err; 801 goto err;
803 } 802 }
804 803
805 svm_features = cpuid_edx(SVM_CPUID_FUNC);
806
807 if (!boot_cpu_has(X86_FEATURE_NPT)) 804 if (!boot_cpu_has(X86_FEATURE_NPT))
808 npt_enabled = false; 805 npt_enabled = false;
809 806