]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: SVM: remove unused field from struct vcpu_svm
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 09:54:40 +0000 (04:54 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:23:42 +0000 (12:23 -0500)
commit5ac46de1c26245f602907b9f4f471f1d3465e44f
tree806e630f796780c1844d98d9fff5a859e0fd2eab
parent77a243cc5a37a2215f0c9024cbba4765ff463013
KVM: SVM: remove unused field from struct vcpu_svm

The pointer to svm_cpu_data in struct vcpu_svm looks interesting from
the point of view of accessing it after vmexit, when the GSBASE is still
containing the guest value.  However, despite existing since the very
first commit of drivers/kvm/svm.c (commit b4d1853ff20b, "[PATCH] kvm:
userspace interface", 2006-12-10), it was never set to anything.

Ignore the opportunity to fix a 16 year old "bug" and delete it; doing
things the "harder" way makes it possible to remove more old cruft.

Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.h