KVM: x86: expose AVX512_BF16 feature to guest
authorJing Liu <jing2.liu@linux.intel.com>
Thu, 11 Jul 2019 05:49:57 +0000 (13:49 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Jul 2019 10:49:30 +0000 (12:49 +0200)
commit0b774629512057b4becc705e2495220844e6e795
treed2e505c37161a274d8655acac0d727a7300b1582
parent964a4eacef67503a1154f7e0a75f52fbdce52022
KVM: x86: expose AVX512_BF16 feature to guest

AVX512 BFLOAT16 instructions support 16-bit BFLOAT16 floating-point
format (BF16) for deep learning optimization.

Intel adds AVX512 BFLOAT16 feature in CooperLake, which is CPUID.7.1.EAX[5].

Detailed information of the CPUID bit can be found here,
https://software.intel.com/sites/default/files/managed/c5/15/\
architecture-instruction-set-extensions-programming-reference.pdf.

Signed-off-by: Jing Liu <jing2.liu@linux.intel.com>
[Fix type mismatch in min, changing constant "1" to "1u". - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c