From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49324 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORN1x-0006Sv-EU for qemu-devel@nongnu.org; Wed, 23 Jun 2010 06:18:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORN1u-0001c7-JR for qemu-devel@nongnu.org; Wed, 23 Jun 2010 06:18:05 -0400 Received: from thoth.sbs.de ([192.35.17.2]:19425) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORN1u-0001bb-6E for qemu-devel@nongnu.org; Wed, 23 Jun 2010 06:18:02 -0400 Message-ID: <4C21DF53.9070001@siemens.com> Date: Wed, 23 Jun 2010 12:17:55 +0200 From: Jan Kiszka MIME-Version: 1.0 Subject: Re: [Qemu-devel] [PATCH v4 03/23] qdev: Drop ID matching from qtree paths References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Anthony Liguori , Juan Quintela , "qemu-devel@nongnu.org" , Luiz Capitulino , Blue Swirl , Jan Kiszka , Avi Kivity , Gerd Hoffmann Markus Armbruster wrote: > [cc: kraxel] > > Jan Kiszka writes: > >> From: Jan Kiszka >> >> Device IDs may conflict with device names or aliases. From now on we >> only accept them outside qtree paths. This also makes dumping IDs in >> qbus_list_dev/bus obsolete. >> >> Signed-off-by: Jan Kiszka > > I don't like this at all. > > 1. Specific problem: > > With the current code, multiple devices with the same driver work > only if I take care: addressing by driver name gets me only the > first, so I better set suitable IDs. > > With your patch, multiple devices with the same driver don't work, no > matter what I do. [ you already found how this is resolved ] > > 2. General principle: > > When I set an ID, I want the system to accept that ID in all contexts > where it makes sense. Ambiguity created by badly chosen IDs is *my* > problem. I disagree. IMO, QEMU should support the user to avoid such subtle shadowing. Jan -- Siemens AG, Corporate Technology, CT T DE IT 1 Corporate Competence Center Embedded Linux