Skip to content

Commit f2f5519

Browse files
committed
KVM: x86: Define Control Protection Exception (#CP) vector
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>
1 parent d37cc48 commit f2f5519

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arch/x86/include/uapi/asm/kvm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
#define MC_VECTOR 18
3636
#define XM_VECTOR 19
3737
#define VE_VECTOR 20
38+
#define CP_VECTOR 21
3839

3940
/* Select x86 specific features in <linux/kvm.h> */
4041
#define __KVM_HAVE_PIT

arch/x86/kvm/trace.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ TRACE_EVENT(kvm_inj_virq,
462462
#define kvm_trace_sym_exc \
463463
EXS(DE), EXS(DB), EXS(BP), EXS(OF), EXS(BR), EXS(UD), EXS(NM), \
464464
EXS(DF), EXS(TS), EXS(NP), EXS(SS), EXS(GP), EXS(PF), EXS(MF), \
465-
EXS(AC), EXS(MC), EXS(XM), EXS(VE)
465+
EXS(AC), EXS(MC), EXS(XM), EXS(VE), EXS(CP)
466466

467467
/*
468468
* Tracepoint for kvm interrupt injection:

0 commit comments

Comments
 (0)