]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/x86/apx: Add APX test
authorChang S. Bae <chang.seok.bae@intel.com>
Wed, 16 Apr 2025 02:16:55 +0000 (19:16 -0700)
committerIngo Molnar <mingo@kernel.org>
Wed, 16 Apr 2025 07:44:14 +0000 (09:44 +0200)
commitab6f87ddd0c6d3fb114cdf897eb9839cbd429439
tree01af3796d1872985ae917a2028ba49615fa2b47d
parent50c5b071e2833d2b61e3774cd792620311df157c
selftests/x86/apx: Add APX test

The extended general-purpose registers for APX may contain random data,
which is currently assumed by the xstate testing framework. This allows
the testing of the new userspace feature using the common test code.

Invoke the test entry function from apx.c after enumerating the
state component and adding it to the support list

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Link: https://lore.kernel.org/r/20250416021720.12305-6-chang.seok.bae@intel.com
tools/testing/selftests/x86/Makefile
tools/testing/selftests/x86/apx.c [new file with mode: 0644]
tools/testing/selftests/x86/xstate.c
tools/testing/selftests/x86/xstate.h