Files
linux/tools/testing/selftests/x86/apx.c
T
Chang S. Bae ab6f87ddd0 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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Sohil Mehta <[email protected]>
Cc: Andy Lutomirski <[email protected]>
Cc: H. Peter Anvin <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Oleg Nesterov <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
2025-04-16 09:44:14 +02:00

11 lines
126 B
C

// SPDX-License-Identifier: GPL-2.0
#define _GNU_SOURCE
#include "xstate.h"
int main(void)
{
test_xstate(XFEATURE_APX);
}