Received: from eggs.gnu.org ([2001:4830:134:3::10]:52498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0phP-0002jf-Mb for qemu-devel@nongnu.org; Thu, 12 May 2016 08:26:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b0phJ-0006Me-K1 for qemu-devel@nongnu.org; Thu, 12 May 2016 08:26:38 -0400 Received: from mx1.redhat.com ([209.132.183.28]:59061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b0phJ-0006MZ-Ex for qemu-devel@nongnu.org; Thu, 12 May 2016 08:26:33 -0400 Date: Thu, 12 May 2016 09:26:30 -0300 From: Eduardo Habkost Message-ID: <20160512122630.GE24153@thinpad.lan.raisama.net> References: <1453993346-26423-1-git-send-email-ehabkost@redhat.com> <20160128190106-mutt-send-email-mst@redhat.com> <20160129141512.GX3869@thinpad.lan.raisama.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160129141512.GX3869@thinpad.lan.raisama.net> Subject: Re: [Qemu-devel] [PATCH] qdev: Use GList for global properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Igor Mammedov , Gerd Hoffmann , qemu-devel@nongnu.org, Andreas =?iso-8859-1?Q?F=E4rber?= On Fri, Jan 29, 2016 at 12:15:12PM -0200, Eduardo Habkost wrote: > On Thu, Jan 28, 2016 at 07:01:12PM +0200, Michael S. Tsirkin wrote: > > On Thu, Jan 28, 2016 at 01:02:26PM -0200, Eduardo Habkost wrote: > > > If the same GlobalProperty struct is registered twice, the list > > > entry gets corrupted, making tqe_next points to itself, and > > > qdev_prop_set_globals() gets stuck in a loop. The bug can be > > > easily reproduced by running: > > > > > > $ qemu-system-x86_64 -rtc-td-hack -rtc-td-hack > > > > > > Change global_props to use GList instead of queue.h, making the > > > code simpler and able to deal with properties being registered > > > twice. > > > > > > Signed-off-by: Eduardo Habkost > > > > Reviewed-by: Michael S. Tsirkin > > Thanks! It seems we don't have a maintainer for hw/core/qdev*. > Who should merge this? I've just noticed that this didn't get included. Andreas, is it OK if I merge this through the machine core tree? -- Eduardo