]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
KVM: x86: Define Control Protection Exception (#CP) vector
authorSean Christopherson <seanjc@google.com>
Fri, 19 Sep 2025 22:32:49 +0000 (15:32 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 23 Sep 2025 16:28:56 +0000 (09:28 -0700)
Add a CP_VECTOR definition for CET's Control Protection Exception (#CP),
along with human friendly formatting for trace_kvm_inj_exception().

Reviewed-by: Binbin Wu <binbin.wu@linux.intel.com>
Link: https://lore.kernel.org/r/20250919223258.1604852-43-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/uapi/asm/kvm.h
arch/x86/kvm/trace.h

index 467116186e71004b34f02c6c872bbe17e1120094..73e0e88a0a54e42fb5c6ddf3385df2d94ac1eaec 100644 (file)
@@ -35,6 +35,7 @@
 #define MC_VECTOR 18
 #define XM_VECTOR 19
 #define VE_VECTOR 20
+#define CP_VECTOR 21
 
 /* Select x86 specific features in <linux/kvm.h> */
 #define __KVM_HAVE_PIT
index 06da19b370c5cb7a1709d0c228581a0f97ef801c..322913dda6266adf21f0a51f3d330b017563649f 100644 (file)
@@ -462,7 +462,7 @@ TRACE_EVENT(kvm_inj_virq,
 #define kvm_trace_sym_exc                                              \
        EXS(DE), EXS(DB), EXS(BP), EXS(OF), EXS(BR), EXS(UD), EXS(NM),  \
        EXS(DF), EXS(TS), EXS(NP), EXS(SS), EXS(GP), EXS(PF), EXS(MF),  \
-       EXS(AC), EXS(MC), EXS(XM), EXS(VE)
+       EXS(AC), EXS(MC), EXS(XM), EXS(VE), EXS(CP)
 
 /*
  * Tracepoint for kvm interrupt injection: