KVM: x86: Get exit_reason as part of kvm_x86_ops.get_exit_info
authorDavid Edmondson <david.edmondson@oracle.com>
Mon, 20 Sep 2021 10:37:35 +0000 (11:37 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Oct 2021 10:48:24 +0000 (06:48 -0400)
commit0a62a0319abb92c89a4f91c2dbfcaee4e47f37ca
treed18f8a38158f35860445c5446226d28cda1e14d2
parenta9d496d8e08ca1eb43d14cb734839b24ab0e8083
KVM: x86: Get exit_reason as part of kvm_x86_ops.get_exit_info

Extend the get_exit_info static call to provide the reason for the VM
exit. Modify relevant trace points to use this rather than extracting
the reason in the caller.

Signed-off-by: David Edmondson <david.edmondson@oracle.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210920103737.2696756-3-david.edmondson@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/svm.c
arch/x86/kvm/trace.h
arch/x86/kvm/vmx/nested.c
arch/x86/kvm/vmx/vmx.c