Re: [Qemu-devel] [PATCH V17 00/11] Add support for binding guest numa nodes to host numa nodes

2013-12-06 Thread Wanlong Gao
ches for him? Thanks, Wanlong Gao > > Paolo >

[Qemu-devel] [PATCH V17 11/11] NUMA: convert hmp command info_numa to use qmp command query_numa

2013-12-04 Thread Wanlong Gao
Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- hmp.c | 57 + hmp.h | 1 + monitor.c | 21 + 3 files changed, 59 insertions(+), 20 deletions(-) diff --git a/hmp.c b/hmp.c index 32ee285..d6dedd2

[Qemu-devel] [PATCH V17 05/11] NUMA: introduce NumaMemOptions

2013-12-04 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- qapi-schema.json | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index db539b6..1043e57 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4223,7 +4223,8 @@ ## { '

[Qemu-devel] [PATCH V17 08/11] NUMA: parse guest numa nodes memory policy

2013-12-04 Thread Wanlong Gao
eid=1,cpus=1 \ -numa mem,nodeid=0,size=1G,policy=membind,host-nodes=0-1 \ -numa mem,nodeid=1,size=1G,policy=interleave,relative=true,host-nodes=1 Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +++ numa.c | 18 ++ qapi-schema.json

[Qemu-devel] [PATCH V17 03/11] NUMA: Add numa_info structure to contain numa nodes info

2013-12-04 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost Signed-off-by: Andre Przywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c| 12 include/sysemu/sysemu.h

[Qemu-devel] [PATCH V17 04/11] NUMA: convert -numa option to use OptsVisitor

2013-12-04 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +- numa.c | 148 +++- qapi-schema.json| 30 ++ vl.c| 11 +++- 4 files changed, 114 insertions(+), 78 deletions(-) diff --git a/include

[Qemu-devel] [PATCH V17 07/11] NUMA: expand MAX_NODES from 64 to 128

2013-12-04 Thread Wanlong Gao
libnuma choosed 128 for MAX_NODES, so we follow libnuma here. Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 291aa6a..807619e 100644 --- a/include/sysemu/sysemu.h

[Qemu-devel] [PATCH V17 06/11] NUMA: add "-numa mem," options

2013-12-04 Thread Wanlong Gao
lo Ersek Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 1 + numa.c | 36 qemu-options.hx | 6 -- vl.c| 2 ++ 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/include/sysemu/sysem

[Qemu-devel] [PATCH V17 09/11] NUMA: set guest numa nodes memory policy

2013-12-04 Thread Wanlong Gao
rzywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c | 9 + include/exec/memory.h | 15 numa.c| 99 +++ 3 files changed, 123 insertions(+) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 74c1f16..07553f2 100644 --- a

[Qemu-devel] [PATCH V17 00/11] Add support for binding guest numa nodes to host numa nodes

2013-12-04 Thread Wanlong Gao
value check (Eduardo) split MAX_NODES change patch (Eduardo) V12->V13: rebase to current master thanks for Luiz's review (Luiz) doc hmp command set-mem-policy (Luiz) rename: NUMAInfo -> NUMANode (Luiz) V13->V14: remove "set-mem-policy" qmp and hmp command

[Qemu-devel] [PATCH V17 02/11] NUMA: check if the total numa memory size is equal to ram_size

2013-12-04 Thread Wanlong Gao
ta to ACPI table. Signed-off-by: Wanlong Gao --- numa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/numa.c b/numa.c index ce7736a..beda80e 100644 --- a/numa.c +++ b/numa.c @@ -150,6 +150,16 @@ void set_numa_nodes(void) node_mem[i] = ram_size - us

[Qemu-devel] [PATCH V17 10/11] NUMA: add qmp command query-numa

2013-12-04 Thread Wanlong Gao
Add qmp command query-numa to show guest NUMA information. Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- numa.c | 66 qapi-schema.json | 36 +++ qmp-commands.hx | 49

[Qemu-devel] [PATCH V17 01/11] NUMA: move numa related code to new file numa.c

2013-12-04 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- Makefile.target | 2 +- cpus.c | 14 include/sysemu/cpus.h | 1 - include/sysemu/sysemu.h | 3 + numa.c | 182 vl.c| 139

Re: [Qemu-devel] [PATCH V16 09/11] NUMA: set guest numa nodes memory policy

