KVM: SVM: remove dead field from struct svm_cpu_data
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 13:54:20 +0000 (08:54 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:23:51 +0000 (12:23 -0500)
The "cpu" field of struct svm_cpu_data has been write-only since commit
4b656b120249 ("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>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h

index 0c86c43..0f873b2 100644 (file)
@@ -665,7 +665,6 @@ static int svm_cpu_init(int cpu)
        sd = kzalloc(sizeof(struct svm_cpu_data), GFP_KERNEL);
        if (!sd)
                return ret;
-       sd->cpu = cpu;
        sd->save_area = alloc_page(GFP_KERNEL | __GFP_ZERO);
        if (!sd->save_area)
                goto free_cpu_data;
index 6262407..7540db9 100644 (file)
@@ -280,8 +280,6 @@ struct vcpu_svm {
 };
 
 struct svm_cpu_data {
-       int cpu;
-
        u64 asid_generation;
        u32 max_asid;
        u32 next_asid;