]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Nov 2022 08:27:22 +0000 (09:27 +0100)
[ Upstream commit 181d0fb0bb023e8996b1cf7970e3708d72442b0b ]

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>
Stable-dep-of: e287bd005ad9 ("KVM: SVM: restore host save area from assembly")
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h

index 454746641a483e65604e992b0b476d3c27716f08..ecf4d8233e49e0e77975a450ebf681faed73df6f 100644 (file)
@@ -667,7 +667,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 7ff1879e73c56c6ebcc21a35c93cb6066de4d006..8a8894d948a029aead747ef98ed44f4ee80df1a4 100644 (file)
@@ -281,8 +281,6 @@ struct vcpu_svm {
 };
 
 struct svm_cpu_data {
-       int cpu;
-
        u64 asid_generation;
        u32 max_asid;
        u32 next_asid;