]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Print names of apicv inhibit reasons in traces
authorAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Mon, 6 May 2024 22:53:20 +0000 (22:53 +0000)
committerSean Christopherson <seanjc@google.com>
Wed, 5 Jun 2024 13:18:27 +0000 (06:18 -0700)
commit69148ccec679195f37c10af405eb5016eaf03992
tree338dec5fc4a0f65ed68617173c540c1627d9f236
parent6fef518594bcb7e374f809717281bd02894929f8
KVM: x86: Print names of apicv inhibit reasons in traces

Use the tracing infrastructure helper __print_flags() for printing flag
bitfields, to enhance the trace output by displaying a string describing
each of the inhibit reasons set.

The kvm_apicv_inhibit_changed tracepoint currently shows the raw bitmap
value, requiring the user to consult the source file where the inhibit
reasons are defined to decode the trace output.

Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Vasant Hegde <vasant.hegde@amd.com>
Link: https://lore.kernel.org/r/20240506225321.3440701-2-alejandro.j.jimenez@oracle.com
Co-developed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/trace.h
arch/x86/kvm/x86.c