From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52729) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fdInl-0006Vm-Ie for qemu-devel@nongnu.org; Wed, 11 Jul 2018 13:21:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fdInk-0001Yb-Kv for qemu-devel@nongnu.org; Wed, 11 Jul 2018 13:21:17 -0400 References: <1531170180-21199-1-git-send-email-thuth@redhat.com> <5d0c7195-ffbf-1618-6106-ef6c82df3bd7@redhat.com> From: Paolo Bonzini Message-ID: <955f26d7-5a0b-28e0-bd0f-f663593afefe@redhat.com> Date: Wed, 11 Jul 2018 19:21:08 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable 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: Peter Maydell , Thomas Huth Cc: QEMU Developers , qemu-arm , Markus Armbruster , Eduardo Habkost On 10/07/2018 08:50, Peter Maydell wrote: >>> Yuck. The real problem here is that we're still requiring the >>> code that creates these QOM devices to manually set the parent >>> in the first place. It's not surprising that we don't get it right >>> (either parenting in the wrong place or not at all). I'd much >>> rather see us fix that properly than keep papering over places >>> where we get it wrong. >> Sorry, I'm still not an expert in all this QOM stuff yet ... so what d= o >> you exactly recommend to do instead? > I'm not clear either, but I don't think that what we're > currently doing can be right. Well, in theory it should work... I sent the expected flow in another em= ail. Paolo