]> www.infradead.org Git - users/dwmw2/linux.git/commit
s390/nospec: Push down alternative handling
authorHeiko Carstens <hca@linux.ibm.com>
Tue, 16 Jul 2024 11:50:55 +0000 (13:50 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 23 Jul 2024 14:02:31 +0000 (16:02 +0200)
commit47837a5c74f432ad992239cfa5966543f466d4df
tree87699ed5a83d93168b86c0cd473b30254210bb15
parent7f9d85998f6c5b989796470fd1ac066232c60723
s390/nospec: Push down alternative handling

The nospec implementation is deeply integrated into the alternatives
code: only for nospec an alternative facility list is implemented and
used by the alternative code, while it is modified by nospec specific
needs.

Push down the nospec alternative handling into the nospec by
introducing a new alternative type and a specific nospec callback to
decide if alternatives should be applied.

Also introduce a new global nobp variable which together with facility
82 can be used to decide if nobp is enabled or not.

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Tested-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/alternative.h
arch/s390/include/asm/nospec-branch.h
arch/s390/include/asm/processor.h
arch/s390/kernel/alternative.c
arch/s390/kernel/early.c
arch/s390/kernel/entry.S
arch/s390/kernel/nospec-branch.c
arch/s390/kernel/nospec-sysfs.c