Received: from eggs.gnu.org ([2001:4830:134:3::10]:41032) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze3Oz-0007AA-PH for qemu-devel@nongnu.org; Mon, 21 Sep 2015 11:53:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze3Ow-0002v1-CJ for qemu-devel@nongnu.org; Mon, 21 Sep 2015 11:53:13 -0400 Received: from mx1.redhat.com ([209.132.183.28]:58175) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze3Ow-0002up-80 for qemu-devel@nongnu.org; Mon, 21 Sep 2015 11:53:10 -0400 Date: Mon, 21 Sep 2015 12:53:07 -0300 From: Eduardo Habkost Message-ID: <20150921155307.GG4004@thinpad.lan.raisama.net> References: <1442677004-4482-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: <1442677004-4482-1-git-send-email-afaerber@suse.de> Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 0/6] machine: Deprecate machine_init() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?iso-8859-1?Q?F=E4rber?= Cc: Marcel Apfelbaum , qemu-devel@nongnu.org, "Michael S. Tsirkin" On Sat, Sep 19, 2015 at 05:36:37PM +0200, Andreas F=E4rber wrote: > Hello, >=20 > Based on my pending qom-next pull, this series continues Eduardo's mach= ine cleanups. > Having eliminated QEMUMachine and qemu_machine_register(), this series = eliminates > machine_init() and MODULE_INIT_MACHINE. >=20 > As a side effect a few non-machine callers had to be updated, mostly fo= r QemuOpts. >=20 > It goes on to update Exynos4 machines for QOM, demonstrating that DEFIN= E_MACHINE() > can be inferior to inlining the QOM boilerplate code in case of multipl= e machines. Marcel once asked me if we could call DEFINE_MACHINE something like DEFINE_SIMPLE_MACHINE, to clarify that it's supposed to be used only on very simple cases that don't require anything except initializing some MachineClass fields. Initially, I assumed that almost every machine class would use DEFINE_MACHINE, but then I noticed that it is not enough when one extra inheritance level or a different class_size is involved. So I think Marcel was right and we could rename DEFINE_MACHINE to DEFINE_SIMPLE_MACHINE. >=20 > Independently, I noticed a nit in the PC machine macro I'm touching tha= t could > probably even be cherry-picked. Thanks! --=20 Eduardo