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>
Showing
- arch/x86/include/asm/kvm_host.h 4 additions, 3 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/svm/svm.c 5 additions, 3 deletionsarch/x86/kvm/svm/svm.c
- arch/x86/kvm/trace.h 5 additions, 4 deletionsarch/x86/kvm/trace.h
- arch/x86/kvm/vmx/nested.c 1 addition, 1 deletionarch/x86/kvm/vmx/nested.c
- arch/x86/kvm/vmx/vmx.c 4 additions, 2 deletionsarch/x86/kvm/vmx/vmx.c
Please register or sign in to comment