Received: from [140.186.70.92] (port=53600 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OROHg-0002PW-VY for qemu-devel@nongnu.org; Wed, 23 Jun 2010 07:38:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OROHf-0005qs-MS for qemu-devel@nongnu.org; Wed, 23 Jun 2010 07:38:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:26275) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OROHf-0005ql-Ft for qemu-devel@nongnu.org; Wed, 23 Jun 2010 07:38:23 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH v4 03/23] qdev: Drop ID matching from qtree paths References: <4C21DF53.9070001@siemens.com> Date: Wed, 23 Jun 2010 13:38:17 +0200 In-Reply-To: <4C21DF53.9070001@siemens.com> (Jan Kiszka's message of "Wed, 23 Jun 2010 12:17:55 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Anthony Liguori , Juan Quintela , "qemu-devel@nongnu.org" , Luiz Capitulino , Blue Swirl , Jan Kiszka , Avi Kivity , Gerd Hoffmann Jan Kiszka writes: > 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 ] Yes, but I don't like that the intermediate state is broken, and I don't like the final state. >> 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. IDs let me refer to my devices without having to look up ever-changing instance numbers. This is especially relevant when I want to do refer to buses without using (possibly ambigious) bus names. I want to be able to say bus=scsi-ctrl.2/scsi.0 instead of /i440FX-pcihost/pci.0/lsi53c895a./scsi.0 That's much more valuable to me than a well-meant attempt at protecting me from choosing IDs badly. Throw in multiple PCI buses, and a "no IDs in qdev paths" law becomes even more annoying.