KVM: x86: Expose AVX512_FP16 for supported CPUID
authorCathy Zhang <cathy.zhang@intel.com>
Tue, 8 Dec 2020 03:34:41 +0000 (19:34 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Sat, 12 Dec 2020 00:00:59 +0000 (19:00 -0500)
commit2224fc9efb2d6593fbfb57287e39ba4958b188ba
tree3d7e64cba68df1c030f97ebaeaa5cefb52ff0313
parente1b35da5e624f8b09d2e98845c2e4c84b179d9a4
KVM: x86: Expose AVX512_FP16 for supported CPUID

AVX512_FP16 is supported by Intel processors, like Sapphire Rapids.
It could gain better performance for it's faster compared to FP32
if the precision or magnitude requirements are met. It's availability
is indicated by CPUID.(EAX=7,ECX=0):EDX[bit 23].

Expose it in KVM supported CPUID, then guest could make use of it; no
new registers are used, only new instructions.

Signed-off-by: Cathy Zhang <cathy.zhang@intel.com>
Signed-off-by: Kyung Min Park <kyung.min.park@intel.com>
Acked-by: Dave Hansen <dave.hansen@intel.com>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Message-Id: <20201208033441.28207-3-kyung.min.park@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/cpuid.c