x86/speculation: Add spectre_v2=ibrs option to support Kernel IBRS
authorPawan Gupta <pawan.kumar.gupta@linux.intel.com>
Tue, 14 Jun 2022 21:15:55 +0000 (23:15 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 27 Jun 2022 08:33:59 +0000 (10:33 +0200)
commit7c693f54c873691a4b7da05c7e0f74e67745d144
treefba33f356c8c7a3db8efd45f6fa5ed364912ebab
parentc779bc1a9002fa474175b80e72b85c9bf628abb0
x86/speculation: Add spectre_v2=ibrs option to support Kernel IBRS

Extend spectre_v2= boot option with Kernel IBRS.

  [jpoimboe: no STIBP with IBRS]

Signed-off-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org>
Signed-off-by: Borislav Petkov <bp@suse.de>
Documentation/admin-guide/kernel-parameters.txt
arch/x86/include/asm/nospec-branch.h
arch/x86/kernel/cpu/bugs.c