All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v3 0/2] Introduce XSAVE/XRSTOR self-test
@ 2021-08-04  9:19 Pengfei Xu
  2021-08-04  9:19 ` [RFC PATCH v3 1/2] selftests/xsave: test basic XSAVE architecture functionality Pengfei Xu
  2021-08-04  9:19 ` [RFC PATCH v3 2/2] selftests/xsave: add xsave test during and after signal handling Pengfei Xu
  0 siblings, 2 replies; 3+ messages in thread
From: Pengfei Xu @ 2021-08-04  9:19 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,
and XSAVE feature is used for process context switching. The XSAVE state
components include x87 state for FPU execution environment, SSE state, AVX
state and so on. In order to ensure that XSAVE works correctly, add XSAVE
basic test for XSAVE architecture functionality.

This patch set tests and verifies the basic functions of XSAVE/XRSTOR in
user space; during and after signal handling on the x86 platform, the
XSAVE contents of the process should not be changed.

This series introduces only the most basic XSAVE tests.  In the
future, the intention is to continue expanding the scope of
these selftests to include more kernel XSAVE-related functionality
and XSAVE-managed features like AMX and shadow stacks.

Pengfei Xu (2):
  selftests/xsave: test basic XSAVE architecture functionality
  selftests/xsave: add xsave test during and after 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] 3+ messages in thread

end of thread, other threads:[~2021-08-04  9:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-04  9:19 [RFC PATCH v3 0/2] Introduce XSAVE/XRSTOR self-test Pengfei Xu
2021-08-04  9:19 ` [RFC PATCH v3 1/2] selftests/xsave: test basic XSAVE architecture functionality Pengfei Xu
2021-08-04  9:19 ` [RFC PATCH v3 2/2] selftests/xsave: add xsave test during and after signal handling Pengfei Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.