Received: from eggs.gnu.org ([2001:4830:134:3::10]:50005) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz2PL-0002iO-7v for qemu-devel@nongnu.org; Tue, 16 Jul 2013 06:23:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uz2PJ-0001IH-Vo for qemu-devel@nongnu.org; Tue, 16 Jul 2013 06:22:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:46212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uz2PJ-0001I5-Kt for qemu-devel@nongnu.org; Tue, 16 Jul 2013 06:22:57 -0400 Date: Tue, 16 Jul 2013 12:22:45 +0200 From: Igor Mammedov Message-ID: <20130716122245.64445811@nial.usersys.redhat.com> In-Reply-To: <20130716072719.GI10917@G08FNSTD100614.fnst.cn.fujitsu.com> References: <6b5ff346b23fba9a8707507fda7f9b71719a55be.1372234719.git.hutao@cn.fujitsu.com> <51CAB866.2080507@redhat.com> <51CBC8B3.8070708@cn.fujitsu.com> <51CBE1DD.9020301@redhat.com> <20130715170551.GC11958@dhcp-192-168-178-175.profitbricks.localdomain> <51E42D06.9080004@redhat.com> <20130716012744.GE10917@G08FNSTD100614.fnst.cn.fujitsu.com> <51E4E604.6060608@redhat.com> <20130716072719.GI10917@G08FNSTD100614.fnst.cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v5 05/14] vl: handle "-device dimm" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Hu Tao Cc: Eduardo Habkost , qemu-devel@nongnu.org, Vasilis Liaskovitis , Bandan Das , Paolo Bonzini , gaowanlong@cn.fujitsu.com On Tue, 16 Jul 2013 15:27:19 +0800 Hu Tao wrote: > On Tue, Jul 16, 2013 at 08:19:48AM +0200, Paolo Bonzini wrote: > > Il 16/07/2013 03:27, Hu Tao ha scritto: > > > > I think it's the same. One "-numa mem" option = one "-device dimm" > > > > option; both define one range. Unused memory ranges may remain if you > > > > stumble upon a unusable range such as the PCI window. For example two > > > > "-numa mem,size=2G" options would allocate memory from 0 to 2G and from > > > > 4 to 6G. > > > > > > So we can drop -dimm if we agree on -numa mem? > > > > Yes, the point of the "-numa mem" proposal was to avoid the concept of a > > "partially initialized device" that you had for DIMMs. > > > > BTW, how do you specify which module you are plugging in? I.e., what if > > I have three 1G ranges at 0, 1G and 2G, and I want to plug the first and > > the third? > > I think an id is still needed to identify ranges, which can be shown to > user with `info numa' or similar command, along with the corresponding > ranges. "info numa" could get actual ranges enumerating present dimms if we would use plain -device for hotplug memory instead of -numa mem hacking. > > > > > This is especially important with hot-unplug, because then you can have > > this kind of hole in the address space. If you migrate the VM, you have > > to reproduce the situation in the destination command line. > > > > Paolo > > >