Skip to content

Commit 0014597

Browse files
committed
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 6aa8b73, "[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>
1 parent f6d5826 commit 0014597

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

arch/x86/kvm/svm/svm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ struct vcpu_svm {
209209
struct vmcb *vmcb;
210210
struct kvm_vmcb_info vmcb01;
211211
struct kvm_vmcb_info *current_vmcb;
212-
struct svm_cpu_data *svm_data;
213212
u32 asid;
214213
u32 sysenter_esp_hi;
215214
u32 sysenter_eip_hi;

0 commit comments

Comments
 (0)