aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/x86/nested_exceptions_test.c
diff options
context:
space:
mode:
authorPawan Gupta <[email protected]>2025-03-01 02:35:43 +0000
committerIngo Molnar <[email protected]>2025-03-03 11:04:42 +0000
commit010c4a461c1dbf3fa75ddea8df018a6128b700c6 (patch)
tree95999d67481295dc4731a3b332748e5ddbb47cd1 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c
parentLinux 6.14-rc5 (diff)
downloadkernel-010c4a461c1dbf3fa75ddea8df018a6128b700c6.tar.gz
kernel-010c4a461c1dbf3fa75ddea8df018a6128b700c6.zip
x86/speculation: Simplify and make CALL_NOSPEC consistent
CALL_NOSPEC macro is used to generate Spectre-v2 mitigation friendly indirect branches. At compile time the macro defaults to indirect branch, and at runtime those can be patched to thunk based mitigations. This approach is opposite of what is done for the rest of the kernel, where the compile time default is to replace indirect calls with retpoline thunk calls. Make CALL_NOSPEC consistent with the rest of the kernel, default to retpoline thunk at compile time when CONFIG_MITIGATION_RETPOLINE is enabled. Signed-off-by: Pawan Gupta <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Cc: Andrew Cooper <[email protected] Cc: Linus Torvalds <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions