From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=46488 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ORLkC-0004i3-36 for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:55:42 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ORLjz-0001jS-Ke for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:55:28 -0400 Received: from mx1.redhat.com ([209.132.183.28]:3588) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ORLjz-0001j2-E6 for qemu-devel@nongnu.org; Wed, 23 Jun 2010 04:55:27 -0400 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH v4 03/23] qdev: Drop ID matching from qtree paths References: Date: Wed, 23 Jun 2010 10:55:22 +0200 In-Reply-To: (Jan Kiszka's message of "Wed, 16 Jun 2010 00:38:27 +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 , Jan Kiszka , qemu-devel@nongnu.org, Luiz Capitulino , Blue Swirl , Avi Kivity , Gerd Hoffmann [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. 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.