Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-29 Thread Jan Beulich
>>> On 29.06.16 at 13:37, wrote: > On 29/06/16 11:03, Jan Beulich wrote: > On 29.06.16 at 11:50, wrote: >>> On 29/06/16 03:20, Luwei Kang wrote: --- a/xen/tools/gen-cpuid.py +++ b/xen/tools/gen-cpuid.py @@ -235,6 +235,10 @@ def crunch_numbers(state): # subsequent

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-29 Thread Andrew Cooper
On 29/06/16 11:03, Jan Beulich wrote: On 29.06.16 at 11:50, wrote: >> On 29/06/16 03:20, Luwei Kang wrote: >>> --- a/xen/tools/gen-cpuid.py >>> +++ b/xen/tools/gen-cpuid.py >>> @@ -235,6 +235,10 @@ def crunch_numbers(state): >>> # subsequent instruction groups may only be VEX encoded

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-29 Thread Jan Beulich
>>> On 29.06.16 at 11:50, wrote: > On 29/06/16 03:20, Luwei Kang wrote: >> --- a/xen/tools/gen-cpuid.py >> +++ b/xen/tools/gen-cpuid.py >> @@ -235,6 +235,10 @@ def crunch_numbers(state): >> # subsequent instruction groups may only be VEX encoded. >> AVX: [FMA, FMA4, F16C, AVX2, X

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-29 Thread Andrew Cooper
On 29/06/16 10:50, Andrew Cooper wrote: > On 29/06/16 03:20, Luwei Kang wrote: >> diff --git a/xen/tools/gen-cpuid.py b/xen/tools/gen-cpuid.py >> index 7c45eca..897e660 100755 >> --- a/xen/tools/gen-cpuid.py >> +++ b/xen/tools/gen-cpuid.py >> @@ -235,6 +235,10 @@ def crunch_numbers(state): >>

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-29 Thread Andrew Cooper
On 29/06/16 03:20, Luwei Kang wrote: > AVX-512 is an extention of AVX2. Its spec can be found at: > https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdf > This patch detects AVX-512 features by CPUID. > > Signed-off-by: Luwei Kang > --- > xen/arch/x86/hvm/hvm.c

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-29 Thread Jan Beulich
>>> On 29.06.16 at 03:57, wrote: > AVX-512 is an extention of AVX2. Its spec can be found at: > https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdf > This patch detects AVX-512 features by CPUID. > > Signed-off-by: Luwei Kang > --- Please version your patches (I see the

[Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-28 Thread Luwei Kang
AVX-512 is an extention of AVX2. Its spec can be found at: https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdf This patch detects AVX-512 features by CPUID. Signed-off-by: Luwei Kang --- xen/arch/x86/hvm/hvm.c | 14 ++ xen/arch/x86/traps.c

[Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-28 Thread Luwei Kang
AVX-512 is an extention of AVX2. Its spec can be found at: https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdf This patch detects AVX-512 features by CPUID. Signed-off-by: Luwei Kang --- xen/arch/x86/hvm/hvm.c | 14 ++ xen/arch/x86/traps.c

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-28 Thread Kang, Luwei
OK, no problem. -Original Message- From: Andrew Cooper [mailto:andrew.coop...@citrix.com] Sent: Tuesday, June 28, 2016 4:47 PM To: Kang, Luwei ; xen-devel@lists.xen.org Cc: jbeul...@suse.com; Wang, Yong Y ; Peng, Chao P Subject: Re: [PATCH] x86/cpuid: AVX-512 Feature Detection On 28/0

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-28 Thread Andrew Cooper
On 28/06/16 06:51, Luwei Kang wrote: > @@ -1136,9 +1136,16 @@ void pv_cpuid(struct cpu_user_regs *regs) > case XSTATE_CPUID: > > if ( !is_control_domain(currd) && !is_hardware_domain(currd) ) > +{ > domain_cpuid(currd, 1, 0, &tmp, &tmp, &_ecx, &tmp); > +

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-28 Thread Kang, Luwei
Thanks for your advice, I will make a change right now. -Original Message- From: Jan Beulich [mailto:jbeul...@suse.com] Sent: Tuesday, June 28, 2016 3:49 PM To: Kang, Luwei Cc: andrew.coop...@citrix.com; Peng, Chao P ; Wang, Yong Y ; xen-devel@lists.xen.org Subject: Re: [PATCH] x86/cp

Re: [Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-28 Thread Jan Beulich
>>> On 28.06.16 at 07:51, wrote: > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -3474,6 +3474,14 @@ void hvm_cpuid(unsigned int input, unsigned int *eax, > unsigned int *ebx, >xstate_sizes[_XSTATE_BNDCSR]); > } > > +

[Xen-devel] [PATCH] x86/cpuid: AVX-512 Feature Detection

2016-06-27 Thread Luwei Kang
AVX-512 is an extention of AVX2. Its spec can be found at: https://software.intel.com/sites/default/files/managed/b4/3a/319433-024.pdf This patch detects AVX-512 features by CPUID. Signed-off-by: Luwei Kang --- xen/arch/x86/hvm/hvm.c | 8 xen/arch/x86/traps.c