Received: from eggs.gnu.org ([208.118.235.92]:41408) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKUik-0005VV-2a for qemu-devel@nongnu.org; Tue, 26 Mar 2013 10:19:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UKUii-0005nC-8E for qemu-devel@nongnu.org; Tue, 26 Mar 2013 10:19:25 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UKUih-0005n3-VI for qemu-devel@nongnu.org; Tue, 26 Mar 2013 10:19:24 -0400 Date: Tue, 26 Mar 2013 11:20:59 -0300 From: Eduardo Habkost Message-ID: <20130326142059.GL8494@otherpad.lan.raisama.net> References: <1355834518-17989-1-git-send-email-vasilis.liaskovitis@profitbricks.com> <50ECB514.1020508@suse.de> <1363760280.21129.240.camel@liguang.fnst.cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1363760280.21129.240.camel@liguang.fnst.cn.fujitsu.com> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [RFC PATCH v4 00/30] ACPI memory hotplug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: li guang Cc: blauwirbel@gmail.com, pingfank@linux.vnet.ibm.com, gleb@redhat.com, stefanha@gmail.com, jbaron@redhat.com, seabios@seabios.org, qemu-devel@nongnu.org, Vasilis Liaskovitis , kevin@koconnor.net, kraxel@redhat.com, Anthony Liguori , Igor Mammedov , Paolo Bonzini , Andreas =?iso-8859-1?Q?F=E4rber?= On Wed, Mar 20, 2013 at 02:18:00PM +0800, li guang wrote: > =E5=9C=A8 2013-01-09=E4=B8=89=E7=9A=84 01:08 +0100=EF=BC=8CAndreas F=C3= =A4rber=E5=86=99=E9=81=93=EF=BC=9A > > Am 18.12.2012 13:41, schrieb Vasilis Liaskovitis: > > > Because dimm layout needs to be configured on machine-boot, all dim= m devices > > > need to be specified on startup command line (either with populated= =3Don or with > > > populated=3Doff). The dimm information is stored in dimm configurat= ion structures. > > >=20 > > > After machine startup, dimms are hot-added or removed with normal d= evice_add > > > and device_del operations e.g.: > > > Hot-add syntax: "device_add dimm,id=3Dmydimm0,bus=3Dmembus.0" > > > Hot-remove syntax: "device_del dimm,id=3Dmydimm0" > >=20 > > This sounds contradictory: Either all devices need to be specified on > > the command line, or they can be hot-added via monitor. > >=20 > > Assuming a fixed layout at startup, I wonder if there is another clev= er > > way to model this... For CPU hotplug Anthony had suggested to have a > > fixed set of link properties that get set to a CPU socket as > > needed. Might a similar strategy work for memory, i.e. a > > startup-configured amount of links on /machine/dimm[n] that poi= nt > > to a QOM DIMM object or NULL if unpopulated? Hot(un)plug would then > > simply work via QMP qom-set command. (CC'ing some people) >=20 >=20 > Sorry, what's link<>, did it adopted by cpu-QOM? "link<...>" is a QOM construct, allowing properties that point to other objects. We don't use it on the CPU objects yet. > can you give some hints? Look for mentions of "link" in the doc comments at include/qom/object.h. --=20 Eduardo