From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzSyB-0008Vo-Nm for qemu-devel@nongnu.org; Wed, 17 Jul 2013 10:44:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UzSy6-0000R9-N7 for qemu-devel@nongnu.org; Wed, 17 Jul 2013 10:44:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:5372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UzSy6-0000Qz-Fq for qemu-devel@nongnu.org; Wed, 17 Jul 2013 10:44:38 -0400 Message-ID: <51E6ADC3.5010203@redhat.com> Date: Wed, 17 Jul 2013 16:44:19 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1374053373-30499-1-git-send-email-gaowanlong@cn.fujitsu.com> <1374053373-30499-2-git-send-email-gaowanlong@cn.fujitsu.com> <51E67368.3000003@redhat.com> <51E68D0F.4040503@redhat.com> <51E6A2D9.5040202@redhat.com> <51E6A826.4010003@redhat.com> <51E6AB34.3090908@redhat.com> In-Reply-To: <51E6AB34.3090908@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH V5 01/12] NUMA: add NumaOptions, NumaNodeOptions and NumaMemOptions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Laszlo Ersek Cc: aliguori@us.ibm.com, ehabkost@redhat.com, peter.huangpeng@huawei.com, qemu-devel@nongnu.org, bsd@redhat.com, y-goto@jp.fujitsu.com, lcapitulino@redhat.com, afaerber@suse.de, Wanlong Gao Il 17/07/2013 16:33, Laszlo Ersek ha scritto: >>> >> opts-visitor can handle lists of simple scalar types. Ie. it can do >>> >> -numa node,nodeid=3,cpus=3-4,cpus=9-10. It can't save the parsing of >>> >> intervals (eg. 3-4). >> > >> > Saving the parsing of intervals is not necessary for this use case. So >> > if we can make it '*cpus':['int'], we should. >> > >> > But is it the opts-visitor "can handle" lists of integers, or does code >> > have to be written? If the latter, can you whip up a prototype? > No extra code needs to be written. The current use case is > NetdevUserOptions.{dnssearch,hostfwd,guestfwd}; see commit 094f15c5, and > (by Klaus Stengel) commit 63d2960b. This is to handle lists, but want about converting cpus=3-4,cpus=9-10 to 'cpus': [3,4,9,10] ? Paolo