Received: from eggs.gnu.org ([2001:4830:134:3::10]:54972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36h6-0001IB-DM for qemu-devel@nongnu.org; Wed, 18 May 2016 14:59:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b36h1-0004OW-GT for qemu-devel@nongnu.org; Wed, 18 May 2016 14:59:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:34417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b36h1-0004OL-Ap for qemu-devel@nongnu.org; Wed, 18 May 2016 14:59:39 -0400 Date: Wed, 18 May 2016 15:59:35 -0300 From: Eduardo Habkost Message-ID: <20160518185935.GR4457@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> <20160512122630.GE24153@thinpad.lan.raisama.net> <5734ADCC.2050201@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <5734ADCC.2050201@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] qdev: Use GList for global properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: "Michael S. Tsirkin" , Igor Mammedov , Gerd Hoffmann , qemu-devel@nongnu.org On Thu, May 12, 2016 at 06:22:36PM +0200, Andreas F=E4rber wrote: > Am 12.05.2016 um 14:26 schrieb Eduardo Habkost: > > 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? > >=20 > > I've just noticed that this didn't get included. Andreas, is it > > OK if I merge this through the machine core tree? >=20 > In general I don't mind about those lists, but I still have the bus > refactoring sitting in my tree that didn't make it into 2.6 because > someone made last-minute changes to osdep.h that resulted in hundreds o= f > errors in my tree... If you make sure it doesn't conflict, feel free to > take it. Which branch should I look at, to ensure it doesn't conflict? --=20 Eduardo