Skip to content

Overhauling amx_test

Mingwei Zhang kvm linux-kselftest lkml 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest13 patches 17 repliesIn review
  2. v27 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- integrate Aaron's 5 commits with minor changes on commit message.
- Add one fix patch for a kernel warning.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13x86/fpu/xstate: Avoid getting xstate address of init_fpstate if fpstate contains the componentarch/x86/kernel/fpu/xstate.c+6 -49 replies
2/13KVM: selftests: x86: Add a working xstate data structuretools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/x86_64/amx_test.c+23 -251 reply
3/13KVM: selftests: x86: Fix an error in comment of amx_testtools/testing/selftests/kvm/x86_64/amx_test.c+4 -10 replies
4/13KVM: selftests: x86: Enable checking on xcomp_bv in amx_testtools/testing/selftests/kvm/x86_64/amx_test.c+1 -00 replies
5/13KVM: selftests: x86: Add check of CR0.TS in the #NM handler in amx_testtools/testing/selftests/kvm/x86_64/amx_test.c+1 -01 reply
6/13KVM: selftests: x86: Add the XFD check to IA32_XFD in #NM handlertools/testing/selftests/kvm/x86_64/amx_test.c+2 -01 reply
7/13KVM: selftests: x86: Fix the checks to XFD_ERR using and operationtools/testing/selftests/kvm/x86_64/amx_test.c+2 -21 reply
8/13KVM: selftests: x86: Repeat the checking of xheader when IA32_XFD[XTILEDATA] is set in amx_testtools/testing/selftests/kvm/x86_64/amx_test.c+10 -00 replies
9/13KVM: selftests: x86: Assert that XTILE is XSAVE-enabledtools/testing/selftests/kvm/x86_64/amx_test.c+1 -60 replies
10/13KVM: selftests: x86: Assert that both XTILE{CFG,DATA} are XSAVE-enabledtools/testing/selftests/kvm/x86_64/amx_test.c+1 -10 replies
11/13KVM: selftests: x86: Remove redundant check that XSAVE is supportedtools/testing/selftests/kvm/x86_64/amx_test.c+1 -71 reply
12/13KVM: selftests: x86: Check that the palette table exists before using ittools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/x86_64/amx_test.c+6 -00 replies
13/13KVM: selftests: x86: Check that XTILEDATA supports XFDtools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/x86_64/amx_test.c+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 00/13] Overhauling amx_test

In this version, I have integrated Aaron's changes to the amx_test. In addition, we also integrated one fix patch for a kernel warning due to xsave address issue.

Patch 1:
Fix a host FPU kernel warning due to missing XTILEDATA in xinit.

Patch 2-8:
Overhaul amx_test. These patches were basically from v2.

Patch 9-13:
Overhaul amx_test from Aaron. I modified the changelog a little bit.

v2 -> v3:
- integrate Aaron's 5 commits with minor changes on commit message.
- Add one fix patch for a kernel warning.

v2:
https://lore.kernel.org/all/[email protected]/

Aaron Lewis (5):
KVM: selftests: x86: Assert that XTILE is XSAVE-enabled
KVM: selftests: x86: Assert that both XTILE{CFG,DATA} are
XSAVE-enabled
KVM: selftests: x86: Remove redundant check that XSAVE is supported
KVM: selftests: x86: Check that the palette table exists before using
it
KVM: selftests: x86: Check that XTILEDATA supports XFD

Mingwei Zhang (8):
x86/fpu/xstate: Avoid getting xstate address of init_fpstate if
fpstate contains the component
KVM: selftests: x86: Add a working xstate data structure
KVM: selftests: x86: Fix an error in comment of amx_test
KVM: selftests: x86: Add check of CR0.TS in the #NM handler in
amx_test
KVM: selftests: x86: Add the XFD check to IA32_XFD in #NM handler
KVM: selftests: x86: Fix the checks to XFD_ERR using and operation
KVM: selftests: x86: Enable checking on xcomp_bv in amx_test
KVM: selftests: x86: Repeat the checking of xheader when
IA32_XFD[XTILEDATA] is set in amx_test

 arch/x86/kernel/fpu/xstate.c                  | 10 ++-
 .../selftests/kvm/include/x86_64/processor.h  | 14 ++++
 tools/testing/selftests/kvm/x86_64/amx_test.c | 80 +++++++++----------
 3 files changed, 59 insertions(+), 45 deletions(-)
Signature · 1 line
2.39.2.637.g21b0678d19-goog