From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Brook Subject: Re: RFC qdev path semantics Date: Wed, 16 Jun 2010 14:23:57 +0100 Message-ID: <201006161423.58499.paul@codesourcery.com> References: <20100614054923.879.33717.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Alex Williamson , qemu-devel@nongnu.org, chrisw@redhat.com, kvm@vger.kernel.org, kraxel@redhat.com, avi@redhat.com To: Markus Armbruster Return-path: Received: from mail.codesourcery.com ([38.113.113.100]:38860 "EHLO mail.codesourcery.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753079Ab0FPNYH (ORCPT ); Wed, 16 Jun 2010 09:24:07 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: > > Bus names are chosen by the system as follows: > > > > * If the driver of the parent device model provides a name, use that. > > > > * Else, if the parent device has id ID, use ID.NUM, where NUM is the bus > > > > number, counting from zero in creation order. > > > > * Else, use TYPE.NUM, where TYPE is derived from the bus type, and NUM > > > > is the bus number, as above. > > > > ### Paul proposes to drop ID.NUM. > > ABI change: "-device lsi,id=my-scsi -device scsi-disk,bus=my-scsi.0" no > longer works. IMO this is a fundamentally broken ABI, so I don't care. > > ### Paul proposes to either drop TYPE.NUM (and require drivers to > > provide bus names), or make NUM count separately for each bus type. > > Likewise. I'd be surprised if anyone actually uses absolute device paths at this time, and they're probably going to be broken by other changes. Using these default bus names as global identifiers is fixable using aliases (e.g. -device lsi,bus=pci.0). I'd expect this to cover most interesting uses. See http://lists.nongnu.org/archive/html/qemu-devel/2010-06/msg02149.html Paul