Clean up AMX cpuid bits XTILE_CFG and XTILE_DATA
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 9 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | KVM: x86: Clear XTILE_CFG if XTILE_DATA is cleararch/ | +4 | 4 replies | |
| 2/3 | KVM: selftests: Hoist XGETBV and XSETBV to make them more accessibletools/ tools/ | +22 | 1 reply | |
| 3/3 | KVM: selftests: Add XCR0 Testtools/ tools/ | +135 | 2 replies |
Reviews trailers per patch
2 of 3 patches have a Reviewed-by or Acked-by.
| Patch | Jim Mattson |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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