]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Advertise AVX512 Bit Matrix Multiply (BMM) to userspace
authorNikunj A Dadhania <nikunj@amd.com>
Tue, 10 Feb 2026 05:35:11 +0000 (05:35 +0000)
committerSean Christopherson <seanjc@google.com>
Thu, 12 Mar 2026 17:56:36 +0000 (10:56 -0700)
commitde0bfdc7137d5132b71dd1fe7aa3ca3df4d68241
tree4b834359b6c289cda68313968793cd896794c866
parent55be358e17af4aa218f173cd6eb17a0dc423cd70
KVM: x86: Advertise AVX512 Bit Matrix Multiply (BMM) to userspace

Advertise AVX512 Bit Matrix Multiply (BMM) and Bit Reversal instructions to
userspace via CPUID leaf 0x80000021_EAX[23]. This feature enables bit
matrix multiply operations and bit reversal.  Like most AVX instructions,
there are no intercept controls for individual instructions, and no extra
work is needed in KVM to enable correct execution of the instructions in
the guest.

The instructions and CPUID feature are first described in:

  AMD64 Bit Matrix Multiply and Bit Reversal Instructions
  Publication #69192 Revision: 1.00
  Issue Date: January 2026

While at it, reorder PREFETCHI in KVM's initialization sequence to match
the CPUID bit position order for better organization.

Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
Link: https://patch.msgid.link/20260210053511.1612505-1-nikunj@amd.com
[sean: massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/cpufeatures.h
arch/x86/kvm/cpuid.c