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>
Showing
- arch/x86/kvm/svm/avic.c 13 additions, 11 deletionsarch/x86/kvm/svm/avic.c
- arch/x86/kvm/svm/nested.c 65 additions, 63 deletionsarch/x86/kvm/svm/nested.c
- arch/x86/kvm/svm/sev.c 14 additions, 13 deletionsarch/x86/kvm/svm/sev.c
- arch/x86/kvm/svm/svm.c 287 additions, 278 deletionsarch/x86/kvm/svm/svm.c
- arch/x86/kvm/svm/svm.h 7 additions, 7 deletionsarch/x86/kvm/svm/svm.h
Loading
Please register or sign in to comment