KVM: SVM: Pass struct kvm_vcpu to exit handlers (and many, many other places)
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 2 Mar 2021 19:40:39 +0000 (14:40 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:09 +0000 (04:43 -0400)
commit63129754178c5514f04bf6bdb891e33dfe58e58d
treec063eea9f4bdd2d9516ce2295a4ff899a1ef4469
parent2a32a77cefa662773197b362db8e4190027c89fa
KVM: SVM: Pass struct kvm_vcpu to exit handlers (and many, many other places)

Refactor the svm_exit_handlers API to pass @vcpu instead of @svm to
allow directly invoking common x86 exit handlers (in a future patch).
Opportunistically convert an absurd number of instances of 'svm->vcpu'
to direct uses of 'vcpu' to avoid pointless casting.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210205005750.3841462-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c
arch/x86/kvm/svm/nested.c
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h