From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:41363) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te4lI-0007UM-VR for qemu-devel@nongnu.org; Thu, 29 Nov 2012 09:06:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Te4lE-0004vb-Sx for qemu-devel@nongnu.org; Thu, 29 Nov 2012 09:06:44 -0500 Received: from greensocs.com ([87.106.252.221]:42559 helo=s15328186.onlinehome-server.info) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Te4lE-0004vK-Ep for qemu-devel@nongnu.org; Thu, 29 Nov 2012 09:06:40 -0500 Message-ID: <50B76C06.8000700@greensocs.com> Date: Thu, 29 Nov 2012 15:07:02 +0100 From: Konrad Frederic MIME-Version: 1.0 References: <1354196978-5375-1-git-send-email-aliguori@us.ibm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qdev: relax bus type check in qdev_device_add() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: Anthony Liguori , qemu-devel@nongnu.org On 29/11/2012 14:56, Peter Maydell wrote: > On 29 November 2012 13:49, Anthony Liguori wrote: >> We are currently checking for an exact type match. Use QOM dynamic_cast to >> check for a compatible type instead. > I think this only catches the case where a bus was explicitly > specified via bus=. For the default case you also need to change > the similar code for checking the bus type in qbus_find_recursive(), > right? > > -- PMM Right, it's working only with the "bus=" command line.