2013-11-27 Thread Wanlong Gao
On 11/27/2013 10:35 PM, Paolo Bonzini wrote: > Il 22/11/2013 03:08, Wanlong Gao ha scritto: >> +static int set_node_mem_policy(int nodeid) >> +{ >> +#ifdef __linux__ >> +void *ram_ptr; >> +RAMBlock *block; >> +ram_addr_t len, ram_offset =

[Qemu-devel] [PATCH V16 07/11] NUMA: expand MAX_NODES from 64 to 128

2013-11-21 Thread Wanlong Gao
libnuma choosed 128 for MAX_NODES, so we follow libnuma here. Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 291aa6a..807619e 100644 --- a/include/sysemu/sysemu.h

[Qemu-devel] [PATCH V16 09/11] NUMA: set guest numa nodes memory policy

2013-11-21 Thread Wanlong Gao
rzywara Signed-off-by: Wanlong Gao --- numa.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/numa.c b/numa.c index da4dbbd..915a67a 100644 --- a/numa.c +++ b/numa.c @@ -27,6 +27,16 @@ #include "qapi-visit.h" #include

[Qemu-devel] [PATCH] fixup

2013-11-21 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- hw/i386/pc.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc.c b/hw/i386/pc.c index 50ed4cc..74c1f16 100644 --- a/hw/i386/pc.c +++ b/hw/i386/pc.c @@ -1072,8 +1072,12 @@ PcGuestInfo *pc_guest_info_init(ram_addr_t

[Qemu-devel] [PATCH V16 01/11] NUMA: move numa related code to new file numa.c

2013-11-21 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- Makefile.target | 2 +- cpus.c | 14 include/sysemu/cpus.h | 1 - include/sysemu/sysemu.h | 3 + numa.c | 182 vl.c| 139

[Qemu-devel] [PATCH V16 11/11] NUMA: convert hmp command info_numa to use qmp command query_numa

2013-11-21 Thread Wanlong Gao
Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- hmp.c | 57 + hmp.h | 1 + monitor.c | 21 + 3 files changed, 59 insertions(+), 20 deletions(-) diff --git a/hmp.c b/hmp.c index 32ee285..d6dedd2

Re: [Qemu-devel] [PATCH] fixup

2013-11-21 Thread Wanlong Gao
Sorry, please ignore this patch. Thanks, Wanlong Gao > Signed-off-by: Wanlong Gao > --- > hw/i386/pc.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > index 50ed4cc..74c1f16 100644 > --- a/hw/i386/p

[Qemu-devel] [PATCH V16 02/11] NUMA: check if the total numa memory size is equal to ram_size

2013-11-21 Thread Wanlong Gao
ta to ACPI table. Signed-off-by: Wanlong Gao --- numa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/numa.c b/numa.c index ce7736a..beda80e 100644 --- a/numa.c +++ b/numa.c @@ -150,6 +150,16 @@ void set_numa_nodes(void) node_mem[i] = ram_size - us

[Qemu-devel] [PATCH V16 10/11] NUMA: add qmp command query-numa

2013-11-21 Thread Wanlong Gao
Add qmp command query-numa to show guest NUMA information. Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- numa.c | 66 qapi-schema.json | 36 +++ qmp-commands.hx | 49

[Qemu-devel] [PATCH V16 04/11] NUMA: convert -numa option to use OptsVisitor

2013-11-21 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +- numa.c | 148 +++- qapi-schema.json| 30 ++ vl.c| 11 +++- 4 files changed, 114 insertions(+), 78 deletions(-) diff --git a/include

[Qemu-devel] [PATCH V16 03/11] NUMA: Add numa_info structure to contain numa nodes info

2013-11-21 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost Signed-off-by: Andre Przywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c| 12 include/sysemu/sysemu.h

[Qemu-devel] [PATCH V16 06/11] NUMA: add "-numa mem," options

2013-11-21 Thread Wanlong Gao
lo Ersek Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 1 + numa.c | 36 qemu-options.hx | 6 -- vl.c| 2 ++ 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/include/sysemu/sysem

[Qemu-devel] [PATCH V16 00/11] Add support for binding guest numa nodes to host numa nodes

2013-11-21 Thread Wanlong Gao
value check (Eduardo) split MAX_NODES change patch (Eduardo) V12->V13: rebase to current master thanks for Luiz's review (Luiz) doc hmp command set-mem-policy (Luiz) rename: NUMAInfo -> NUMANode (Luiz) V13->V14: remove "set-mem-policy" qmp and hmp command

[Qemu-devel] [PATCH V16 05/11] NUMA: introduce NumaMemOptions

2013-11-21 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- qapi-schema.json | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index db539b6..1043e57 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4223,7 +4223,8 @@ ## { '

[Qemu-devel] [PATCH V16 08/11] NUMA: parse guest numa nodes memory policy

2013-11-21 Thread Wanlong Gao
eid=1,cpus=1 \ -numa mem,nodeid=0,size=1G,policy=membind,host-nodes=0-1 \ -numa mem,nodeid=1,size=1G,policy=interleave,relative=true,host-nodes=1 Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +++ numa.c | 18 ++ qapi-schema.json

[Qemu-devel] [PATCH V15 05/11] NUMA: introduce NumaMemOptions

2013-10-28 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- qapi-schema.json | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index b7f0b15..a19e453 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -4198,7 +4198,8 @@ ## { '

[Qemu-devel] [PATCH V15 11/11] NUMA: convert hmp command info_numa to use qmp command query_numa

2013-10-28 Thread Wanlong Gao
Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- hmp.c | 57 + hmp.h | 1 + monitor.c | 21 + 3 files changed, 59 insertions(+), 20 deletions(-) diff --git a/hmp.c b/hmp.c index 32ee285..d6dedd2

[Qemu-devel] [PATCH V15 07/11] NUMA: expand MAX_NODES from 64 to 128

2013-10-28 Thread Wanlong Gao
libnuma choosed 128 for MAX_NODES, so we follow libnuma here. Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 861cd77..995cf3b 100644 --- a/include/sysemu/sysemu.h

[Qemu-devel] [PATCH V15 09/11] NUMA: set guest numa nodes memory policy

2013-10-28 Thread Wanlong Gao
rzywara Signed-off-by: Wanlong Gao --- numa.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/numa.c b/numa.c index da4dbbd..915a67a 100644 --- a/numa.c +++ b/numa.c @@ -27,6 +27,16 @@ #include "qapi-visit.h" #include

[Qemu-devel] [PATCH V15 10/11] NUMA: add qmp command query-numa

2013-10-28 Thread Wanlong Gao
Add qmp command query-numa to show guest NUMA information. Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- numa.c | 66 qapi-schema.json | 36 +++ qmp-commands.hx | 49

[Qemu-devel] [PATCH V15 06/11] NUMA: add "-numa mem," options

2013-10-28 Thread Wanlong Gao
lo Ersek Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 1 + numa.c | 36 qemu-options.hx | 6 -- vl.c| 2 ++ 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/include/sysemu/sysem

[Qemu-devel] [PATCH V15 04/11] NUMA: convert -numa option to use OptsVisitor

2013-10-28 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +- numa.c | 148 +++- qapi-schema.json| 30 ++ vl.c| 11 +++- 4 files changed, 114 insertions(+), 78 deletions(-) diff --git a/include

[Qemu-devel] [PATCH V15 03/11] NUMA: Add numa_info structure to contain numa nodes info

2013-10-28 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost Signed-off-by: Andre Przywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c| 4 ++-- include/sysemu/sysemu.h | 8

[Qemu-devel] [PATCH V15 00/11] Add support for binding guest numa nodes to host numa nodes

2013-10-28 Thread Wanlong Gao
doc hmp command set-mem-policy (Luiz) rename: NUMAInfo -> NUMANode (Luiz) V13->V14: remove "set-mem-policy" qmp and hmp commands (Marcelo, Paolo) V14->V15: rebase to the current master *I hope this can catch up the train of 1.7.* Wanlong Gao (11): NUMA: move numa re

[Qemu-devel] [PATCH V15 01/11] NUMA: move numa related code to new file numa.c

2013-10-28 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- Makefile.target | 2 +- cpus.c | 14 include/sysemu/cpus.h | 1 - include/sysemu/sysemu.h | 3 + numa.c | 182 vl.c| 139

[Qemu-devel] [PATCH V15 08/11] NUMA: parse guest numa nodes memory policy

2013-10-28 Thread Wanlong Gao
eid=1,cpus=1 \ -numa mem,nodeid=0,size=1G,policy=membind,host-nodes=0-1 \ -numa mem,nodeid=1,size=1G,policy=interleave,relative=true,host-nodes=1 Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +++ numa.c | 18 ++ qapi-schema.json

[Qemu-devel] [PATCH V15 02/11] NUMA: check if the total numa memory size is equal to ram_size

2013-10-28 Thread Wanlong Gao
ta to ACPI table. Signed-off-by: Wanlong Gao --- numa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/numa.c b/numa.c index ce7736a..beda80e 100644 --- a/numa.c +++ b/numa.c @@ -150,6 +150,16 @@ void set_numa_nodes(void) node_mem[i] = ram_size - us

Re: [Qemu-devel] About the migration_set_speed in the qemu monitor

2013-10-27 Thread Wanlong Gao
is means the bandwidth limit is 200 bytes. Thanks, Wanlong Gao > Thanks! >

Re: [Qemu-devel] [PATCH V14 00/11] Add support for binding guest numa nodes to host numa nodes

2013-10-20 Thread Wanlong Gao
Hi folks, Any more comments? Thanks, Wanlong Gao > As you know, QEMU can't direct it's memory allocation now, this may cause > guest cross node access performance regression. > And, the worse thing is that if PCI-passthrough is used, > direct-attached-device uses DMA trans

Re: [Qemu-devel] [PATCH V14 00/11] Add support for binding guest numa nodes to host numa nodes

2013-10-15 Thread Wanlong Gao
Hi folks, Settled another week, who can pick? Thanks, Wanlong Gao > As you know, QEMU can't direct it's memory allocation now, this may cause > guest cross node access performance regression. > And, the worse thing is that if PCI-passthrough is used, > direct-attached-de

[Qemu-devel] [PATCH V14 01/11] NUMA: move numa related code to new file numa.c

2013-10-07 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- Makefile.target | 2 +- cpus.c | 14 include/sysemu/cpus.h | 1 - include/sysemu/sysemu.h | 3 + numa.c | 182 vl.c| 139

[Qemu-devel] [PATCH V14 10/11] NUMA: add qmp command query-numa

2013-10-07 Thread Wanlong Gao
Add qmp command query-numa to show guest NUMA information. Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- numa.c | 66 qapi-schema.json | 36 +++ qmp-commands.hx | 48

[Qemu-devel] [PATCH V14 04/11] NUMA: convert -numa option to use OptsVisitor

2013-10-07 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +- numa.c | 148 +++- qapi-schema.json| 30 ++ vl.c| 11 +++- 4 files changed, 114 insertions(+), 78 deletions(-) diff --git a/include

[Qemu-devel] [PATCH V14 00/11] Add support for binding guest numa nodes to host numa nodes

2013-10-07 Thread Wanlong Gao
hmp command set-mem-policy (Luiz) rename: NUMAInfo -> NUMANode (Luiz) V13->V14: remove "set-mem-policy" qmp and hmp commands (Marcelo, Paolo) *I hope this can catch up the train of 1.7.* Thanks, Wanlong Gao Wanlong Gao (11): NUMA: move numa related code to new fil

[Qemu-devel] [PATCH V14 02/11] NUMA: check if the total numa memory size is equal to ram_size

2013-10-07 Thread Wanlong Gao
ta to ACPI table. Signed-off-by: Wanlong Gao --- numa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/numa.c b/numa.c index ce7736a..beda80e 100644 --- a/numa.c +++ b/numa.c @@ -150,6 +150,16 @@ void set_numa_nodes(void) node_mem[i] = ram_size - us

[Qemu-devel] [PATCH V14 08/11] NUMA: parse guest numa nodes memory policy

2013-10-07 Thread Wanlong Gao
eid=1,cpus=1 \ -numa mem,nodeid=0,size=1G,policy=membind,host-nodes=0-1 \ -numa mem,nodeid=1,size=1G,policy=interleave,relative=true,host-nodes=1 Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +++ numa.c | 18 ++ qapi-schema.json

[Qemu-devel] [PATCH V14 11/11] NUMA: convert hmp command info_numa to use qmp command query_numa

2013-10-07 Thread Wanlong Gao
Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- hmp.c | 57 + hmp.h | 1 + monitor.c | 21 + 3 files changed, 59 insertions(+), 20 deletions(-) diff --git a/hmp.c b/hmp.c index 5891507..64cc570

[Qemu-devel] [PATCH V14 03/11] NUMA: Add numa_info structure to contain numa nodes info

2013-10-07 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost Signed-off-by: Andre Przywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c| 4 ++-- include/sysemu/sysemu.h | 8

[Qemu-devel] [PATCH V14 09/11] NUMA: set guest numa nodes memory policy

2013-10-07 Thread Wanlong Gao
rzywara Signed-off-by: Wanlong Gao --- numa.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/numa.c b/numa.c index da4dbbd..915a67a 100644 --- a/numa.c +++ b/numa.c @@ -27,6 +27,16 @@ #include "qapi-visit.h" #include

[Qemu-devel] [PATCH V14 06/11] NUMA: add "-numa mem," options

2013-10-07 Thread Wanlong Gao
lo Ersek Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 1 + numa.c | 36 qemu-options.hx | 6 -- vl.c| 2 ++ 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/include/sysemu/sysem

[Qemu-devel] [PATCH V14 05/11] NUMA: introduce NumaMemOptions

2013-10-07 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- qapi-schema.json | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index 8cf0179..d291f28 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3912,7 +3912,8 @@ ## { '

[Qemu-devel] [PATCH V14 07/11] NUMA: expand MAX_NODES from 64 to 128

2013-10-07 Thread Wanlong Gao
libnuma choosed 128 for MAX_NODES, so we follow libnuma here. Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 861cd77..995cf3b 100644 --- a/include/sysemu/sysemu.h

Re: [Qemu-devel] [PATCH V13 10/13] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node

2013-10-06 Thread Wanlong Gao
set-mem-policy nodeid=0 policy=membind relative=true host-nodes=0-1 >>>>>> >>>>>> Reviewed-by: Luiz Capitulino >>>>>> Signed-off-by: Wanlong Gao >>>> >>>> Wanlong Gao, >>>> >>>> 1) >>&

Re: [Qemu-devel] [PATCH V13 00/13] Add support for binding guest numa nodes to host numa nodes

2013-09-24 Thread Wanlong Gao
Hi folks, Any comments on this version? Thanks, Wanlong Gao > As you know, QEMU can't direct it's memory allocation now, this may cause > guest cross node access performance regression. > And, the worse thing is that if PCI-passthrough is used, > direct-attached-de

[Qemu-devel] [PATCH V13 01/13] NUMA: move numa related code to new file numa.c

2013-09-16 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- Makefile.target | 2 +- cpus.c | 14 include/sysemu/cpus.h | 1 - include/sysemu/sysemu.h | 3 + numa.c | 182 vl.c| 139

[Qemu-devel] [PATCH V13 04/13] NUMA: convert -numa option to use OptsVisitor

2013-09-16 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +- numa.c | 148 +++- qapi-schema.json| 30 ++ vl.c| 11 +++- 4 files changed, 114 insertions(+), 78 deletions(-) diff --git a/include

[Qemu-devel] [PATCH V13 13/13] NUMA: convert hmp command info_numa to use qmp command query_numa

2013-09-16 Thread Wanlong Gao
Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- hmp.c | 54 ++ hmp.h | 1 + monitor.c | 21 + 3 files changed, 56 insertions(+), 20 deletions(-) diff --git a/hmp.c b/hmp.c index 84990d7..3efc1ac 100644

[Qemu-devel] [PATCH V13 06/13] NUMA: add "-numa mem," options

2013-09-16 Thread Wanlong Gao
lo Ersek Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 1 + numa.c | 36 qemu-options.hx | 6 -- vl.c| 2 ++ 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/include/sysemu/sysem

[Qemu-devel] [PATCH V13 11/13] NUMA: add hmp command set-mem-policy

2013-09-16 Thread Wanlong Gao
Add hmp command set-mem-policy to set host memory policy for a guest NUMA node. Then we can also set node's memory policy using the monitor command like: (qemu) set-mem-policy 0 policy=membind,relative=false,host-nodes=0-1 Signed-off-by: Wanlong Gao --- hmp-commands.hx

[Qemu-devel] [PATCH V13 00/13] Add support for binding guest numa nodes to host numa nodes

2013-09-16 Thread Wanlong Gao
argument of mbind(2) V11->V12: rebase to current master split patch 02/11 of V11 (Eduardo) add some max value check (Eduardo) split MAX_NODES change patch (Eduardo) V12->V13: rebase to current master thanks for Luiz's review (Luiz) doc hmp command set-mem-policy (

[Qemu-devel] [PATCH V13 07/13] NUMA: expand MAX_NODES from 64 to 128

2013-09-16 Thread Wanlong Gao
libnuma choosed 128 for MAX_NODES, so we follow libnuma here. Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 58c728c..12529a1 100644 --- a/include/sysemu/sysemu.h

[Qemu-devel] [PATCH V13 08/13] NUMA: parse guest numa nodes memory policy

2013-09-16 Thread Wanlong Gao
eid=1,cpus=1 \ -numa mem,nodeid=0,size=1G,policy=membind,host-nodes=0-1 \ -numa mem,nodeid=1,size=1G,policy=interleave,relative=true,host-nodes=1 Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +++ numa.c | 18 ++ qapi-schema.json

[Qemu-devel] [PATCH V13 09/13] NUMA: set guest numa nodes memory policy

2013-09-16 Thread Wanlong Gao
rzywara Signed-off-by: Wanlong Gao --- numa.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/numa.c b/numa.c index da4dbbd..915a67a 100644 --- a/numa.c +++ b/numa.c @@ -27,6 +27,16 @@ #include "qapi-visit.h" #include

[Qemu-devel] [PATCH V13 05/13] NUMA: introduce NumaMemOptions

2013-09-16 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- qapi-schema.json | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index ca31ca6..950d0f5 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3848,7 +3848,8 @@ ## { '

[Qemu-devel] [PATCH V13 12/13] NUMA: add qmp command query-numa

2013-09-16 Thread Wanlong Gao
Add qmp command query-numa to show guest NUMA information. Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- numa.c | 65 qapi-schema.json | 36 +++ qmp-commands.hx | 49

[Qemu-devel] [PATCH V13 10/13] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node

2013-09-16 Thread Wanlong Gao
This QMP command allows user set guest node's memory policy through the QMP protocol. The qmp-shell command is like: set-mem-policy nodeid=0 policy=membind relative=true host-nodes=0-1 Reviewed-by: Luiz Capitulino Signed-off-by: Wanlong Gao --- numa.c

[Qemu-devel] [PATCH V13 03/13] NUMA: Add numa_info structure to contain numa nodes info

2013-09-16 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost Signed-off-by: Andre Przywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c| 4 ++-- include/sysemu/sysemu.h | 8

[Qemu-devel] [PATCH V13 02/13] NUMA: check if the total numa memory size is equal to ram_size

2013-09-16 Thread Wanlong Gao
ta to ACPI table. Signed-off-by: Wanlong Gao --- numa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/numa.c b/numa.c index ce7736a..beda80e 100644 --- a/numa.c +++ b/numa.c @@ -150,6 +150,16 @@ void set_numa_nodes(void) node_mem[i] = ram_size - us

Re: [Qemu-devel] [PATCH V12 00/13] Add support for binding guest numa nodes to host numa nodes

2013-09-09 Thread Wanlong Gao
Hi folks, Any comments? ;-P Wanlong Gao > As you know, QEMU can't direct it's memory allocation now, this may cause > guest cross node access performance regression. > And, the worse thing is that if PCI-passthrough is used, > direct-attached-device uses DMA transfer b

[Qemu-devel] [PATCH V12 03/13] NUMA: Add numa_info structure to contain numa nodes info

2013-09-04 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost Signed-off-by: Andre Przywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c| 4 ++-- include/sysemu/sysemu.h | 8

[Qemu-devel] [PATCH V12 08/13] NUMA: parse guest numa nodes memory policy

2013-09-04 Thread Wanlong Gao
eid=1,cpus=1 \ -numa mem,nodeid=0,size=1G,policy=membind,host-nodes=0-1 \ -numa mem,nodeid=1,size=1G,policy=interleave,relative=true,host-nodes=1 Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +++ numa.c | 18 ++ qapi-schema.json

[Qemu-devel] [PATCH V12 10/13] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node

2013-09-04 Thread Wanlong Gao
This QMP command allows user set guest node's memory policy through the QMP protocol. The qmp-shell command is like: set-mem-policy nodeid=0 policy=membind relative=true host-nodes=0-1 Signed-off-by: Wanlong Gao --- numa.c

[Qemu-devel] [PATCH V12 13/13] NUMA: convert hmp command info_numa to use qmp command query_numa

2013-09-04 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- hmp.c | 54 ++ hmp.h | 1 + monitor.c | 21 + 3 files changed, 56 insertions(+), 20 deletions(-) diff --git a/hmp.c b/hmp.c index ae695b0..2d878c6 100644 --- a/hmp.c +++ b/hmp.c

[Qemu-devel] [PATCH V12 01/13] NUMA: move numa related code to new file numa.c

2013-09-04 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- Makefile.target | 2 +- cpus.c | 14 include/sysemu/cpus.h | 1 - include/sysemu/sysemu.h | 3 + numa.c | 182 vl.c| 139

[Qemu-devel] [PATCH V12 11/13] NUMA: add hmp command set-mem-policy

2013-09-04 Thread Wanlong Gao
Add hmp command set-mem-policy to set host memory policy for a guest NUMA node. Then we can also set node's memory policy using the monitor command like: (qemu) set-mem-policy 0 policy=membind,relative=false,host-nodes=0-1 Signed-off-by: Wanlong Gao --- hmp-commands.hx

[Qemu-devel] [PATCH V12 00/13] Add support for binding guest numa nodes to host numa nodes

2013-09-04 Thread Wanlong Gao
argument of mbind(2) V11->V12: rebase to current master split patch 02/11 of V11 (Eduardo) add some max value check (Eduardo) split MAX_NODES change patch (Eduardo) *I hope this can catch up the train of 1.7.* Thanks, Wanlong Gao Wanlong Gao (13): NUMA: move numa related code to n

[Qemu-devel] [PATCH V12 05/13] NUMA: introduce NumaMemOptions

2013-09-04 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- qapi-schema.json | 19 ++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/qapi-schema.json b/qapi-schema.json index fe12ea5..3ca742e 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3783,7 +3783,8 @@ ## { '

[Qemu-devel] [PATCH V12 12/13] NUMA: add qmp command query-numa

2013-09-04 Thread Wanlong Gao
Add qmp command query-numa to show guest NUMA information. Signed-off-by: Wanlong Gao --- numa.c | 65 qapi-schema.json | 36 +++ qmp-commands.hx | 49 ++ 3

[Qemu-devel] [PATCH V12 06/13] NUMA: add "-numa mem," options

2013-09-04 Thread Wanlong Gao
lo Ersek Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 1 + numa.c | 36 qemu-options.hx | 6 -- vl.c| 2 ++ 4 files changed, 43 insertions(+), 2 deletions(-) diff --git a/include/sysemu/sysem

[Qemu-devel] [PATCH V12 07/13] NUMA: expand MAX_NODES from 64 to 128

2013-09-04 Thread Wanlong Gao
libnuma choosed 128 for MAX_NODES, so we follow libnuma here. Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 58c728c..12529a1 100644 --- a/include/sysemu/sysemu.h

[Qemu-devel] [PATCH V12 04/13] NUMA: convert -numa option to use OptsVisitor

2013-09-04 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 3 +- numa.c | 148 +++- qapi-schema.json| 30 ++ vl.c| 11 +++- 4 files changed, 114 insertions(+), 78 deletions(-) diff --git a/include

[Qemu-devel] [PATCH V12 02/13] NUMA: check if the total numa memory size is equal to ram_size

2013-09-04 Thread Wanlong Gao
ta to ACPI table. Signed-off-by: Wanlong Gao --- numa.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/numa.c b/numa.c index ce7736a..beda80e 100644 --- a/numa.c +++ b/numa.c @@ -150,6 +150,16 @@ void set_numa_nodes(void) node_mem[i] = ram_size - us

[Qemu-devel] [PATCH V12 09/13] NUMA: set guest numa nodes memory policy

2013-09-04 Thread Wanlong Gao
rzywara Signed-off-by: Wanlong Gao --- numa.c | 86 ++ 1 file changed, 86 insertions(+) diff --git a/numa.c b/numa.c index da4dbbd..915a67a 100644 --- a/numa.c +++ b/numa.c @@ -27,6 +27,16 @@ #include "qapi-visit.h" #include

Re: [Qemu-devel] [PATCH V11 02/11] NUMA: split -numa option

2013-09-03 Thread Wanlong Gao
On 09/04/2013 09:49 AM, Eduardo Habkost wrote: > On Fri, Aug 30, 2013 at 11:10:41AM +0800, Wanlong Gao wrote: >> Change -numa option like following as Paolo suggested: >> -numa node,nodeid=0,cpus=0-1 \ >> -numa mem,nodeid=0,size=1G >> >> This new opt

Re: [Qemu-devel] [PATCH V11 06/11] NUMA: parse guest numa nodes memory policy

2013-09-03 Thread Wanlong Gao
On 09/04/2013 10:28 AM, Eduardo Habkost wrote: > On Fri, Aug 30, 2013 at 11:10:45AM +0800, Wanlong Gao wrote: >> The memory policy setting format is like: >> >> policy={default|membind|interleave|preferred}[,relative=true],host-nodes=N-N >> And we are adding thi

[Qemu-devel] [PATCH V11 10/11] NUMA: add qmp command query-numa

2013-08-29 Thread Wanlong Gao
Add qmp command query-numa to show guest NUMA information. Signed-off-by: Wanlong Gao --- numa.c | 65 qapi-schema.json | 36 +++ qmp-commands.hx | 49 ++ 3

[Qemu-devel] [PATCH V11 01/11] NUMA: add NumaOptions, NumaNodeOptions and NumaMemOptions

2013-08-29 Thread Wanlong Gao
These are used to generate stuff for OptsVisitor. Reviewed-by: Laszlo Ersek Signed-off-by: Wanlong Gao --- qapi-schema.json | 47 +++ 1 file changed, 47 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index a51f7d2..11851a1 100644

[Qemu-devel] [PATCH V11 05/11] NUMA: Add numa_info structure to contain numa nodes info

2013-08-29 Thread Wanlong Gao
Add the numa_info structure to contain the numa nodes memory, VCPUs information and the future added numa nodes host memory policies. Reviewed-by: Eduardo Habkost Signed-off-by: Andre Przywara Signed-off-by: Wanlong Gao --- hw/i386/pc.c| 4 ++-- include/sysemu/sysemu.h | 8

[Qemu-devel] [PATCH V11 07/11] NUMA: set guest numa nodes memory policy

2013-08-29 Thread Wanlong Gao
rzywara Signed-off-by: Wanlong Gao --- numa.c | 85 ++ 1 file changed, 85 insertions(+) diff --git a/numa.c b/numa.c index 4ccc6cb..89be03d 100644 --- a/numa.c +++ b/numa.c @@ -28,6 +28,15 @@ #include "qapi-visit.h" #include

[Qemu-devel] [PATCH V11 00/11] Add support for binding guest numa nodes to host numa nodes

2013-08-29 Thread Wanlong Gao
remove libnuma (Andrew) MAX_NODES=64 -> MAX_NODES=128 since libnuma selected 128 (Andrew) use MAX_NODES instead of MAX_CPUMASK_BITS for host_mem bitmap (Andrew) remove a useless clear_bit() operation (Andrew) V10->V11: rebase to current master fix "maxnode" argu

[Qemu-devel] [PATCH V11 11/11] NUMA: convert hmp command info_numa to use qmp command query_numa

2013-08-29 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- hmp.c | 54 ++ hmp.h | 1 + monitor.c | 21 + 3 files changed, 56 insertions(+), 20 deletions(-) diff --git a/hmp.c b/hmp.c index ae695b0..2d878c6 100644 --- a/hmp.c +++ b/hmp.c

[Qemu-devel] [PATCH V11 04/11] NUMA: move numa related code to numa.c

2013-08-29 Thread Wanlong Gao
Signed-off-by: Wanlong Gao --- cpus.c | 14 - include/sysemu/cpus.h | 1 - include/sysemu/sysemu.h | 2 ++ numa.c | 76 + vl.c| 57 + 5 files

[Qemu-devel] [PATCH V11 08/11] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node

2013-08-29 Thread Wanlong Gao
This QMP command allows user set guest node's memory policy through the QMP protocol. The qmp-shell command is like: set-mem-policy nodeid=0 policy=membind relative=true host-nodes=0-1 Signed-off-by: Wanlong Gao --- numa.c

[Qemu-devel] [PATCH V11 06/11] NUMA: parse guest numa nodes memory policy

2013-08-29 Thread Wanlong Gao
eid=1,cpus=1 \ -numa mem,nodeid=0,size=1G,policy=membind,host-nodes=0-1 \ -numa mem,nodeid=1,size=1G,policy=interleave,relative=true,host-nodes=1 Signed-off-by: Wanlong Gao --- include/sysemu/sysemu.h | 5 - numa.c | 13 + qapi-schema.json

[Qemu-devel] [PATCH V11 02/11] NUMA: split -numa option

2013-08-29 Thread Wanlong Gao
eviewed-by: Laszlo Ersek Signed-off-by: Wanlong Gao --- Makefile.target | 2 +- include/sysemu/sysemu.h | 3 + numa.c | 144 qemu-options.hx | 6 +- vl.c| 113 ++

[Qemu-devel] [PATCH V11 03/11] NUMA: check if the total numa memory size is equal to ram_size

2013-08-29 Thread Wanlong Gao
ta to ACPI table. Signed-off-by: Wanlong Gao --- vl.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/vl.c b/vl.c index 0ef5c5a..92aacc1 100644 --- a/vl.c +++ b/vl.c @@ -4174,6 +4174,16 @@ int main(int argc, char **argv, char **envp) node_mem[i] = ram_size - us

[Qemu-devel] [PATCH V11 09/11] NUMA: add hmp command set-mem-policy

2013-08-29 Thread Wanlong Gao
Add hmp command set-mem-policy to set host memory policy for a guest NUMA node. Then we can also set node's memory policy using the monitor command like: (qemu) set-mem-policy 0 policy=membind,relative=false,host-nodes=0-1 Signed-off-by: Wanlong Gao --- hmp-commands.hx

  1   2   3   >