Skip to content

x86: support AVX10

Jan Beulich xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest16 patches 1 replyIn review
  2. v29 patches 4 repliesSuperseded
  3. v18 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/16x86/CPUID: enable AVX10 leafxen/arch/x86/cpu-policy.c xen/arch/x86/cpuid.c xen/include/public/arch-x86/cpufeatureset.h +4 more+97 -30 replies
2/16x86emul: support AVX10.1CHANGELOG.md xen/arch/x86/include/asm/cpufeature.h xen/arch/x86/x86_emulate/private.h +3 more+159 -1560 replies
3/16x86emul/test: use simd_check_avx512*() in main()tools/tests/x86_emulator/test_x86_emulator.c+42 -320 replies
4/16x86emul/test: drop cpu_has_avx512vltools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/test_x86_emulator.c tools/tests/x86_emulator/x86-emulate.h+7 -80 replies
5/16x86emul: AVX10.1 testingtools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/test_x86_emulator.c tools/tests/x86_emulator/testcase.mk +2 more+185 -550 replies
6/16x86emul/test: engage AVX512VL via command line optiontools/tests/x86_emulator/simd.h tools/tests/x86_emulator/testcase.mk+2 -60 replies
7/16x86emul: support AVX10.2 256-bit embedded rounding / SAExen/arch/x86/x86_emulate/decode.c xen/arch/x86/x86_emulate/private.h xen/arch/x86/x86_emulate/x86_emulate.c+52 -230 replies
8/16x86emul: support AVX10.2 scalar compare insnstools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c tools/tests/x86_emulator/x86-emulate.h +3 more+40 -70 replies
9/16x86emul: support AVX10.2 partial copy insnstools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c xen/arch/x86/x86_emulate/decode.c +1 more+29 -150 replies
10/16x86emul: support AVX10.2 media insnstools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c xen/arch/x86/x86_emulate/decode.c +1 more+56 -20 replies
11/16x86emul: support AVX10.2 minmax insnstools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c xen/arch/x86/x86_emulate/decode.c +1 more+33 -00 replies
12/16x86emul: support AVX10.2 BFloat16 insnstools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c xen/arch/x86/x86_emulate/decode.c +1 more+125 -140 replies
13/16x86emul: support AVX10.2 saturating convert insnstools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c xen/arch/x86/x86_emulate/decode.c +1 more+114 -00 replies
14/16x86emul: support other AVX10.2 convert insnstools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c xen/arch/x86/x86_emulate/decode.c +1 more+87 -00 replies
15/16x86emul: support SIMD MOVRStools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c tools/tests/x86_emulator/x86-emulate.h +1 more+25 -00 replies
16/16x86emul: support AVX10.2 forms of SM4 insnstools/tests/x86_emulator/evex-disp8.c tools/tests/x86_emulator/predicates.c xen/arch/x86/x86_emulate/decode.c +1 more+17 -10 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/16] x86: support AVX10

AVX10.1 is just a re-branding of certain AVX512 (sub)features, i.e. adds no new instructions. Therefore it's mostly relaxation that needs doing, plus dealing with the 256-bit-only case that AVX512 itself does not allow for. Luckily an unnecessary restriction on the mask register insns was taken out again, simplifying the actual emulator adjustments quite a bit.

AVX10.2 is adding quite a few new insns, support for which (new in v3) is roughly added chapter-wise as the spec has them (perhaps not in the order of the chapters there).

While it probably can be rebased ahead, the series in this form depends on the previously submitted "[PATCH v5 0/3] x86/CPUID: leaf pruning". It also is assumed to go on top of "[PATCH v7 0/7] x86emul:
misc additions", albeit at most contextual dependencies ought to exit there.

I've tried to be very careful in rebasing ahead of other emulator patches I've been carrying, but almost all testing I've done is with all of those collectively in place.

01: x86/CPUID: enable AVX10 leaf
02: x86emul: support AVX10.1
03: x86emul/test: use simd_check_avx512*() in main() 04: x86emul/test: drop cpu_has_avx512vl
05: x86emul: AVX10.1 testing
06: x86emul/test: engage AVX512VL via command line option 07: x86emul: support AVX10.2 256-bit embedded rounding / SAE 08: x86emul: support AVX10.2 scalar compare insns 09: x86emul: support AVX10.2 partial copy insns 10: x86emul: support AVX10.2 media insns
11: x86emul: support AVX10.2 minmax insns
12: x86emul: support AVX10.2 media insns
13: x86emul: support AVX10.2 saturating convert insns 14: x86emul: support other AVX10.2 convert insns 15: x86emul: support SIMD MOVRS
16: x86emul: support AVX10.2 forms of SM4 insns

Jan