Re: [Qemu-devel] [PATCH] tests: acpi: extend cphp and memhp testcase with numa distance check

2017-05-03 Thread He Chen
On Wed, May 03, 2017 at 04:33:04PM -0300, Eduardo Habkost wrote: > On Wed, May 03, 2017 at 03:07:05PM +0200, Igor Mammedov wrote: > > On Wed, 3 May 2017 17:17:16 +0800 > > He Chen wrote: > > > > > Signed-off-by: He Chen > > Reviewed-by: Igor Mammed

[Qemu-devel] [PATCH] tests: acpi: extend cphp and memhp testcase with numa distance check

2017-05-03 Thread He Chen
Signed-off-by: He Chen --- tests/bios-tables-test.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/tests/bios-tables-test.c b/tests/bios-tables-test.c index 88dbf97..c593165 100644 --- a/tests/bios-tables-test.c +++ b/tests/bios-tables-test.c @@ -710,7

Re: [Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes

2017-04-28 Thread He Chen
On Thu, Apr 27, 2017 at 05:25:51PM -0300, Eduardo Habkost wrote: > On Thu, Apr 27, 2017 at 04:46:26PM +0200, Igor Mammedov wrote: > > On Thu, 27 Apr 2017 16:05:42 +0200 > > Markus Armbruster wrote: > > > Igor Mammedov writes: > > > > On Thu, 27 Apr 2017 07:54:31 -0500 > > > > Eric Blake wrote: >

[Qemu-devel] [PATCH v9] Allow setting NUMA distance for different NUMA nodes

2017-04-26 Thread He Chen
,dst=3,val=31 \ -numa dist,src=2,dst=3,val=21 \ ``` Signed-off-by: He Chen --- Changes since v8: * numa_{node, distance}_parse --> parse_numa_{node, distance} * Comments refinement. Changes since v7: * Remove unnecessary node present check. * Minor improvement on prompt message. Changes since

[Qemu-devel] [PATCH v8] Allow setting NUMA distance for different NUMA nodes

2017-04-24 Thread He Chen
,dst=3,val=31 \ -numa dist,src=2,dst=3,val=21 \ ``` Signed-off-by: He Chen --- Changes since v7: * Remove unnecessary node present check. * Minor improvement on prompt message. Changes since v6: * Split validate_numa_distance into 2 separate functions. * Add comments before validate and complete

Re: [Qemu-devel] [PATCH v7] Allow setting NUMA distance for different NUMA nodes

2017-04-24 Thread He Chen
On Fri, Apr 21, 2017 at 11:53:01AM +0200, Igor Mammedov wrote: > On Fri, 21 Apr 2017 15:32:15 +0800 > He Chen wrote: > ... > > +static void validate_numa_distance(void) > > +{ > > +int src, dst; > > +bool is_asymmetrical = false; > > + > >

[Qemu-devel] [PATCH v7] Allow setting NUMA distance for different NUMA nodes

2017-04-21 Thread He Chen
,dst=3,val=31 \ -numa dist,src=2,dst=3,val=21 \ ``` Signed-off-by: He Chen --- Changes since v6: * split validate_numa_distance into 2 separate functions. * Add comments before validate and complete numa distance functions. Changes since v5: * Made the generation of the SLIT dependent on

Re: [Qemu-devel] [PATCH v6] Allow setting NUMA distance for different NUMA nodes

2017-04-20 Thread He Chen
On Wed, Apr 19, 2017 at 04:14:40PM +0200, Igor Mammedov wrote: > On Tue, 11 Apr 2017 16:49:26 +0800 > He Chen wrote: > > > This patch is going to add SLIT table support in QEMU, and provides > > additional option `dist` for command `-numa` to allow user set vNUMA > &g

Re: [Qemu-devel] [PATCH v6] Allow setting NUMA distance for different NUMA nodes

2017-04-16 Thread He Chen
On Tue, Apr 11, 2017 at 08:18:49AM -0500, Eric Blake wrote: > On 04/11/2017 03:49 AM, He Chen wrote: > > This patch is going to add SLIT table support in QEMU, and provides > > additional option `dist` for command `-numa` to allow user set vNUMA > > distance by QEMU comman

[Qemu-devel] [PATCH v6] Allow setting NUMA distance for different NUMA nodes

2017-04-11 Thread He Chen
,dst=3,val=31 \ -numa dist,src=2,dst=3,val=21 \ ``` Signed-off-by: He Chen --- hw/acpi/aml-build.c | 25 +++ hw/i386/acpi-build.c| 4 ++ include/hw/acpi/aml-build.h | 1 + include/sysemu/numa.h | 2 + include/sysemu/sysemu.h | 4 ++ numa.c

[Qemu-devel] [PATCH v5] Allow setting NUMA distance for different NUMA nodes

2017-04-05 Thread He Chen
,dst=3,val=31 \ -numa dist,src=2,dst=3,val=21 \ ``` Signed-off-by: He Chen --- hw/acpi/aml-build.c | 25 + hw/i386/acpi-build.c| 2 + include/hw/acpi/aml-build.h | 1 + include/sysemu/numa.h | 1 + include/sysemu/sysemu.h | 4 ++ numa.c

Re: [Qemu-devel] [PATCH v4] Allow setting NUMA distance for different NUMA nodes

2017-04-05 Thread He Chen
On Mon, Apr 03, 2017 at 01:58:34PM -0500, Eric Blake wrote: > On 04/03/2017 03:38 AM, Andrew Jones wrote: > > On Sat, Apr 01, 2017 at 06:25:26PM +0800, He Chen wrote: > >> Current, QEMU does not provide a clear command to set vNUMA distance for > >> guest although we a

Re: [Qemu-devel] [PATCH v4] Allow setting NUMA distance for different NUMA nodes

2017-04-05 Thread He Chen
On Mon, Apr 03, 2017 at 10:38:51AM +0200, Andrew Jones wrote: > On Sat, Apr 01, 2017 at 06:25:26PM +0800, He Chen wrote: > > Current, QEMU does not provide a clear command to set vNUMA distance for > > guest although we already have `-numa` command to set vNUMA nodes. > > >

[Qemu-devel] [PATCH v4] Allow setting NUMA distance for different NUMA nodes

2017-04-01 Thread He Chen
src=2,dst=1,val=21 \ -numa dist,src=2,dst=2,val=10 \ -numa dist,src=2,dst=3,val=21 \ -numa dist,src=3,dst=0,val=41 \ -numa dist,src=3,dst=1,val=31 \ -numa dist,src=3,dst=2,val=21 \ -numa dist,src=3,dst=3,val=10 \ ``` Signed-off-by: He Chen --- hw/acpi/aml-build.c | 26 + hw

Re: [Qemu-devel] [PATCH v3] Allow setting NUMA distance for different NUMA nodes

2017-03-29 Thread He Chen
On Thu, Mar 23, 2017 at 10:29:55AM +0100, Igor Mammedov wrote: > On Wed, 22 Mar 2017 17:32:46 +0800 > He Chen wrote: > > > Current, QEMU does not provide a clear command to set vNUMA distance for > > guest although we already have `-numa` command to set vNUMA nodes. > >

Re: [Qemu-devel] [PATCH v3] Allow setting NUMA distance for different NUMA nodes

2017-03-23 Thread He Chen
On Wed, Mar 22, 2017 at 11:34:05AM +0100, Andrew Jones wrote: > > You should have CC'ed me, considering this version is addressing my > review comments, but whatever, I usually skim the list so I found it... > > On Wed, Mar 22, 2017 at 05:32:46PM +0800, He Chen wrote: > &

[Qemu-devel] [PATCH v3] Allow setting NUMA distance for different NUMA nodes

2017-03-22 Thread He Chen
ze=1G,prealloc=yes,host-nodes=3,policy=bind,id=node3 \ -numa node,nodeid=3,cpus=3,memdev=node3 \ -numa dist,src=0,dst=1,val=21 \ -numa dist,src=0,dst=2,val=31 \ -numa dist,src=0,dst=3,val=41 \ -numa dist,src=1,dst=0,val=21 \ ... ``` Signed-off-by: He Chen fix --- hw/acpi/aml-build.c

[Qemu-devel] [PATCH v2] x86: Allow to set NUMA distance for different NUMA nodes

2017-03-16 Thread He Chen
ze=1G,prealloc=yes,host-nodes=3,policy=bind,id=node3 \ -numa node,nodeid=3,cpus=3,memdev=node3 \ -numa dist,src=0,dst=1,val=21 \ -numa dist,src=0,dst=2,val=31 \ -numa dist,src=0,dst=3,val=41 \ -numa dist,src=1,dst=0,val=21 \ ... ``` Signed-off-by: He Chen --- hw/i386/acpi-build.c

[Qemu-devel] [PATCH] x86: Allow to set NUMA distance for different NUMA nodes

2017-03-10 Thread He Chen
-numa dist,a=1,b=0,val=21 \ ... ``` Thanks, -He Signed-off-by: He Chen --- hw/i386/acpi-build.c| 28 ++ include/hw/acpi/acpi-defs.h | 9 + include/sysemu/numa.h | 1 + numa.c | 48 +

Re: [Qemu-devel] [RFC] x86: Allow to set NUMA distance for different NUMA nodes

2017-03-06 Thread He Chen
On Fri, Mar 03, 2017 at 02:10:50PM -0300, Eduardo Habkost wrote: > On Fri, Mar 03, 2017 at 04:52:18PM +, Daniel P. Berrange wrote: > > On Fri, Mar 03, 2017 at 01:47:51PM -0300, Eduardo Habkost wrote: > > > On Fri, Mar 03, 2017 at 04:26:12PM +, Daniel P. Berrange wrote: > > > > On Fri, Mar 0

[Qemu-devel] [RFC] x86: Allow to set NUMA distance for different NUMA nodes

2017-03-02 Thread He Chen
means vNode1 to vNode0 is 21, to vNode1 is 10 etc. BTW. Please forgive me that I don't do a pretty wrapper to `distance` option. What do you think of this RFC patch? And shall we consider to add vNUMA distance support to QEMU? Thanks, -He Signed-off-by: He Chen --- hw/i386/acpi-build.c

[Qemu-devel] [PATCH v2] x86: add AVX512_VPOPCNTDQ features

2017-01-12 Thread He Chen
AVX512_VPOPCNTDQ: Vector POPCNT instructions for word and qwords. variable precision. Signed-off-by: He Chen --- Changes from v1: * Rename vpopcntdq to avx512-vpopcntdq. --- target/i386/cpu.c | 2 +- target/i386/cpu.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/target

[Qemu-devel] [PATCH] x86: add AVX512_VPOPCNTDQ features

2017-01-09 Thread He Chen
AVX512_VPOPCNTDQ: Vector POPCNT instructions for word and qwords. variable precision. Signed-off-by: He Chen --- 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

[Qemu-devel] [PATCH v2] x86/cpuid:add AVX512_4VNNIW and AVX512_4FMAPS features.

2016-10-31 Thread He Chen
From: Luwei Kang The spec can be found in Intel Software Developer Manual or in Instruction Set Extensions Programming Reference. Signed-off-by: Luwei Kang Signed-off-by: Piotr Luc --- Changes in v2: * correct TCG_7_0_EDX_FEATURES. --- target-i386/cpu.c | 19 ++- target-i386/

[Qemu-devel] [PATCH] x86/cpuid:add AVX512_4VNNIW and AVX512_4FMAPS features.

2016-10-28 Thread He Chen
From: Luwei Kang The spec can be found in Intel Software Developer Manual or in Instruction Set Extensions Programming Reference. Signed-off-by: Luwei Kang Signed-off-by: Piotr Luc --- target-i386/cpu.c | 19 ++- target-i386/cpu.h | 4 2 files changed, 22 insertions(+),