Skip to content

Commit 181d0fb

Browse files
committed
KVM: SVM: remove dead field from struct svm_cpu_data
The "cpu" field of struct svm_cpu_data has been write-only since commit 4b656b1 ("KVM: SVM: force new asid on vcpu migration", 2009-08-05). Remove it. Reviewed-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent 0014597 commit 181d0fb

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

arch/x86/kvm/svm/svm.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,6 @@ static int svm_cpu_init(int cpu)
665665
sd = kzalloc(sizeof(struct svm_cpu_data), GFP_KERNEL);
666666
if (!sd)
667667
return ret;
668-
sd->cpu = cpu;
669668
sd->save_area = alloc_page(GFP_KERNEL | __GFP_ZERO);
670669
if (!sd->save_area)
671670
goto free_cpu_data;

arch/x86/kvm/svm/svm.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,6 @@ struct vcpu_svm {
280280
};
281281

282282
struct svm_cpu_data {
283-
int cpu;
284-
285283
u64 asid_generation;
286284
u32 max_asid;
287285
u32 next_asid;

0 commit comments

Comments
 (0)