mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00

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
33 lines
790 B
C
33 lines
790 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
#if !defined(_TRACE_KVM_BOOK3S_H)
|
|
#define _TRACE_KVM_BOOK3S_H
|
|
|
|
/*
|
|
* Common defines used by the trace macros in trace_pr.h and trace_hv.h
|
|
*/
|
|
|
|
#define kvm_trace_symbol_exit \
|
|
{0x100, "SYSTEM_RESET"}, \
|
|
{0x200, "MACHINE_CHECK"}, \
|
|
{0x300, "DATA_STORAGE"}, \
|
|
{0x380, "DATA_SEGMENT"}, \
|
|
{0x400, "INST_STORAGE"}, \
|
|
{0x480, "INST_SEGMENT"}, \
|
|
{0x500, "EXTERNAL"}, \
|
|
{0x502, "EXTERNAL_HV"}, \
|
|
{0x600, "ALIGNMENT"}, \
|
|
{0x700, "PROGRAM"}, \
|
|
{0x800, "FP_UNAVAIL"}, \
|
|
{0x900, "DECREMENTER"}, \
|
|
{0x980, "HV_DECREMENTER"}, \
|
|
{0xc00, "SYSCALL"}, \
|
|
{0xd00, "TRACE"}, \
|
|
{0xe00, "H_DATA_STORAGE"}, \
|
|
{0xe20, "H_INST_STORAGE"}, \
|
|
{0xe40, "H_EMUL_ASSIST"}, \
|
|
{0xea0, "H_VIRT"}, \
|
|
{0xf00, "PERFMON"}, \
|
|
{0xf20, "ALTIVEC"}, \
|
|
{0xf40, "VSX"}
|
|
|
|
#endif
|