Received: from eggs.gnu.org ([2001:4830:134:3::10]:35249) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNSbS-000660-Gr for qemu-devel@nongnu.org; Tue, 11 Mar 2014 15:44:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WNSbN-0007ou-Lm for qemu-devel@nongnu.org; Tue, 11 Mar 2014 15:44:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37134) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WNSbN-0007ol-CM for qemu-devel@nongnu.org; Tue, 11 Mar 2014 15:44:37 -0400 Message-ID: <1394567093.3981.81.camel@localhost.localdomain> From: Marcel Apfelbaum Date: Tue, 11 Mar 2014 21:44:53 +0200 In-Reply-To: <531F43DB.4030405@suse.de> References: <1394552156-18901-1-git-send-email-marcel.a@redhat.com> <531F43DB.4030405@suse.de> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/3] tests/qdev-global-props: fixes due to machine conversion to QOM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?ISO-8859-1?Q?F=E4rber?= Cc: kwolf@redhat.com, ehabkost@redhat.com, mst@redhat.com, armbru@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com, lersek@redhat.com, aliguori@amazon.com On Tue, 2014-03-11 at 18:11 +0100, Andreas F=C3=A4rber wrote: > Hi Marcel, >=20 > Am 11.03.2014 16:35, schrieb Marcel Apfelbaum: > > To be applied on top of: > > hw/boards: converted current_machine to be an instance of Machine= Class > > Rebased for qom-next branch of Andrea's QOM tree. > >=20 > > Patch 1: allows to assign QEMUMachine "automatically", > > and not only in vl.c (we need this in tests) > > Patch 2: converts "none-machine" to QOM > > Patch 3: Fixes qdev-global-props by adding the "none-machine" > > to the tree. > >=20 > > Cc: Andreas F=C3=A4rber > >=20 > > Marcel Apfelbaum (3): > > hw/machine: move QEMUMachine assignment into the core machine > > hw/null-machine: Convert null machine to QOM > > tests/qdev-global-props: Manually add an instance of a QOM machine >=20 > It seems I am to blame for most of the problems you are working around > now, so let's not be too shy to correct myself and make things easier o= n > us. ;) Well, I am on the "follow the rules" and not on "make the rules" stage ye= t, so I am trying to adapt... :) >=20 > I'd rather not take the class_base_init patch - for one class_init woul= d > be more correct, Yes, it would be, I tried it, but it didn't work :( The code does not allow the derived class to use base's class_init functi= on. This is the only reason I chose base_class_init. Do you know any other way to do it? (for my personal knowledge - it seems a very handy tool) > but for another I generally don't like putting such > requirements onto use of a base class. The null machine seems indeed lo= w > hanging fruit for further cleanups - but can't we start by making > MachineClass used instead of QEMUMachine? Then we won't need to assign > mc->qemu_machine any more and can start dropping machine_none. This is indeed my next step after eliminating QemuOpts usage and replace it with QOM machine queries (should be quick, the patches were reviewed once already). Thanks, Marcel >=20 > Regards, > Andreas >=20