From: Ben Cheatham <Benjamin.Cheatham@amd.com>
To: <qemu-devel@nongnu.org>
Cc: <babu.moger@amd.com>, Nikunj A Dadhania <nikunj@amd.com>,
Ben Cheatham <Benjamin.Cheatham@amd.com>
Subject: [PATCH 1/4] target/i386: Add AVX512 Bit Matrix Multiply (BMM) support
Date: Tue, 30 Jun 2026 10:33:12 -0500 [thread overview]
Message-ID: <20260630153315.1585-2-Benjamin.Cheatham@amd.com> (raw)
In-Reply-To: <20260630153315.1585-1-Benjamin.Cheatham@amd.com>
From: Nikunj A Dadhania <nikunj@amd.com>
Add the AVX512 Bit Matrix Multiply feature flag at CPUID leaf
0x80000021_EAX[23], enabling guests to detect and use BMM instructions
for accelerated bit matrix multiply operations. Add the "avx512-bmm"
feature name to allow QEMU to expose this capability when available on
the host.
avx512-bmm: AVX512 Bit Matrix Multiply instruction
Signed-off-by: Nikunj A Dadhania <nikunj@amd.com>
Signed-off-by: Ben Cheatham <Benjamin.Cheatham@amd.com>
---
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 8929a75c7c92..a85cc67700fa 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1434,7 +1434,7 @@ FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
"auto-ibrs", NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
NULL, NULL, NULL, NULL,
- "prefetchi", NULL, NULL, NULL,
+ "prefetchi", NULL, NULL, "avx512-bmm",
"eraps", NULL, NULL, "sbpb",
"ibpb-brtype", "srso-no", "srso-user-kernel-no", NULL,
},
diff --git a/target/i386/cpu.h b/target/i386/cpu.h
index 67e2ecf32517..e66333cd9c24 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -1200,6 +1200,8 @@ uint64_t x86_cpu_get_supported_feature_word(X86CPU *cpu, FeatureWord w);
#define CPUID_8000_0021_EAX_AUTO_IBRS (1U << 8)
/* Indicates support for IC prefetch */
#define CPUID_8000_0021_EAX_PREFETCHI (1U << 20)
+/* AVX512 Bit Matrix Multiply (BMM) instruction support */
+#define CPUID_8000_0021_EAX_AVX512_BMM (1U << 23)
/* Enhanced Return Address Predictor Scurity */
#define CPUID_8000_0021_EAX_ERAPS (1U << 24)
/* Selective Branch Predictor Barrier */
--
2.53.0
next prev parent reply other threads:[~2026-06-30 15:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 15:33 [PATCH 0/4] Add Support for AMD EPYC Zen 6 CPU Model Ben Cheatham
2026-06-30 15:33 ` Ben Cheatham [this message]
2026-06-30 15:33 ` [PATCH 2/4] target/i386: Update RAPSIZE definition Ben Cheatham
2026-06-30 15:33 ` [PATCH 3/4] target/i386: Add getting RAPSIZE for ERAPS enabled guests Ben Cheatham
2026-06-30 16:07 ` Shah, Amit
2026-06-30 16:38 ` Cheatham, Benjamin
2026-06-30 15:33 ` [PATCH 4/4] target/i386: Add EPYC-Venice CPU model Ben Cheatham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260630153315.1585-2-Benjamin.Cheatham@amd.com \
--to=benjamin.cheatham@amd.com \
--cc=babu.moger@amd.com \
--cc=nikunj@amd.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.