x86/process: Make room for TIF_SPEC_L1D_FLUSH
authorBalbir Singh <sblbir@amazon.com>
Mon, 26 Apr 2021 20:09:43 +0000 (22:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 28 Jul 2021 09:42:24 +0000 (11:42 +0200)
commit8aacd1eab53ec853c2d29cdc9b64e9dc87d2a519
treefb6af7af5895181f1b67f4646a02771684e77f3c
parent58e106e725eed59896b9141a1c9a917d2f67962a
x86/process: Make room for TIF_SPEC_L1D_FLUSH

The upcoming support for paranoid L1D flush in switch_mm() requires that
TIF_SPEC_IB and the new TIF_SPEC_L1D_FLUSH are two consecutive bits in
thread_info::flags.

Move TIF_SPEC_FORCE_UPDATE to a spare bit to make room for the new one.

Suggested-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Balbir Singh <sblbir@amazon.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20210108121056.21940-1-sblbir@amazon.com
arch/x86/include/asm/thread_info.h