Received: from eggs.gnu.org ([2001:4830:134:3::10]:51046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMzfX-0006tJ-DI for qemu-devel@nongnu.org; Sat, 23 Jan 2016 10:00:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aMzfU-0005Hq-1L for qemu-devel@nongnu.org; Sat, 23 Jan 2016 10:00:03 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60746) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aMzfT-0005Hc-Rx for qemu-devel@nongnu.org; Sat, 23 Jan 2016 09:59:59 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (Postfix) with ESMTPS id CB0ED42E5B5 for ; Sat, 23 Jan 2016 14:59:58 +0000 (UTC) Date: Sat, 23 Jan 2016 12:59:56 -0200 From: Eduardo Habkost Message-ID: <20160123145956.GK3869@thinpad.lan.raisama.net> References: <1453208789-42479-1-git-send-email-imammedo@redhat.com> <1453208789-42479-8-git-send-email-imammedo@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1453208789-42479-8-git-send-email-imammedo@redhat.com> Subject: Re: [Qemu-devel] [PATCH v17 7/9] add MachineClass->default_props for setting default device properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: mst@redhat.com, ghammer@redhat.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, pbonzini@redhat.com, lersek@redhat.com On Tue, Jan 19, 2016 at 02:06:27PM +0100, Igor Mammedov wrote: > Signed-off-by: Igor Mammedov > --- > include/hw/boards.h | 1 + > vl.c | 4 ++++ > 2 files changed, 5 insertions(+) > > diff --git a/include/hw/boards.h b/include/hw/boards.h > index 0f30959..d495611 100644 > --- a/include/hw/boards.h > +++ b/include/hw/boards.h > @@ -90,6 +90,7 @@ struct MachineClass { > const char *default_machine_opts; > const char *default_boot_order; > const char *default_display; > + GlobalProperty *default_props; > GlobalProperty *compat_props; Could you explain (in a comment?) the purpose of each field? They seem to do exactly the same thing, so why couldn't they become a single linked list, where the compat classes just append new items to the existing default_props list? (If we build default_props by appending instead of overwriting the parent class list, we will be able to finally eliminate PC_COMPAT_* macro nesting) -- Eduardo