From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45978) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUgHe-0002y4-KB for qemu-devel@nongnu.org; Thu, 09 Jun 2011 10:32:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QUgHc-00080i-Lq for qemu-devel@nongnu.org; Thu, 09 Jun 2011 10:32:30 -0400 Received: from mail-px0-f174.google.com ([209.85.212.174]:53370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QUgHc-00080e-Al for qemu-devel@nongnu.org; Thu, 09 Jun 2011 10:32:28 -0400 Received: by pxi15 with SMTP id 15so1144129pxi.33 for ; Thu, 09 Jun 2011 07:32:27 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <4DEFAAB8.4090000@redhat.com> Date: Thu, 9 Jun 2011 15:32:27 +0100 Message-ID: From: Peter Maydell Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] inconsistency between device traversal in qdev and legacy List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: Gerd Hoffmann , QEMU Developers On 9 June 2011 14:59, Markus Armbruster wrote: > The fact that we duplicate qtree information in a separate list "busses" > either means we've been too lazy to garbage collect busses, or we've > failed to make working with the qtree as easy as it should be. If you get rid of busses you need to update usb-musb.c to be more qdev-ish (so it has a parent device it can pass to usb_bus_new()). Otherwise the USB bus it creates won't appear anywhere (at the moment it at least appears on the busses list so it's usable with the legacy syntax if not with -device.) (There's code in the meego/qemu-linaro trees that does this, but it's a bit tangled up with the other patches at the moment.) -- PMM