]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita6d9b7175ff79b1bf1c07711c4eaa2a49d3510e9
treec063eea9f4bdd2d9516ce2295a4ff899a1ef4469
parent64449b7fef6718d6f236b94b86b13848accee19a
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