* [PATCH] target/i386: Add support for AMX-COMPLEX in CPUID enumeration
@ 2023-08-30 7:43 Tao Su
2023-08-30 10:41 ` Paolo Bonzini
0 siblings, 1 reply; 3+ messages in thread
From: Tao Su @ 2023-08-30 7:43 UTC (permalink / raw)
To: qemu-devel; +Cc: pbonzini, xiaoyao.li, tao1.su
Latest Intel platform GraniteRapids-D introduces AMX-COMPLEX, which adds
two instructions to perform matrix multiplication of two tiles containing
complex elements and accumulate the results into a packed single precision
tile.
AMX-COMPLEX is enumerated via CPUID.(EAX=7,ECX=1):EDX[bit 8]. Add the CPUID
definition for AMX-COMPLEX, AMX-COMPLEX will be enabled automatically when
using '-cpu host' and KVM advertises AMX-COMPLEX to userspace.
Signed-off-by: Tao Su <tao1.su@linux.intel.com>
Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
---
KVM part of advertising AMX-COMPLEX CPUID bit already has been applied to
kvm-x86 misc.
[1/1] KVM: x86: Advertise AMX-COMPLEX CPUID to userspace
https://github.com/kvm-x86/linux/commit/99b668545356
---
target/i386/cpu.c | 2 +-
target/i386/cpu.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index 00f913b638..24ee67b42d 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -980,7 +980,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
.feat_names = {
NULL, NULL, NULL, NULL,
"avx-vnni-int8", "avx-ne-convert", NULL, NULL,
- NULL, NULL, NULL, NULL,
+ "amx-complex", NULL, NULL, NULL,
NULL, NULL, "prefetchiti", NULL,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index a6000e93bd..fbb05eace5 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -930,6 +930,8 @@ uint64_t x86_cpu_get_supported_feature_word(FeatureWord w,
#define CPUID_7_1_EDX_AVX_VNNI_INT8 (1U << 4)
/* AVX NE CONVERT Instructions */
#define CPUID_7_1_EDX_AVX_NE_CONVERT (1U << 5)
+/* AMX COMPLEX Instructions */
+#define CPUID_7_1_EDX_AMX_COMPLEX (1U << 8)
/* PREFETCHIT0/1 Instructions */
#define CPUID_7_1_EDX_PREFETCHITI (1U << 14)
base-commit: 813bac3d8d70d85cb7835f7945eb9eed84c2d8d0
--
2.34.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] target/i386: Add support for AMX-COMPLEX in CPUID enumeration
2023-08-30 7:43 [PATCH] target/i386: Add support for AMX-COMPLEX in CPUID enumeration Tao Su
@ 2023-08-30 10:41 ` Paolo Bonzini
2023-08-30 12:43 ` Tao Su
0 siblings, 1 reply; 3+ messages in thread
From: Paolo Bonzini @ 2023-08-30 10:41 UTC (permalink / raw)
To: Tao Su; +Cc: qemu-devel, pbonzini, xiaoyao.li
Queued, thanks.
Paolo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] target/i386: Add support for AMX-COMPLEX in CPUID enumeration
2023-08-30 10:41 ` Paolo Bonzini
@ 2023-08-30 12:43 ` Tao Su
0 siblings, 0 replies; 3+ messages in thread
From: Tao Su @ 2023-08-30 12:43 UTC (permalink / raw)
To: Paolo Bonzini; +Cc: qemu-devel, xiaoyao.li
On Wed, Aug 30, 2023 at 12:41:11PM +0200, Paolo Bonzini wrote:
> Queued, thanks.
Thanks Paolo!
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-08-30 12:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-30 7:43 [PATCH] target/i386: Add support for AMX-COMPLEX in CPUID enumeration Tao Su
2023-08-30 10:41 ` Paolo Bonzini
2023-08-30 12:43 ` Tao Su
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).