KVM: SVM: replace regs argument of __svm_vcpu_run() with vcpu_svm
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 30 Sep 2022 18:14:44 +0000 (14:14 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Nov 2022 17:16:34 +0000 (12:16 -0500)
commit16fdc1de169ee0a4e59a8c02244414ec7acd55c3
tree873919bb62a766bcd687f285da4119572862e499
parentdebc5a1ec0d195ffea70d11efeffb713de9fdbc7
KVM: SVM: replace regs argument of __svm_vcpu_run() with vcpu_svm

Since registers are reachable through vcpu_svm, and we will
need to access more fields of that struct, pass it instead
of the regs[] array.

No functional change intended.

Cc: stable@vger.kernel.org
Fixes: a149180fbcf3 ("x86: Add magic AMD return-thunk")
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Makefile
arch/x86/kvm/kvm-asm-offsets.c
arch/x86/kvm/svm/svm.c
arch/x86/kvm/svm/svm.h
arch/x86/kvm/svm/vmenter.S