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:58 +0000
committerIngo Molnar <[email protected]>2025-03-03 11:04:43 +0000
commit9af9ad85ac44cb754e526d468c3006b48db5dfd8 (patch)
treefed58e4572018c255c3bb30b848ef0899925f9c5 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c
parentx86/speculation: Simplify and make CALL_NOSPEC consistent (diff)
downloadkernel-9af9ad85ac44cb754e526d468c3006b48db5dfd8.tar.gz
kernel-9af9ad85ac44cb754e526d468c3006b48db5dfd8.zip
x86/speculation: Add a conditional CS prefix to CALL_NOSPEC
Retpoline mitigation for spectre-v2 uses thunks for indirect branches. To support this mitigation compilers add a CS prefix with -mindirect-branch-cs-prefix. For an indirect branch in asm, this needs to be added manually. CS prefix is already being added to indirect branches in asm files, but not in inline asm. Add CS prefix to CALL_NOSPEC for inline asm as well. There is no JMP_NOSPEC for inline asm. Reported-by: Josh Poimboeuf <[email protected]> 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