Received: from eggs.gnu.org ([2001:4830:134:3::10]:35854) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bunWj-0001Rw-Fa for qemu-devel@nongnu.org; Thu, 13 Oct 2016 17:26:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bunWc-0003ot-AJ for qemu-devel@nongnu.org; Thu, 13 Oct 2016 17:26:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bunWc-0003oj-4C for qemu-devel@nongnu.org; Thu, 13 Oct 2016 17:26:50 -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 4A5F24E4CC for ; Thu, 13 Oct 2016 21:26:49 +0000 (UTC) From: Eduardo Habkost Date: Thu, 13 Oct 2016 18:26:38 -0300 Message-Id: <1476394002-8392-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] machine, hostmem, pc: Register properties as class properties List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , Paolo Bonzini , "Michael S. Tsirkin" , Marcel Apfelbaum , Igor Mammedov This series changes the existing machine, pc, and hostmem code to register their QOM properties as class properties on class_init instead of instance properties on instance_init. Eduardo Habkost (4): machine: Register TYPE_MACHINE properties as class properties pc: Register TYPE_PC_MACHINE properties as class properties hostmem: Register TYPE_MEMORY_BACKEND properties as class properties hostmem-file: Register TYPE_MEMORY_BACKEND_FILE properties as class properties backends/hostmem-file.c | 26 +++--- backends/hostmem.c | 42 +++++----- hw/core/machine.c | 206 +++++++++++++++++++++++------------------------- hw/i386/pc.c | 56 ++++++------- 4 files changed, 157 insertions(+), 173 deletions(-) -- 2.7.4