From: Ben Cheatham <Benjamin.Cheatham@amd.com>
To: <qemu-devel@nongnu.org>
Cc: <pbonzini@redhat.com>, <zhao1.liu@intel.com>,
<babu.moger@amd.com>, "Nikunj A Dadhania" <nikunj@amd.com>,
Ben Cheatham <Benjamin.Cheatham@amd.com>
Subject: [PATCH v2 1/4] target/i386: Add AVX512 Bit Matrix Multiply (BMM) support
Date: Tue, 25 Aug 2026 11:25:41 -0500 [thread overview]
Message-ID: <20260825162544.18633-2-Benjamin.Cheatham@amd.com> (raw)
In-Reply-To: <20260825162544.18633-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 e5ffb10d1565..3ece2e8b279f 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -1435,7 +1435,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 641f3ee5c2fd..9ddbd1c447ba 100644
--- a/target/i386/cpu.h
+++ b/target/i386/cpu.h
@@ -1207,6 +1207,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-08-25 16:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-25 16:25 [PATCH v2 0/4] Add Support for AMD EPYC Zen 6 CPU Model Ben Cheatham
2026-08-25 16:25 ` Ben Cheatham [this message]
2026-08-25 16:25 ` [PATCH v2 2/4] target/i386: Update RAPSIZE definition Ben Cheatham
2026-08-25 16:25 ` [PATCH v2 3/4] target/i386: Add getting RAPSIZE for ERAPS enabled guests Ben Cheatham
2026-08-25 16:25 ` [PATCH v2 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=20260825162544.18633-2-Benjamin.Cheatham@amd.com \
--to=benjamin.cheatham@amd.com \
--cc=babu.moger@amd.com \
--cc=nikunj@amd.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=zhao1.liu@intel.com \
/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.