Home
last modified time | relevance | path

Searched refs:TIF_SPEC_IB (Results 1 - 8 of 8) sorted by relevance

/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dspec-ctrl.h58 BUILD_BUG_ON(TIF_SPEC_IB < SPEC_CTRL_STIBP_SHIFT);
59 return (tifn & _TIF_SPEC_IB) >> (TIF_SPEC_IB - SPEC_CTRL_STIBP_SHIFT);
70 BUILD_BUG_ON(TIF_SPEC_IB < SPEC_CTRL_STIBP_SHIFT);
71 return (spec_ctrl & SPEC_CTRL_STIBP) << (TIF_SPEC_IB - SPEC_CTRL_STIBP_SHIFT);
H A Dthread_info.h86 #define TIF_SPEC_IB 9 /* Indirect branch speculation mitigation */ macro
109 #define _TIF_SPEC_IB (1 << TIF_SPEC_IB)
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dspec-ctrl.h58 BUILD_BUG_ON(TIF_SPEC_IB < SPEC_CTRL_STIBP_SHIFT);
59 return (tifn & _TIF_SPEC_IB) >> (TIF_SPEC_IB - SPEC_CTRL_STIBP_SHIFT);
70 BUILD_BUG_ON(TIF_SPEC_IB < SPEC_CTRL_STIBP_SHIFT);
71 return (spec_ctrl & SPEC_CTRL_STIBP) << (TIF_SPEC_IB - SPEC_CTRL_STIBP_SHIFT);
H A Dthread_info.h86 #define TIF_SPEC_IB 9 /* Indirect branch speculation mitigation */ macro
116 #define _TIF_SPEC_IB (1 << TIF_SPEC_IB)
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dprocess.c568 /* Only evaluate TIF_SPEC_IB if conditional STIBP is enabled. */ in __speculation_ctrl_update()
588 set_tsk_thread_flag(tsk, TIF_SPEC_IB); in speculation_ctrl_update_tif()
590 clear_tsk_thread_flag(tsk, TIF_SPEC_IB); in speculation_ctrl_update_tif()
/kernel/linux/linux-6.6/arch/x86/mm/
H A Dtlb.c372 unsigned long spec_bits = (next_tif >> TIF_SPEC_IB) & LAST_USER_MM_SPEC_MASK; in mm_mangle_tif_spec_bits()
378 BUILD_BUG_ON(TIF_SPEC_L1D_FLUSH != TIF_SPEC_IB + 1); in mm_mangle_tif_spec_bits()
412 * which has TIF_SPEC_IB set to a user space task in cond_mitigation()
413 * (potential victim) which has TIF_SPEC_IB not set. in cond_mitigation()
416 * which has TIF_SPEC_IB not set to a user space task in cond_mitigation()
417 * (potential victim) which has TIF_SPEC_IB set. in cond_mitigation()
420 * a task which has TIF_SPEC_IB set is either scheduled in in cond_mitigation()
434 * above cases. Mangle the TIF_SPEC_IB bit into the mm in cond_mitigation()
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dprocess.c635 /* Only evaluate TIF_SPEC_IB if conditional STIBP is enabled. */ in __speculation_ctrl_update()
655 set_tsk_thread_flag(tsk, TIF_SPEC_IB); in speculation_ctrl_update_tif()
657 clear_tsk_thread_flag(tsk, TIF_SPEC_IB); in speculation_ctrl_update_tif()
/kernel/linux/linux-5.10/arch/x86/mm/
H A Dtlb.c45 * Use bit 0 to mangle the TIF_SPEC_IB state into the mm pointer which is
322 unsigned long ibpb = (next_tif >> TIF_SPEC_IB) & LAST_USER_MM_IBPB; in mm_mangle_tif_spec_ib()
349 * which has TIF_SPEC_IB set to a user space task in cond_ibpb()
350 * (potential victim) which has TIF_SPEC_IB not set. in cond_ibpb()
353 * which has TIF_SPEC_IB not set to a user space task in cond_ibpb()
354 * (potential victim) which has TIF_SPEC_IB set. in cond_ibpb()
357 * a task which has TIF_SPEC_IB set is either scheduled in in cond_ibpb()
371 * above cases. Mangle the TIF_SPEC_IB bit into the mm in cond_ibpb()

Completed in 7 milliseconds