linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC PATCH v1 0/2] Introduce XSAVE/XRSTOR self-test
@ 2021-07-27  3:34 Pengfei Xu
  2021-07-27  3:34 ` [RFC PATCH v1 1/2] selftests/xsave: test basic XSAVE architecture functionality Pengfei Xu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Pengfei Xu @ 2021-07-27  3:34 UTC (permalink / raw)
  To: Shuah Khan, linux-kselftest, linux-kernel
  Cc: Pengfei Xu, Heng Su, Yu Yu-cheng, Yu Fenghua, Hansen Dave,
	Luck Tony, Mehta Sohil, Chen Yu C

The XSAVE feature set supports the saving and restoring of state components
such as FPU, which is used for process context switching.
In order to ensure that XSAVE works correctly, add XSAVE basic test for
XSAVE architecture functionality.

This patch set tests XSAVE/XRSTOR instructions on x86 platforms and verify if
the XSAVE/XRSTOR works correctly during signal handling.

Cases such as signal handling, process creation, other xstate(except FPU)
tests for XSAVE check, etc. will be added to the Linux kernel self-test.
If appropriate, it is even planned to add the [1] mentioned XSAVE issues
reproduce and some XSAVE anomaly tests to the kernel self-test.

[1]: https://lore.kernel.org/lkml/0000000000004c453905c30f8334@google.com/

Pengfei Xu (2):
  selftests/xsave: test basic XSAVE architecture functionality
  selftests/xsave: add xsave test during signal handling

 tools/testing/selftests/Makefile              |   1 +
 tools/testing/selftests/xsave/.gitignore      |   3 +
 tools/testing/selftests/xsave/Makefile        |   6 +
 tools/testing/selftests/xsave/xsave_common.h  | 246 ++++++++++++++++++
 .../selftests/xsave/xsave_instruction.c       |  83 ++++++
 .../selftests/xsave/xsave_signal_handle.c     | 184 +++++++++++++
 6 files changed, 523 insertions(+)
 create mode 100644 tools/testing/selftests/xsave/.gitignore
 create mode 100644 tools/testing/selftests/xsave/Makefile
 create mode 100644 tools/testing/selftests/xsave/xsave_common.h
 create mode 100644 tools/testing/selftests/xsave/xsave_instruction.c
 create mode 100644 tools/testing/selftests/xsave/xsave_signal_handle.c

-- 
2.20.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-28  7:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-27  3:34 [RFC PATCH v1 0/2] Introduce XSAVE/XRSTOR self-test Pengfei Xu
2021-07-27  3:34 ` [RFC PATCH v1 1/2] selftests/xsave: test basic XSAVE architecture functionality Pengfei Xu
2021-07-27  3:34 ` [RFC PATCH v1 2/2] selftests/xsave: add xsave test during signal handling Pengfei Xu
2021-07-27 17:46 ` [RFC PATCH v1 0/2] Introduce XSAVE/XRSTOR self-test Dave Hansen
2021-07-28  7:18   ` Pengfei Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).