From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrMYy-0002lM-6Z for qemu-devel@nongnu.org; Mon, 02 Jun 2014 03:21:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WrMYp-0001O9-2h for qemu-devel@nongnu.org; Mon, 02 Jun 2014 03:21:44 -0400 Received: from e23smtp08.au.ibm.com ([202.81.31.141]:45356) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WrMYo-0001O0-Bb for qemu-devel@nongnu.org; Mon, 02 Jun 2014 03:21:35 -0400 Received: from /spool/local by e23smtp08.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 2 Jun 2014 17:21:26 +1000 From: "Aneesh Kumar K.V" In-Reply-To: <1401485072-14781-2-git-send-email-ehabkost@redhat.com> References: <1401485072-14781-1-git-send-email-ehabkost@redhat.com> <1401485072-14781-2-git-send-email-ehabkost@redhat.com> Date: Mon, 02 Jun 2014 12:51:12 +0530 Message-ID: <87sinndbfb.fsf@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 1/2] spapr: Create SPAPRMachine struct List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost , qemu-devel@nongnu.org, Alexander Graf , qemu-ppc@nongnu.org Eduardo Habkost writes: > Signed-off-by: Eduardo Habkost Tested-by: Aneesh Kumar K.V > --- > hw/ppc/spapr.c | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c > index 57e9578..30764aa 100644 > --- a/hw/ppc/spapr.c > +++ b/hw/ppc/spapr.c > @@ -84,7 +84,20 @@ > > #define HTAB_SIZE(spapr) (1ULL << ((spapr)->htab_shift)) > > + > +typedef struct SPAPRMachine SPAPRMachine; > #define TYPE_SPAPR_MACHINE "spapr-machine" > +#define SPAPR_MACHINE(obj) \ > + OBJECT_CHECK(SPAPRMachine, (obj), TYPE_SPAPR_MACHINE) > + > +/** > + * SPAPRMachine: > + */ > +struct SPAPRMachine { > + /*< private >*/ > + MachineState parent_obj; > +}; > + > > sPAPREnvironment *spapr; > > @@ -1498,6 +1511,7 @@ static void spapr_machine_class_init(ObjectClass *oc, void *data) > static const TypeInfo spapr_machine_info = { > .name = TYPE_SPAPR_MACHINE, > .parent = TYPE_MACHINE, > + .instance_size = sizeof(SPAPRMachine), > .class_init = spapr_machine_class_init, > .interfaces = (InterfaceInfo[]) { > { TYPE_FW_PATH_PROVIDER }, > -- > 1.9.0