aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/lib/perf_test_util.c
diff options
context:
space:
mode:
authorKyung Min Park <[email protected]>2021-01-05 00:49:08 +0000
committerPaolo Bonzini <[email protected]>2021-02-04 10:27:16 +0000
commitb85a0425d8056f3bd8d0a94ecdddf2a39d32a801 (patch)
tree4d150e857b24b4700b293da0c444bbdbd8af49a2 /tools/testing/selftests/kvm/lib/perf_test_util.c
parentx86: kvm: style: Simplify bool comparison (diff)
downloadkernel-b85a0425d8056f3bd8d0a94ecdddf2a39d32a801.tar.gz
kernel-b85a0425d8056f3bd8d0a94ecdddf2a39d32a801.zip
Enumerate AVX Vector Neural Network instructions
Add AVX version of the Vector Neural Network (VNNI) Instructions. A processor supports AVX VNNI instructions if CPUID.0x07.0x1:EAX[4] is present. The following instructions are available when this feature is present. 1. VPDPBUS: Multiply and Add Unsigned and Signed Bytes 2. VPDPBUSDS: Multiply and Add Unsigned and Signed Bytes with Saturation 3. VPDPWSSD: Multiply and Add Signed Word Integers 4. VPDPWSSDS: Multiply and Add Signed Integers with Saturation The only in-kernel usage of this is kvm passthrough. The CPU feature flag is shown as "avx_vnni" in /proc/cpuinfo. This instruction is currently documented in the latest "extensions" manual (ISE). It will appear in the "main" manual (SDM) in the future. Signed-off-by: Kyung Min Park <[email protected]> Signed-off-by: Yang Zhong <[email protected]> Reviewed-by: Tony Luck <[email protected]> Message-Id: <[email protected]> Acked-by: Borislav Petkov <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/perf_test_util.c')
0 files changed, 0 insertions, 0 deletions