Eduardo Habkost <ehabk...@redhat.com> writes: > Signed-off-by: Eduardo Habkost <ehabk...@redhat.com>
Tested-by: Aneesh Kumar K.V <aneesh.ku...@linux.vnet.ibm.com> > --- > 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