qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Paolo Bonzini <pbonzini@redhat.com>
To: Eduardo Habkost <ehabkost@redhat.com>, He Chen <he.chen@linux.intel.com>
Cc: qemu-devel@nongnu.org, He Chen <he.chen@intel.com>,
	Richard Henderson <rth@twiddle.net>
Subject: Re: [Qemu-devel] [PATCH] x86: add AVX512_VPOPCNTDQ features
Date: Thu, 12 Jan 2017 19:18:20 +0100	[thread overview]
Message-ID: <f08d7b7b-6fdb-73bf-b569-4c8b77b2345a@redhat.com> (raw)
In-Reply-To: <20170112171029.GD27893@thinpad.lan.raisama.net>



On 12/01/2017 18:10, Eduardo Habkost wrote:
> On Tue, Jan 10, 2017 at 03:07:31PM +0800, He Chen wrote:
>> AVX512_VPOPCNTDQ: Vector POPCNT instructions for word and qwords.
>> variable precision.
>>
>> Signed-off-by: He Chen <he.chen@linux.intel.com>
>> ---
>>  target/i386/cpu.c | 2 +-
>>  target/i386/cpu.h | 1 +
>>  2 files changed, 2 insertions(+), 1 deletion(-)
>>
>> diff --git a/target/i386/cpu.c b/target/i386/cpu.c
>> index b0640f1..ae900b5 100644
>> --- a/target/i386/cpu.c
>> +++ b/target/i386/cpu.c
>> @@ -435,7 +435,7 @@ static FeatureWordInfo feature_word_info[FEATURE_WORDS] = {
>>              NULL, "avx512vbmi", "umip", "pku",
>>              "ospke", NULL, NULL, NULL,
>>              NULL, NULL, NULL, NULL,
>> -            NULL, NULL, NULL, NULL,
>> +            NULL, NULL, "vpopcntdq", NULL,
> 
> The patches I see on linux-kernel use the "avx512_vpopcntdq"
> name. Why not use "avx512-vpopcntdq" in QEMU to avoid confusion?

Or without the dash too, for consistency with avx512vbmi.

Paolo

> 
>>              "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 a7f2f60..73edc60 100644
>> --- a/target/i386/cpu.h
>> +++ b/target/i386/cpu.h
>> @@ -630,6 +630,7 @@ 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_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)
>>  
>> -- 
>> 2.7.4
>>
>>
> 

  reply	other threads:[~2017-01-12 18:18 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-10  7:07 [Qemu-devel] [PATCH] x86: add AVX512_VPOPCNTDQ features He Chen
2017-01-12 17:10 ` Eduardo Habkost
2017-01-12 18:18   ` Paolo Bonzini [this message]
2017-01-12 18:35     ` Eduardo Habkost

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=f08d7b7b-6fdb-73bf-b569-4c8b77b2345a@redhat.com \
    --to=pbonzini@redhat.com \
    --cc=ehabkost@redhat.com \
    --cc=he.chen@intel.com \
    --cc=he.chen@linux.intel.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    /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).