From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45539) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsKtn-0006Wz-WF for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:10:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsKtm-0006Po-AF for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:10:27 -0500 Received: from cantor2.suse.de ([195.135.220.15]:55473 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsKtm-0006PV-4F for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:10:26 -0500 Message-ID: <50EB47CC.6030507@suse.de> Date: Mon, 07 Jan 2013 23:10:20 +0100 From: =?UTF-8?B?QW5kcmVhcyBGw6RyYmVy?= MIME-Version: 1.0 References: <1355760006-891-1-git-send-email-borntraeger@de.ibm.com> <874nisvlfv.fsf@codemonkey.ws> <87ip78u50m.fsf@codemonkey.ws> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] qdev: obey no_user List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Christian Borntraeger , Anthony Liguori , "qemu-devel@nongnu.org" Am 07.01.2013 21:16, schrieb Peter Maydell: > On 7 January 2013 20:12, Anthony Liguori wrote: >> Peter Maydell writes: >>> It seems to me like arbitrarily allowing the monitor to construct >>> no-user devices isn't really the right way to attack the problem >>> of "allow complete machine construction by management tools"... >> >> There is no such thing as a 'no-user' device. It's a silly distinctio= n >> that has never had a consistent meaning. >=20 > Then let's just rip that flag out completely. That's a bad idea, given that we are about to make the CPU a device. So yes, there are devices that are not meant to be instantiated more than once (e.g., sclp-console). And there are devices that are not meant to be instantiated by the user at all. BTW this patch exposed that there is silly code in this function: When the bus is NULL, it is initialized as the SysBus. But we all know that SysBus is not hotplug-capable in the first place, so we can never device_add on SysBus. Regards, Andreas --=20 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, Germany GF: Jeff Hawn, Jennifer Guild, Felix Imend=C3=B6rffer; HRB 16746 AG N=C3=BC= rnberg