]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Print error code in exception injection tracepoint iff valid
authorSean Christopherson <seanjc@google.com>
Sun, 1 May 2022 22:07:32 +0000 (00:07 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jun 2022 08:46:58 +0000 (04:46 -0400)
commitc92cec28fd6ba64013c9a2d63fd467c1d85655b6
treef03336160ac0dc0243a9b69b8e9cca08f82656ca
parent93e47a4fcdb32f3edb95752c3ee4fdfe9b054ba0
KVM: x86: Print error code in exception injection tracepoint iff valid

Print the error code in the exception injection tracepoint if and only if
the exception has an error code.  Define the entire error code sequence
as a set of formatted strings, print empty strings if there's no error
code, and abuse __print_symbolic() by passing it an empty array to coerce
it into printing the error code as a hex string.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Message-Id: <e8f0511733ed2a0410cbee8a0a7388eac2ee5bac.1651440202.git.maciej.szmigiero@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/trace.h