Re: [Qemu-devel] [PATCH V4 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node

2013-07-15 Thread Wanlong Gao
On 07/09/2013 02:25 AM, Luiz Capitulino wrote: + +# @set-mpol: +# +# Set the host memory binding policy for guest NUMA node. +# +# @nodeid: The node ID of guest NUMA node to set memory policy to. +# +# @mem-policy: The memory policy string to set. Shouldn't this be an enum? Also,

Re: [Qemu-devel] [PATCH V4 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node

2013-07-08 Thread Luiz Capitulino
On Thu, 4 Jul 2013 17:53:15 +0800 Wanlong Gao gaowanl...@cn.fujitsu.com wrote: The QMP command let it be able to set node's memory policy through the QMP protocol. The qmp-shell command is like: set-mpol nodeid=0 mem-policy=membind mem-hostnode=0-1 Signed-off-by: Wanlong Gao

Re: [Qemu-devel] [PATCH V4 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node

2013-07-08 Thread Luiz Capitulino
On Mon, 8 Jul 2013 14:25:14 -0400 Luiz Capitulino lcapitul...@redhat.com wrote: On Thu, 4 Jul 2013 17:53:15 +0800 Wanlong Gao gaowanl...@cn.fujitsu.com wrote: The QMP command let it be able to set node's memory policy through the QMP protocol. The qmp-shell command is like: set-mpol

Re: [Qemu-devel] [PATCH V4 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node

2013-07-08 Thread Andreas Färber
Am 08.07.2013 20:34, schrieb Luiz Capitulino: I forgot to bike-shed on the naming. I'd suggest the following: - s/set-mpol/set-numa-policy - s/mem-policy/policy - s/mem-hostnode/host-nodes I had suggested s/set-mpol/set-memory-policy/g on the previous round (but didn't get any kind of

Re: [Qemu-devel] [PATCH V4 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node

2013-07-08 Thread Eric Blake
On 07/04/2013 03:53 AM, Wanlong Gao wrote: The QMP command let it be able to set node's memory policy s/let it be able/allows users/ through the QMP protocol. The qmp-shell command is like: set-mpol nodeid=0 mem-policy=membind mem-hostnode=0-1 Signed-off-by: Wanlong Gao

Re: [Qemu-devel] [PATCH V4 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node

2013-07-08 Thread Luiz Capitulino
On Mon, 08 Jul 2013 20:50:46 +0200 Andreas Färber afaer...@suse.de wrote: Am 08.07.2013 20:34, schrieb Luiz Capitulino: I forgot to bike-shed on the naming. I'd suggest the following: - s/set-mpol/set-numa-policy - s/mem-policy/policy - s/mem-hostnode/host-nodes I had suggested

[Qemu-devel] [PATCH V4 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node

2013-07-04 Thread Wanlong Gao
The QMP command let it be able to set node's memory policy through the QMP protocol. The qmp-shell command is like: set-mpol nodeid=0 mem-policy=membind mem-hostnode=0-1 Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- cpus.c | 54