From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40987) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ze3Oi-0006rf-Jh for qemu-devel@nongnu.org; Mon, 21 Sep 2015 11:52:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ze3Of-0002qY-7S for qemu-devel@nongnu.org; Mon, 21 Sep 2015 11:52:56 -0400 References: <1442673810-2679-1-git-send-email-afaerber@suse.de> <1442673810-2679-21-git-send-email-afaerber@suse.de> <20150921154928.GB13681@thinpad.lan.raisama.net> From: =?UTF-8?Q?Andreas_F=c3=a4rber?= Message-ID: <560027CF.9090904@suse.de> Date: Mon, 21 Sep 2015 17:52:47 +0200 MIME-Version: 1.0 In-Reply-To: <20150921154928.GB13681@thinpad.lan.raisama.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PULL 20/21] Revert use of DEFINE_MACHINE() for registrations of multiple machines List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Peter Maydell , Evgeny Voevodin , Rob Herring , Igor Mitsyanko , Mark Cave-Ayland , qemu-devel@nongnu.org, Alexander Graf , Blue Swirl , Max Filippov , Michael Walle , =?UTF-8?Q?Herv=c3=a9_Poussineau?= , Dmitry Solodkiy , "open list:ppc4xx" , Maksim Kozlov , Leon Alrae , Aurelien Jarno Am 21.09.2015 um 17:49 schrieb Eduardo Habkost: > On Sat, Sep 19, 2015 at 04:43:29PM +0200, Andreas F=E4rber wrote: >> The script used for converting from QEMUMachine had used one >> DEFINE_MACHINE() per machine registered. In cases where multiple >> machines are registered from one source file, avoid the excessive >> generation of module init functions by reverting this unrolling. >=20 > Why is that a problem? It's unnecessary code bloat and it blocks the usual QOM patterns. See the follow-up series for an example where an abstract base type helps, which your macro does not allow. Regards, Andreas --=20 SUSE Linux GmbH, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GF: Felix Imend=F6rffer, Jane Smithard, Graham Norton; HRB 21284 (AG N=FC= rnberg)