Commit 89a9fb78 authored by Jan Kiszka's avatar Jan Kiszka Committed by Avi Kivity

KVM: SVM: Remove unused svm_features

We use boot_cpu_has now.
Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 88786475
...@@ -376,7 +376,6 @@ struct svm_cpu_data { ...@@ -376,7 +376,6 @@ struct svm_cpu_data {
}; };
static DEFINE_PER_CPU(struct svm_cpu_data *, svm_data); static DEFINE_PER_CPU(struct svm_cpu_data *, svm_data);
static uint32_t svm_features;
struct svm_init_data { struct svm_init_data {
int cpu; int cpu;
...@@ -802,8 +801,6 @@ static __init int svm_hardware_setup(void) ...@@ -802,8 +801,6 @@ static __init int svm_hardware_setup(void)
goto err; goto err;
} }
svm_features = cpuid_edx(SVM_CPUID_FUNC);
if (!boot_cpu_has(X86_FEATURE_NPT)) if (!boot_cpu_has(X86_FEATURE_NPT))
npt_enabled = false; npt_enabled = false;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment