x86/trapnr: Add event type macros to <asm/trapnr.h>
authorXin Li <xin3.li@intel.com>
Tue, 5 Dec 2023 10:49:52 +0000 (02:49 -0800)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 25 Jan 2024 18:10:29 +0000 (19:10 +0100)
commit8df719341e8556f1e2bfa0f78fc433db6eba110b
tree2135c91ed157a0391cc509c94c33e3d3379be593
parent3167b37f82ea8f9da156ff4edf100756bbc9277e
x86/trapnr: Add event type macros to <asm/trapnr.h>

Intel VT-x classifies events into eight different types, which is inherited
by FRED for event identification. As such, event types becomes a common x86
concept, and should be defined in a common x86 header.

Add event type macros to <asm/trapnr.h>, and use them in <asm/vmx.h>.

Suggested-by: H. Peter Anvin (Intel) <hpa@zytor.com>
Signed-off-by: Xin Li <xin3.li@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Shan Kang <shan.kang@intel.com>
Link: https://lore.kernel.org/r/20231205105030.8698-4-xin3.li@intel.com
arch/x86/include/asm/trapnr.h
arch/x86/include/asm/vmx.h