[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 1/2] spapr: Create SPAPRMachine struct
From: |
Aneesh Kumar K.V |
Subject: |
Re: [Qemu-devel] [PATCH v2 1/2] spapr: Create SPAPRMachine struct |
Date: |
Mon, 02 Jun 2014 12:51:12 +0530 |
User-agent: |
Notmuch/0.18~rc0+2~gbc64cdc (http://notmuchmail.org) Emacs/24.3.91.1 (x86_64-unknown-linux-gnu) |
Eduardo Habkost <address@hidden> writes:
> Signed-off-by: Eduardo Habkost <address@hidden>
Tested-by: Aneesh Kumar K.V <address@hidden>
> ---
> 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-devel] [PATCH v2 1/2] spapr: Create SPAPRMachine struct,
Aneesh Kumar K.V <=