Received: from eggs.gnu.org ([2001:4830:134:3::10]:38124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsWAr-0000pl-VJ for qemu-devel@nongnu.org; Mon, 16 Dec 2013 06:17:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VsWAm-0001Gv-6R for qemu-devel@nongnu.org; Mon, 16 Dec 2013 06:17:21 -0500 Received: from mx1.redhat.com ([209.132.183.28]:27544) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VsWAl-0001GQ-Uu for qemu-devel@nongnu.org; Mon, 16 Dec 2013 06:17:16 -0500 From: Markus Armbruster References: <1385718225-26379-1-git-send-email-armbru@redhat.com> <1385718225-26379-2-git-send-email-armbru@redhat.com> <52AE1752.2080605@suse.de> <87k3f5mb9x.fsf@blackfin.pond.sub.org> Date: Mon, 16 Dec 2013 12:17:07 +0100 In-Reply-To: (Peter Maydell's message of "Mon, 16 Dec 2013 09:33:39 +0000") Message-ID: <87a9g1cafg.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 1/2] hw: cannot_instantiate_with_device_add_yet due to pointer props List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Marcel Apfelbaum , QEMU Developers , Fabien Chouteau , Blue Swirl , Gerd Hoffmann , Anthony Liguori , "Edgar E. Iglesias" , Andreas =?utf-8?Q?F=C3=A4rber?= Peter Maydell writes: > On 16 December 2013 08:48, Markus Armbruster wrote: >> Peter Maydell writes: >>> I kind of think this whole thing is backwards anyway: >>> we should really say "the user can only instantiate >>> devices via command line or monitor that are specifically >>> intended to be hot-pluggable", rather than having an >>> enormous list of devices we flag as not instantiable >>> by the user. Even if someday we manage to make it technically >>> possible to instantiate an omap_i2c device (say) from the >>> command line, it will still be a completely bizarre thing to do >>> because it's only intended to work as a part of the omap SoC. >> >> "Hot-pluggable" doesn't apply here. There are plenty of devices that >> can only be cold-plugged, yet are absolutely meant to be user-pluggable. >> Real ISA cards, for instance. > > Mmm. Just plain "pluggable" would be more what I meant: > modelling something that on real hardware is really a > simple pluggable socket. That makes sense to me. >> However, the current code lets users plug absolutely everything, even >> stuff that is known not to work. The code still has the remnants of a >> mechanism meant to protect users from known-not-to-work plugs, but it >> got broken some time ago. My "Clean up and fix no_user" series fixes >> that regression in a way that's hopefully agreeable with Anthony, who >> has been quite insistent on letting device_add plug more rather than >> less. This series merely patches some holes on top. >> >> The list of non-pluggable devices may be larger than the list of >> pluggable ones, but: I count just 48 instances of >> "cannot_instantiate_with_device_add_yet = true". I doubt marking >> devices that can be plugged instead of the ones than can't be would take >> fewer marks. Moreover, each one comes with a comment explaining *why* >> the device cannot be plugged. Sure nice to have when such a "why" goes >> away. Some of them are expected to go away eventually. > > I would expect 99% of actually pluggable devices to be pluggable > because they're using a pluggable bus: ISA, PCI, USB, ... > > Anyway, I don't actively object to this series. I just think > Anthony's going in the wrong direction which is why I haven't > been particularly eager to actively mark it as reviewed-by me > either... Understandable :) Thanks!