Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: PPC: Book3S HV: Add H_VIRT mapping for tracing exits

The macro kvm_trace_symbol_exit is used for providing the mappings
for the trap vectors and their names. Add mapping for H_VIRT so that
trap reason is displayed as string instead of a vector number when using
the kvm_guest_exit tracepoint.

Signed-off-by: Gautam Menghani <gautam@linux.ibm.com>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250516121225.276466-1-gautam@linux.ibm.com

authored by

Gautam Menghani and committed by
Madhavan Srinivasan
c8346079 52d4639d

+1
+1
arch/powerpc/kvm/trace_book3s.h
··· 25 25 {0xe00, "H_DATA_STORAGE"}, \ 26 26 {0xe20, "H_INST_STORAGE"}, \ 27 27 {0xe40, "H_EMUL_ASSIST"}, \ 28 + {0xea0, "H_VIRT"}, \ 28 29 {0xf00, "PERFMON"}, \ 29 30 {0xf20, "ALTIVEC"}, \ 30 31 {0xf40, "VSX"}