Received: from eggs.gnu.org ([208.118.235.92]:48582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP72z-00067U-By for qemu-devel@nongnu.org; Fri, 19 Oct 2012 03:31:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TP72u-0000hu-SY for qemu-devel@nongnu.org; Fri, 19 Oct 2012 03:31:09 -0400 Received: from mx1.redhat.com ([209.132.183.28]:19535) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TP72u-0000hg-JT for qemu-devel@nongnu.org; Fri, 19 Oct 2012 03:31:04 -0400 From: Markus Armbruster References: <1350352644-14436-1-git-send-email-imammedo@redhat.com> <1350352644-14436-4-git-send-email-imammedo@redhat.com> <87a9vlugfc.fsf@codemonkey.ws> <20121017181442.GP16289@otherpad.lan.raisama.net> Date: Fri, 19 Oct 2012 09:31:00 +0200 In-Reply-To: <20121017181442.GP16289@otherpad.lan.raisama.net> (Eduardo Habkost's message of "Wed, 17 Oct 2012 15:14:42 -0300") Message-ID: <874nlqor4b.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH 03/12] qdev: separate core from the code used only by qemu-system-* List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: Igor Mammedov , Anthony Liguori , qemu-devel@nongnu.org, afaerber@suse.de, pbonzini@redhat.com Eduardo Habkost writes: > On Wed, Oct 17, 2012 at 01:00:55PM -0500, Anthony Liguori wrote: [...] >> I don't really understand the split here and the 'system' suffix really >> doesn't explain it for me. Could you at least add a comment to each of >> these files explaining what belongs in them? > > "system" here means "Code used only by qemu-system-*" (in other words, > not used by *-user, and not part of the qdev core). Do you have other > name suggestions? > > The goal here is to make qdev-core.c/qdev-properties as small as > possible (only what's absolutely required for the CPU classes), and put > everything else (that's only used by qemu-system-*) into > qdev-system.c/qdev-properties-system.c. Creates a permanent if minor development burden: where should my property code go? Doubt it's worth the trouble: text data bss dec hex filename 15897 1448 0 17345 43c1 bld/hw/qdev-properties.o In theory, link-time optimizations can drop unused code. Not sure they do in practice.