Received: from eggs.gnu.org ([2001:4830:134:3::10]:37164) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv1aZ-00036K-O6 for qemu-devel@nongnu.org; Fri, 14 Oct 2016 08:27:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bv1aU-0000WT-Kg for qemu-devel@nongnu.org; Fri, 14 Oct 2016 08:27:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40262) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bv1aU-0000Vz-EZ for qemu-devel@nongnu.org; Fri, 14 Oct 2016 08:27:46 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DD2B5C05A282 for ; Fri, 14 Oct 2016 12:27:45 +0000 (UTC) Date: Fri, 14 Oct 2016 14:27:43 +0200 From: Igor Mammedov Message-ID: <20161014142743.4010316d@nial.brq.redhat.com> In-Reply-To: <1476394002-8392-3-git-send-email-ehabkost@redhat.com> References: <1476394002-8392-1-git-send-email-ehabkost@redhat.com> <1476394002-8392-3-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 2/4] pc: Register TYPE_PC_MACHINE properties as class properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Markus Armbruster , Paolo Bonzini , "Michael S. Tsirkin" , Marcel Apfelbaum On Thu, 13 Oct 2016 18:26:40 -0300 Eduardo Habkost wrote: > Signed-off-by: Eduardo Habkost Reviewed-by: Igor Mammedov > --- > hw/i386/pc.c | 56 ++++++++++++++++++++++++++------------------------------ > 1 file changed, 26 insertions(+), 30 deletions(-) > > diff --git a/hw/i386/pc.c b/hw/i386/pc.c > index 93ff49c..f4b0cda 100644 > --- a/hw/i386/pc.c > +++ b/hw/i386/pc.c [...] > + object_class_property_add(oc, PC_MACHINE_MEMHP_REGION_SIZE, "int", > + pc_machine_get_hotplug_memory_region_size, NULL, > + NULL, NULL, &error_abort); Not related to this patch but might be TODO item. Perhaps we should get rid of this property as it's used only internally by build_srat() which has direct access to PCMachineState. > } > > static const TypeInfo pc_machine_info = {