[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH V5 09/12] NUMA: add qmp command set-mem-policy t
From: |
Wanlong Gao |
Subject: |
Re: [Qemu-devel] [PATCH V5 09/12] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node |
Date: |
Wed, 17 Jul 2013 21:22:12 +0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 |
On 07/17/2013 08:36 PM, Eric Blake wrote:
> On 07/17/2013 03:29 AM, Wanlong Gao wrote:
>> 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 host-nodes=0-1
>>
>> Signed-off-by: Wanlong Gao <address@hidden>
>> ---
>> numa.c | 55
>> +++++++++++++++++++++++++++++++++++++++++++++++++++++++
>> qapi-schema.json | 19 +++++++++++++++++++
>> qmp-commands.hx | 35 +++++++++++++++++++++++++++++++++++
>> 3 files changed, 109 insertions(+)
>>
>
>> +++ b/qapi-schema.json
>> @@ -3729,3 +3729,22 @@
>> '*size': 'size',
>> '*policy': 'str',
>> '*host-nodes': 'str' }}
>> +
>> +##
>> +# @set-mem-policy:
>> +#
>> +# Set the host memory binding policy for guest NUMA node.
>> +#
>> +# @nodeid: The node ID of guest NUMA node to set memory policy to.
>> +#
>> +# @policy: #optional The memory policy to be set (default 'default').
>
> Needs to be an enum type, not an open-coded 'str'. Probably the same
> enum type as you add for patch 6/12.
OK.
>
>> +#
>> +# @host-nodes: #optional The host nodes range for memory policy.
>
> Again, how is this string interpreted; and should it be an array?
OK, will take care of this. Thanks for your review.
Wanlong Gao
>
>> +#
>> +# Returns: Nothing on success
>> +#
>> +# Since: 1.6
>> +##
>> +{ 'command': 'set-mem-policy',
>> + 'data': {'nodeid': 'int', '*policy': 'str',
>> + '*host-nodes': 'str'} }
>
- Re: [Qemu-devel] [PATCH V5 02/12] NUMA: split -numa option, (continued)
- [Qemu-devel] [PATCH V5 06/12] NUMA: parse guest numa nodes memory policy, Wanlong Gao, 2013/07/17
- [Qemu-devel] [PATCH V5 04/12] NUMA: Add numa_info structure to contain numa nodes info, Wanlong Gao, 2013/07/17
- [Qemu-devel] [PATCH V5 08/12] NUMA: set guest numa nodes memory policy, Wanlong Gao, 2013/07/17
- [Qemu-devel] [PATCH V5 09/12] NUMA: add qmp command set-mem-policy to set memory policy for NUMA node, Wanlong Gao, 2013/07/17
- [Qemu-devel] [PATCH V5 12/12] NUMA: convert hmp command info_numa to use qmp command query_numa, Wanlong Gao, 2013/07/17
- [Qemu-devel] [PATCH V5 10/12] NUMA: add hmp command set-mem-policy, Wanlong Gao, 2013/07/17
- [Qemu-devel] [PATCH V5 11/12] NUMA: add qmp command query-numa, Wanlong Gao, 2013/07/17