KVM: SVM: Invoke trace_kvm_exit() for fastpath VM-Exits
authorSean Christopherson <seanjc@google.com>
Fri, 2 Jun 2023 01:19:20 +0000 (18:19 -0700)
committerSean Christopherson <seanjc@google.com>
Fri, 2 Jun 2023 23:40:27 +0000 (16:40 -0700)
commit791a089861fced01dc6d8a67507d711839659fb8
tree06d02835c140b4c77345ca3f6d153a33d91c478f
parent0d3518d2f8c3c432270e3eff56e28ae6c0cedfac
KVM: SVM: Invoke trace_kvm_exit() for fastpath VM-Exits

Move SVM's call to trace_kvm_exit() from the "slow" VM-Exit handler to
svm_vcpu_run() so that KVM traces fastpath VM-Exits that re-enter the
guest without bouncing through the slow path.  This bug is benign in the
current code base as KVM doesn't currently support any such exits on SVM.

Fixes: a9ab13ff6e84 ("KVM: X86: Improve latency for single target IPI fastpath")
Link: https://lore.kernel.org/r/20230602011920.787844-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/svm/svm.c