From: Zhong Yang <yang.zhong@intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: yang.zhong@intel.com
Subject: Re: [Qemu-devel] [PATCH] x86/cpufeatures: Enable new AVX512 cpu features
Date: Wed, 18 Oct 2017 18:39:41 +0800 [thread overview]
Message-ID: <20171018103941.GA5506@yangzhon-Virtual> (raw)
In-Reply-To: <33bd9d2f-1b06-d73c-c4a9-5f0e69b8e1d5@redhat.com>
On Wed, Oct 18, 2017 at 12:32:42PM +0200, Paolo Bonzini wrote:
> On 17/10/2017 11:34, Yang Zhong wrote:
> > Intel IceLake cpu has added new cpu features,AVX512VBMI2/GFNI/
> > VAES/AVX512VNNI/AVX512BITALG/VPCLMULQDQ. Those new cpu features
> > need expose to guest VM.
> >
> > The bit definition:
> > CPUID.(EAX=7,ECX=0):ECX[bit 06] AVX512VBMI2
> > CPUID.(EAX=7,ECX=0):ECX[bit 08] GFNI
> > CPUID.(EAX=7,ECX=0):ECX[bit 09] VAES
> > CPUID.(EAX=7,ECX=0):ECX[bit 10] VPCLMULQDQ
> > CPUID.(EAX=7,ECX=0):ECX[bit 11] AVX512VNNI
> > CPUID.(EAX=7,ECX=0):ECX[bit 12] AVX512_BITALG
> >
> > The release document ref below link:
> > https://software.intel.com/sites/default/files/managed/c5/15/
> > architecture-instruction-set-extensions-programming-reference.pdf
> >
> > Signed-off-by: Yang Zhong <yang.zhong@intel.com>
>
> Have you sent the KVM part of this too? I cannot find it.
>
> Paolo
>\
Paolo, Thanks for review my patch!
KVM patch is waiting for our kernel colleague to send kernel side patch,
My KVM patch has some header definition depency with kernel side.
This Qemu patch has been verified on kernel and KVM's patch in newest
kernel release.
for this case, we need wait for KVM patch merged firstly? Many thanks!
Regards,
Yang
> > ---
> > target/i386/cpu.c | 6 +++---
> > target/i386/cpu.h | 6 ++++++
> > 2 files changed, 9 insertions(+), 3 deletions(-)
> >
> > diff --git a/target/i386/cpu.c b/target/i386/cpu.c
> > index 98732cd..03fb8ad 100644
> > --- a/target/i386/cpu.c
> > +++ b/target/i386/cpu.c
> > @@ -435,9 +435,9 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
> > [FEAT_7_0_ECX] = {
> > .feat_names = {
> > NULL, "avx512vbmi", "umip", "pku",
> > - "ospke", NULL, NULL, NULL,
> > - NULL, NULL, NULL, NULL,
> > - NULL, NULL, "avx512-vpopcntdq", NULL,
> > + "ospke", NULL, "avx512vbmi2", NULL,
> > + "gfni", "vaes", "vpclmulqdq", "avx512vnni",
> > + "avx512bitalg", NULL, "avx512-vpopcntdq", NULL,
> > "la57", NULL, NULL, NULL,
> > NULL, NULL, "rdpid", NULL,
> > NULL, NULL, NULL, NULL,
> > diff --git a/target/i386/cpu.h b/target/i386/cpu.h
> > index b086b15..cdbf8b0 100644
> > --- a/target/i386/cpu.h
> > +++ b/target/i386/cpu.h
> > @@ -635,6 +635,12 @@ typedef uint32_t FeatureWordArray[FEATURE_WORDS];
> > #define CPUID_7_0_ECX_UMIP (1U << 2)
> > #define CPUID_7_0_ECX_PKU (1U << 3)
> > #define CPUID_7_0_ECX_OSPKE (1U << 4)
> > +#define CPUID_7_0_ECX_VBMI2 (1U << 6) /* Additional VBMI Instrs */
> > +#define CPUID_7_0_ECX_GFNI (1U << 8)
> > +#define CPUID_7_0_ECX_VAES (1U << 9)
> > +#define CPUID_7_0_ECX_VPCLMULQDQ (1U << 10)
> > +#define CPUID_7_0_ECX_AVX512VNNI (1U << 11)
> > +#define CPUID_7_0_ECX_AVX512BITALG (1U << 12)
> > #define CPUID_7_0_ECX_AVX512_VPOPCNTDQ (1U << 14) /* POPCNT for vectors of DW/QW */
> > #define CPUID_7_0_ECX_LA57 (1U << 16)
> > #define CPUID_7_0_ECX_RDPID (1U << 22)
> >
next prev parent reply other threads:[~2017-10-18 10:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-17 9:34 [Qemu-devel] [PATCH] x86/cpufeatures: Enable new AVX512 cpu features Yang Zhong
2017-10-18 10:32 ` Paolo Bonzini
2017-10-18 10:39 ` Zhong Yang [this message]
2017-10-18 10:40 ` Paolo Bonzini
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=20171018103941.GA5506@yangzhon-Virtual \
--to=yang.zhong@intel.com \
--cc=pbonzini@redhat.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 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).