Skip to content

Clean up AMX cpuid bits XTILE_CFG and XTILE_DATA

Aaron Lewis kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 9 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3KVM: x86: Clear XTILE_CFG if XTILE_DATA is cleararch/x86/kvm/cpuid.c+4 -04 replies
2/3KVM: selftests: Hoist XGETBV and XSETBV to make them more accessibletools/testing/selftests/kvm/include/x86_64/processor.h tools/testing/selftests/kvm/x86_64/amx_test.c+22 -211 reply
3/3KVM: selftests: Add XCR0 Testtools/testing/selftests/kvm/Makefile tools/testing/selftests/kvm/x86_64/xcr0_cpuid_test.c+135 -02 replies

Reviews trailers per patch

2 of 3 patches have a Reviewed-by or Acked-by.

PatchJim Mattson
1/3R-b
2/3R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/3] Clean up AMX cpuid bits XTILE_CFG and XTILE_DATA

When running a SPR guest without AMX enabled CPUID.(EAX=0DH,ECX=0):EAX.XTILE_CFG[bit-17] will be set and CPUID.(EAX=0DH,ECX=0):EAX.XTILE_DATA[bit-18] will be clear. While this is architecturally correct it can be a little awkward for userspace or a guest when using them. Instead of leaving the CPUID leaf in a half baked state, either clear them both or leave them both set.

Additionally, add testing to verify the CPUID isn't in such a state.

Aaron Lewis (3):
KVM: x86: Clear XTILE_CFG if XTILE_DATA is clear
KVM: selftests: Hoist XGETBV and XSETBV to make them more accessible
KVM: selftests: Add XCR0 Test

 arch/x86/kvm/cpuid.c                          |   4 +
 tools/testing/selftests/kvm/Makefile          |   1 +
 .../selftests/kvm/include/x86_64/processor.h  |  19 +++
 tools/testing/selftests/kvm/x86_64/amx_test.c |  24 +---
 .../selftests/kvm/x86_64/xcr0_cpuid_test.c    | 134 ++++++++++++++++++
 5 files changed, 161 insertions(+), 21 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/x86_64/xcr0_cpuid_test.c
Signature · 1 line
2.39.0.314.g84b9a713c41-goog