From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Eduardo Habkost <ehabkost@redhat.com>,
qemu-devel@nongnu.org, Alexander Graf <agraf@suse.de>,
qemu-ppc@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 1/2] spapr: Create SPAPRMachine struct
Date: Mon, 02 Jun 2014 12:51:12 +0530 [thread overview]
Message-ID: <87sinndbfb.fsf@linux.vnet.ibm.com> (raw)
In-Reply-To: <1401485072-14781-2-git-send-email-ehabkost@redhat.com>
Eduardo Habkost <ehabkost@redhat.com> writes:
> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Tested-by: Aneesh Kumar K.V <aneesh.kumar@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
next parent reply other threads:[~2014-06-02 7:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1401485072-14781-1-git-send-email-ehabkost@redhat.com>
[not found] ` <1401485072-14781-2-git-send-email-ehabkost@redhat.com>
2014-06-02 7:21 ` Aneesh Kumar K.V [this message]
[not found] ` <1401485072-14781-3-git-send-email-ehabkost@redhat.com>
2014-06-02 7:21 ` [Qemu-devel] [PATCH v2 2/2] spapr: Add kvm-type property Aneesh Kumar K.V
2014-06-02 8:20 ` [Qemu-devel] [PATCH v2 0/2] Restore kvm-type option support on -machine pseries Alexander Graf
2014-06-05 22:16 ` Alexander Graf
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87sinndbfb.fsf@linux.vnet.ibm.com \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=agraf@suse.de \
--cc=ehabkost@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).