Received: from eggs.gnu.org ([2001:4830:134:3::10]:50817) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP9pX-0003Nq-Ip for qemu-devel@nongnu.org; Fri, 29 Jan 2016 09:15:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aP9pU-0001Sx-8e for qemu-devel@nongnu.org; Fri, 29 Jan 2016 09:15:19 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aP9pU-0001Sn-2x for qemu-devel@nongnu.org; Fri, 29 Jan 2016 09:15:16 -0500 Date: Fri, 29 Jan 2016 12:15:12 -0200 From: Eduardo Habkost Message-ID: <20160129141512.GX3869@thinpad.lan.raisama.net> References: <1453993346-26423-1-git-send-email-ehabkost@redhat.com> <20160128190106-mutt-send-email-mst@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160128190106-mutt-send-email-mst@redhat.com> 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 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? -- Eduardo