Skip to content

Commit

Permalink
KVM: SVM: Remove unused svm_features
Browse files Browse the repository at this point in the history
We use boot_cpu_has now.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
  • Loading branch information
Jan Kiszka authored and Avi Kivity committed May 11, 2011
1 parent 8878647 commit 89a9fb7
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,6 @@ struct svm_cpu_data {
};

static DEFINE_PER_CPU(struct svm_cpu_data *, svm_data);
static uint32_t svm_features;

struct svm_init_data {
int cpu;
Expand Down Expand Up @@ -802,8 +801,6 @@ static __init int svm_hardware_setup(void)
goto err;
}

svm_features = cpuid_edx(SVM_CPUID_FUNC);

if (!boot_cpu_has(X86_FEATURE_NPT))
npt_enabled = false;

Expand Down

0 comments on commit 89a9fb7

Please sign in to comment.