diff mbox series

[2/2] KVM: Expose AVX_VNNI instruction to guset

Message ID 20210105004909.42000-3-yang.zhong@intel.com (mailing list archive)
State New, archived
Headers show
Series Enumerate and expose AVX_VNNI feature | expand

Commit Message

Yang Zhong Jan. 5, 2021, 12:49 a.m. UTC
Expose AVX (VEX-encoded) versions of the Vector Neural Network
Instructions to guest.

The bit definition:

The following instructions are available when this feature is
present in the guest.
  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

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: Yang Zhong <yang.zhong@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
 arch/x86/kvm/cpuid.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index 83637a2ff605..4229b67f0a8d 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -433,7 +433,7 @@  void kvm_set_cpu_caps(void)
-		F(AVX512_BF16)
+		F(AVX_VNNI) | F(AVX512_BF16)