diff options
author | Chang S. Bae <[email protected]> | 2021-10-26 05:25:25 -0700 |
---|---|---|
committer | Borislav Petkov <[email protected]> | 2021-10-28 14:35:27 +0200 |
commit | 101c669d165d341b8c35424eb3878138044394ef (patch) | |
tree | cbc909ffd919ceabc57afb2b6ee3bcb342f9171d /net/lapb/lapb_timer.c | |
parent | 6a3e0651b4a00daa314c59d6e4228dfa7a986983 (diff) |
selftests/x86/amx: Add context switch test
XSAVE state is thread-local. The kernel switches between thread
state at context switch time. Generally, running a selftest for
a while will naturally expose it to some context switching and
and will test the XSAVE code.
Instead of just hoping that the tests get context-switched at
random times, force context-switches on purpose. Spawn off a few
userspace threads and force context-switches between them.
Ensure that the kernel correctly context switches each thread's
unique AMX state.
[ dhansen: bunches of cleanups ]
Signed-off-by: Chang S. Bae <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Signed-off-by: Borislav Petkov <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions