From: David Gibson <david@gibson.dropbear.id.au>
To: Thomas Huth <thuth@redhat.com>
Cc: lvivier@redhat.com, qemu-devel@nongnu.org,
mdroth@linux.vnet.ibm.com, agraf@suse.de, qemu-ppc@nongnu.org,
bharata@linux.vnet.ibm.com, afaerber@suse.de
Subject: Re: [Qemu-devel] [PATCHv2 4/4] spapr: Add sPAPRMachineClass
Date: Fri, 29 May 2015 11:35:55 +1000 [thread overview]
Message-ID: <20150529013555.GA20986@voom.redhat.com> (raw)
In-Reply-To: <20150526101924.385257c1@thh440s>
[-- Attachment #1: Type: text/plain, Size: 2773 bytes --]
On Tue, May 26, 2015 at 10:19:24AM +0200, Thomas Huth wrote:
> On Tue, 26 May 2015 12:22:59 +1000
> David Gibson <david@gibson.dropbear.id.au> wrote:
>
> > Currently although we have an sPAPRMachineState descended from MachineState
> > we don't have an sPAPRMAchineClass descended from MachineClass. So far it
> > hasn't been needed, but several upcoming features are going to want it,
> > so this patch creates a stub implementation.
> >
> > Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
> > Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
> > Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
> > ---
> > hw/ppc/spapr.c | 1 +
> > include/hw/ppc/spapr.h | 15 +++++++++++++++
> > 2 files changed, 16 insertions(+)
> >
> > diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> > index 63877b9..a607096 100644
> > --- a/hw/ppc/spapr.c
> > +++ b/hw/ppc/spapr.c
> > @@ -1808,6 +1808,7 @@ static const TypeInfo spapr_machine_info = {
> > .abstract = true,
> > .instance_size = sizeof(sPAPRMachineState),
> > .instance_init = spapr_machine_initfn,
> > + .class_size = sizeof(sPAPRMachineClass),
> > .class_init = spapr_machine_class_init,
> > .interfaces = (InterfaceInfo[]) {
> > { TYPE_FW_PATH_PROVIDER },
> > diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
> > index 785b094..0aeac50 100644
> > --- a/include/hw/ppc/spapr.h
> > +++ b/include/hw/ppc/spapr.h
> > @@ -15,11 +15,26 @@ typedef struct sPAPREventLogEntry sPAPREventLogEntry;
> > #define HPTE64_V_HPTE_DIRTY 0x0000000000000040ULL
> > #define SPAPR_ENTRY_POINT 0x100
> >
> > +typedef struct sPAPRMachineClass sPAPRMachineClass;
> > typedef struct sPAPRMachineState sPAPRMachineState;
> >
> > #define TYPE_SPAPR_MACHINE "spapr-machine"
> > #define SPAPR_MACHINE(obj) \
> > OBJECT_CHECK(sPAPRMachineState, (obj), TYPE_SPAPR_MACHINE)
> > +#define SPAPR_MACHINE_GET_CLASS(obj) \
> > + OBJECT_GET_CLASS(sPAPRMachineClass, obj, TYPE_SPAPR_MACHINE)
> > +#define SPAPR_MACHINE_CLASS(klass) \
> > + OBJECT_CLASS_CHECK(sPAPRMachineClass, klass, TYPE_SPAPR_MACHINE)
> > +
> > +/**
> > + * sPAPRMachineClass:
> > + */
> > +struct sPAPRMachineClass {
> > + /*< private >*/
> > + MachineClass parent_class;
> > +
> > + /*< public >*/
> > +};
> >
> > /**
> > * sPAPRMachineState:
>
> Reviewed-by: Thomas Huth <thuth@redhat.com>
Thanks for the review. I've fixed the nit you pointer out in 2/4, and
merged into spapr-next.
--
David Gibson | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_
| _way_ _around_!
http://www.ozlabs.org/~dgibson
[-- Attachment #2: Type: application/pgp-signature, Size: 819 bytes --]
prev parent reply other threads:[~2015-05-29 4:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-26 2:22 [Qemu-devel] [PATCHv2 0/4] sPAPRMachineState cleanups David Gibson
2015-05-26 2:22 ` [Qemu-devel] [PATCHv2 1/4] spapr: Merge sPAPREnvironment into sPAPRMachineState David Gibson
2015-05-26 7:10 ` Thomas Huth
2015-05-26 2:22 ` [Qemu-devel] [PATCHv2 2/4] spapr: Remove obsolete ram_limit field from sPAPRMachineState David Gibson
2015-05-26 8:00 ` Thomas Huth
2015-05-29 1:33 ` David Gibson
2015-05-26 2:22 ` [Qemu-devel] [PATCHv2 3/4] spapr: Remove obsolete entry_point " David Gibson
2015-05-26 8:01 ` Thomas Huth
2015-05-26 2:22 ` [Qemu-devel] [PATCHv2 4/4] spapr: Add sPAPRMachineClass David Gibson
2015-05-26 8:19 ` Thomas Huth
2015-05-29 1:35 ` David Gibson [this message]
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=20150529013555.GA20986@voom.redhat.com \
--to=david@gibson.dropbear.id.au \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=bharata@linux.vnet.ibm.com \
--cc=lvivier@redhat.com \
--cc=mdroth@linux.vnet.ibm.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-ppc@nongnu.org \
--cc=thuth@redhat.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.