From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuKCU-0000Tw-NH for qemu-devel@nongnu.org; Tue, 10 Jun 2014 07:26:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuKCP-0005ad-Vn for qemu-devel@nongnu.org; Tue, 10 Jun 2014 07:26:46 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuKCP-0005aW-Mg for qemu-devel@nongnu.org; Tue, 10 Jun 2014 07:26:41 -0400 Date: Tue, 10 Jun 2014 14:27:04 +0300 From: "Michael S. Tsirkin" Message-ID: <20140610112704.GA25229@redhat.com> References: <991769540d05cf1fd8d031d54b4b51e3aa2a0374.1402397894.git.hutao@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <991769540d05cf1fd8d031d54b4b51e3aa2a0374.1402397894.git.hutao@cn.fujitsu.com> Subject: Re: [Qemu-devel] [PATCH v5 07/16] fixup! numa: add -numa node, memdev= option List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hu Tao Cc: Eduardo Habkost , qemu-devel@nongnu.org, Paolo Bonzini , Igor Mammedov , Yasunori Goto On Tue, Jun 10, 2014 at 07:15:20PM +0800, Hu Tao wrote: > From: Paolo Bonzini > > This option provides the infrastructure for binding guest NUMA nodes > to host NUMA nodes. For example: > > -object memory-ram,size=1024M,policy=bind,host-nodes=0,id=ram-node0 \ > -numa node,nodeid=0,cpus=0,memdev=ram-node0 \ > -object memory-ram,size=1024M,policy=interleave,host-nodes=1-3,id=ram-node1 \ > -numa node,nodeid=1,cpus=1,memdev=ram-node1 > > The option replaces "-numa node,mem=". > > Signed-off-by: Paolo Bonzini > Signed-off-by: Hu Tao > > Conflicts: > numa.c > qemu-options.hx Don't keep the Conflicts option around next time pls. I dropped this for now. > --- > qemu-options.hx | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/qemu-options.hx b/qemu-options.hx > index 5375a93..73b6f1f 100644 > --- a/qemu-options.hx > +++ b/qemu-options.hx > @@ -95,9 +95,11 @@ specifies the maximum number of hotpluggable CPUs. > ETEXI > > DEF("numa", HAS_ARG, QEMU_OPTION_numa, > - "-numa node[,mem=size][,memdev=id][,cpus=cpu[-cpu]][,nodeid=node]\n", QEMU_ARCH_ALL) > + "-numa node[,mem=size][,cpus=cpu[-cpu]][,nodeid=node]\n" > + "-numa node[,memdev=id][,cpus=cpu[-cpu]][,nodeid=node]\n", QEMU_ARCH_ALL) > STEXI > -@item -numa node[,mem=@var{size}][,memdev=@var{id}][,cpus=@var{cpu[-cpu]}][,nodeid=@var{node}] > +@item -numa node[,mem=@var{size}][,cpus=@var{cpu[-cpu]}][,nodeid=@var{node}] > +@item -numa node[,memdev=@var{id}][,cpus=@var{cpu[-cpu]}][,nodeid=@var{node}] > @findex -numa > Simulate a multi node NUMA system. If @samp{mem}, @samp{memdev} > and @samp{cpus} are omitted, resources are split equally. Also, note > -- > 1.9.3