Sync/apx 20260806 - #588
Merged
Merged
Conversation
Add test suite for Intel APX (Advanced Performance Extensions) covering:
CPUID enumeration (4 tests):
- Feature bit, XSAVE/OSXSAVE, XCR0[19], XSAVE area size/offset
XSAVE state component 19 (5 tests):
- State size/offset validation, signal/fork/context-switch preservation
Direct EGPR access (3 tests):
- Individual R16-R31 read/write, simultaneous 16-register load, syscall
APX instruction encodings (13 tests):
- NDD (add/sub/and/or/xor/shl/shr), NF (add/sub/inc/dec),
CFCMOV, PUSH2/POP2
Signed-off-by: Xudong Hao <xudong.hao@intel.com>
(cherry picked from commit 305e4e4)
… tests
These tests exercise __copy_xstate_to_uabi_buf() and
copy_uabi_to_xstate() kernel paths modified by the APX commit series.
apx_ptrace (3 tests):
- ptrace_get: PTRACE_GETREGSET reads EGPR via NT_X86_XSTATE
- ptrace_inject: SETREGSET + GETREGSET roundtrip verification
- ptrace_modify: Individual EGPR value injection and readback
apx_sigcontext (5 tests):
- sigctx_magic: FP_XSTATE_MAGIC1/MAGIC2 presence in signal frame
- sigctx_xfeatures: fpx_sw_bytes.xfeatures includes APX bit
- sigctx_xstatebv: XSTATE_BV in XSAVE header includes APX bit
- sigctx_delivery: EGPR data correctly delivered in signal frame
- sigctx_restore: Modified EGPRs in handler persist after sigreturn
apx_ctxsw (1 test):
- ctxsw_threads: 5-thread mutex-handoff on single CPU with
randomized EGPR values, verifying state survives context switches
Signed-off-by: Xudong Hao <xudong.hao@intel.com>
(cherry picked from commit 6b79554)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.