x86/cpufeature: Add AVX512_VPOPCNTDQ feature
authorPiotr Luc <piotr.luc@intel.com>
Tue, 10 Jan 2017 17:34:02 +0000 (18:34 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 16 Jan 2017 19:40:53 +0000 (20:40 +0100)
commit06b35d93af0a5904aa832f58733be84ddbfe2e04
treefa75df56f0fb3fa38908bec58b014715903ef42a
parent49def1853334396f948dcb4cedb9347abb318df5
x86/cpufeature: Add AVX512_VPOPCNTDQ feature

Vector population count instructions for dwords and qwords are going to be
available in future Intel Xeon & Xeon Phi processors. Bit 14 of
CPUID[level:0x07, ECX] indicates that the instructions are supported by a
processor.

The specification can be found in the Intel Software Developer Manual (SDM)
and in the Instruction Set Extensions Programming Reference (ISE).

Populate the feature bit and clear it when xsave is disabled.

Signed-off-by: Piotr Luc <piotr.luc@intel.com>
Reviewed-by: Borislav Petkov <bp@suse.de>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Cc: Radim Krčmář <rkrcmar@redhat.com>
Link: http://lkml.kernel.org/r/20170110173403.6010-2-piotr.luc@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/fpu/xstate.c
tools/arch/x86/include/asm/cpufeatures.h