From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:53762) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fe5wC-00046N-LD for qemu-devel@nongnu.org; Fri, 13 Jul 2018 17:49:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fe5wC-0007Lq-1a for qemu-devel@nongnu.org; Fri, 13 Jul 2018 17:49:16 -0400 Date: Fri, 13 Jul 2018 18:49:08 -0300 From: Eduardo Habkost Message-ID: <20180713214908.GY31657@localhost.localdomain> References: <1531470464-21522-1-git-send-email-thuth@redhat.com> <1531470464-21522-8-git-send-email-thuth@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1531470464-21522-8-git-send-email-thuth@redhat.com> Subject: Re: [Qemu-devel] [PATCH v2 07/16] hw/arm/xlnx-zynqmp: Fix crash when introspecting the "xlnx, zynqmp" device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thomas Huth Cc: qemu-devel@nongnu.org, Peter Maydell , Paolo Bonzini , qemu-arm@nongnu.org, Markus Armbruster , Beniamino Galvani , Subbaraya Sundeep , Alistair Francis , "Edgar E. Iglesias" , Andreas =?iso-8859-1?Q?F=E4rber?= On Fri, Jul 13, 2018 at 10:27:35AM +0200, Thomas Huth wrote: > QEMU currently crashes when e.g. doing something like this: > > echo "{'execute':'qmp_capabilities'} {'execute':'device-list-properties'," \ > "'arguments':{'typename':'xlnx,zynqmp'}}" \ > "{'execute': 'human-monitor-command', " \ > "'arguments': {'command-line': 'info qtree'}}" \ > | aarch64-softmmu/qemu-system-aarch64 -M none,accel=qtest -qmp stdio > > Use the new object_initialize_child() and sysbus_init_child_obj() > functions to get the refernce counting of the child objects right, so > that they are properly cleaned up when the parent gets destroyed. > > Signed-off-by: Thomas Huth Reviewed-by: Eduardo Habkost -- Eduardo