]> xenbits.xensource.com Git - libvirt.git/commitdiff
cpu_map: Add cpu feature amx
authorLin Yang <lin.a.yang@intel.com>
Tue, 13 Sep 2022 19:30:31 +0000 (12:30 -0700)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 4 Nov 2022 10:55:21 +0000 (11:55 +0100)
AMX was introduced in QEMU commit 1f16764f7d4515bfd5e4ae0aae814fa280a7d0c8.

Signed-off-by: Lin Yang <lin.a.yang@intel.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/cpu_map/sync_qemu_i386.py
src/cpu_map/x86_features.xml

index 4dd9f3b84dbec742e68bdda317adcdafd0132e61..6a46f87cff1c3513ae4e7dbdf54b73ab4dd31365 100755 (executable)
@@ -72,6 +72,9 @@ def translate_feature(name):
         "CPUID_7_0_EDX_SPEC_CTRL": "spec-ctrl",
         "CPUID_7_0_EDX_SPEC_CTRL_SSBD": "ssbd",
         "CPUID_7_0_EDX_STIBP": "stibp",
+        "CPUID_7_0_EDX_AMX_BF16": "amx-bf16",
+        "CPUID_7_0_EDX_AMX_TILE": "amx-tile",
+        "CPUID_7_0_EDX_AMX_INT8": "amx-int8",
         "CPUID_7_1_EAX_AVX512_BF16": "avx512-bf16",
         "CPUID_7_1_EAX_AVX_VNNI": "avx-vnni",
         "CPUID_8000_0008_EBX_AMD_SSBD": "amd-ssbd",
index 4cf3ff0804d9bf3d4f8864d6b217158a15a71ab1..102d39f626892761b75cd2c8406da19ff3670fb1 100644 (file)
   <feature name='pconfig'>
     <cpuid eax_in='0x07' ecx_in='0x00' edx='0x00040000'/>
   </feature>
+  <feature name='amx-bf16'>
+    <cpuid eax_in='0x07' ecx_in='0x00' edx='0x00400000'/>
+  </feature>
+  <feature name='amx-tile'>
+    <cpuid eax_in='0x07' ecx_in='0x00' edx='0x01000000'/>
+  </feature>
+  <feature name='amx-int8'>
+    <cpuid eax_in='0x07' ecx_in='0x00' edx='0x02000000'/>
+  </feature>
   <feature name='spec-ctrl'>
     <cpuid eax_in='0x07' ecx_in='0x00' edx='0x04000000'/>
   </feature>