]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: Add CPUID support for Intel AMX
authorJing Liu <jing2.liu@intel.com>
Wed, 5 Jan 2022 12:35:27 +0000 (04:35 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jan 2022 18:44:40 +0000 (13:44 -0500)
commitde227e62fde106ebc9e40b778bfad05a60eca0cb
tree5fb056588eb2cbba0f892545ee7ebc582399abcc
parentd291b58498baa2cfa646cb7ba6b592893482ef84
kvm: x86: Add CPUID support for Intel AMX

Extend CPUID emulation to support XFD, AMX_TILE, AMX_INT8 and
AMX_BF16. Adding those bits into kvm_cpu_caps finally activates all
previous logics in this series.

Hide XFD on 32bit host kernels. Otherwise it leads to a weird situation
where KVM tells userspace to migrate MSR_IA32_XFD and then rejects
attempts to read/write the MSR.

Signed-off-by: Jing Liu <jing2.liu@intel.com>
Signed-off-by: Yang Zhong <yang.zhong@intel.com>
Message-Id: <20220105123532.12586-17-yang.zhong@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/cpufeatures.h
arch/x86/kvm/cpuid.c