From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43604) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uygo8-0002Ii-3q for qemu-devel@nongnu.org; Mon, 15 Jul 2013 07:19:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uygo7-0003JU-1i for qemu-devel@nongnu.org; Mon, 15 Jul 2013 07:19:08 -0400 Received: from [222.73.24.84] (port=64636 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uygo6-0003D6-Ni for qemu-devel@nongnu.org; Mon, 15 Jul 2013 07:19:06 -0400 Message-ID: <51E3DA93.3010405@cn.fujitsu.com> Date: Mon, 15 Jul 2013 19:18:43 +0800 From: Wanlong Gao MIME-Version: 1.0 References: <1372931597-28115-1-git-send-email-gaowanlong@cn.fujitsu.com> <1372931597-28115-9-git-send-email-gaowanlong@cn.fujitsu.com> <20130708142514.714dade6@redhat.com> In-Reply-To: <20130708142514.714dade6@redhat.com> Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [PATCH V4 08/10] NUMA: add qmp command set-mpol to set memory policy for NUMA node Reply-To: gaowanlong@cn.fujitsu.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: aliguori@us.ibm.com, ehabkost@redhat.com, qemu-devel@nongnu.org, bsd@redhat.com, y-goto@jp.fujitsu.com, pbonzini@redhat.com, afaerber@suse.de, 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, optional members have a leading '#optional' > string and if a default value is used it should be documented. Thank you, will fix in V5. > >> > +# >> > +# @mem-hostnode: The host node or node range for memory policy. > It doesn't seem appropriate to use a string here. Maybe we could > use a list with only to values (like [0,2] for 0-2) or maybe a > list of nodes if that makes sense (like [0,1,2]). I wonder if not using string, how to support "+" and "!" ? Thanks, Wanlong Gao