x86/ibt: Add IBT feature, MSR and #CP handling
The bits required to make the hardware go.. Of note is that, provided the syscall entry points are covered with ENDBR, #CP doesn't need to be an IST because we'll never hit the syscall gap. Signed-off-by:Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by:
Josh Poimboeuf <jpoimboe@redhat.com> Link: https://lore.kernel.org/r/20220308154318.582331711@infradead.org
Showing
- arch/x86/include/asm/cpu.h 1 addition, 0 deletionsarch/x86/include/asm/cpu.h
- arch/x86/include/asm/cpufeatures.h 1 addition, 0 deletionsarch/x86/include/asm/cpufeatures.h
- arch/x86/include/asm/idtentry.h 5 additions, 0 deletionsarch/x86/include/asm/idtentry.h
- arch/x86/include/asm/msr-index.h 19 additions, 1 deletionarch/x86/include/asm/msr-index.h
- arch/x86/include/asm/traps.h 2 additions, 0 deletionsarch/x86/include/asm/traps.h
- arch/x86/include/uapi/asm/processor-flags.h 2 additions, 0 deletionsarch/x86/include/uapi/asm/processor-flags.h
- arch/x86/kernel/cpu/common.c 24 additions, 1 deletionarch/x86/kernel/cpu/common.c
- arch/x86/kernel/idt.c 4 additions, 0 deletionsarch/x86/kernel/idt.c
- arch/x86/kernel/traps.c 75 additions, 0 deletionsarch/x86/kernel/traps.c
Loading