summaryrefslogtreecommitdiff
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorChang S. Bae <chang.seok.bae@intel.com>2021-10-26 15:25:25 +0300
committerBorislav Petkov <bp@suse.de>2021-10-28 15:35:27 +0300
commit101c669d165d341b8c35424eb3878138044394ef (patch)
treecbc909ffd919ceabc57afb2b6ee3bcb342f9171d /lib/debugobjects.c
parent6a3e0651b4a00daa314c59d6e4228dfa7a986983 (diff)
downloadlinux-101c669d165d341b8c35424eb3878138044394ef.tar.xz
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 <chang.seok.bae@intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Signed-off-by: Borislav Petkov <bp@suse.de> Link: https://lkml.kernel.org/r/20211026122525.6EFD5758@davehans-spike.ostc.intel.com
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions