Received: from eggs.gnu.org ([2001:4830:134:3::10]:58616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdLXe-00042V-7G for qemu-devel@nongnu.org; Wed, 11 Jul 2018 16:16:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdLXd-0002x4-Cp for qemu-devel@nongnu.org; Wed, 11 Jul 2018 16:16:50 -0400 Sender: Paolo Bonzini References: <1531170180-21199-1-git-send-email-thuth@redhat.com> <20180711183031.GM914@localhost.localdomain> From: Paolo Bonzini Message-ID: Date: Wed, 11 Jul 2018 22:16:42 +0200 MIME-Version: 1.0 In-Reply-To: <20180711183031.GM914@localhost.localdomain> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] hw/arm/bcm283x: Fix crash with device_add bcm2837 on unsupported machines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Thomas Huth , qemu-devel@nongnu.org, Peter Maydell , qemu-arm@nongnu.org, Markus Armbruster On 11/07/2018 20:30, Eduardo Habkost wrote: >> The theoretical behavior should be: > It's not clear below where you expect > qdev_set_parent_bus(..., sysbus_get_default()) > to be called (if it should be called at all). > > I don't know where it should be called, but I'm absolutely sure > instance_init is not the right place. I think instance_init is fine to call qdev_set_parent_bus on contained devices. Why do you say it's not? Thanks, Paolo