All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexey Kardashevskiy <aik@ozlabs.ru>
To: qemu-devel@nongnu.org
Cc: qemu-ppc@nongnu.org, Alexander Graf <agraf@suse.de>
Subject: Re: [Qemu-devel] [PATCH] spapr: Define a 2.1 pseries machine
Date: Wed, 25 Jun 2014 01:16:39 +1000	[thread overview]
Message-ID: <53A99657.3080405@ozlabs.ru> (raw)
In-Reply-To: <1403622033-3748-1-git-send-email-aik@ozlabs.ru>

On 06/25/2014 01:00 AM, Alexey Kardashevskiy wrote:
> This adds a v2.1 machine to support backward compatibility
> for newer macines in the case if they ever be implemented.
> 
> This adds a "pseries-2.1" machine as a child of the "pseries"
> machine and only changes visible machine name.
> 
> Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>

Agrh. Drop it. For some reason unknown there is SPAPRMachine struct instead
of expected sPAPRMachineState struct. I'll change this and repost
everything in a patchset.


> ---
> 
> It seems to be everyone's consensus that we want some versioned
> pseries machine so here it is :)
> 
> ---
>  hw/ppc/spapr.c | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 
> diff --git a/hw/ppc/spapr.c b/hw/ppc/spapr.c
> index f4d464a..ab8f1ba 100644
> --- a/hw/ppc/spapr.c
> +++ b/hw/ppc/spapr.c
> @@ -1672,9 +1672,26 @@ static const TypeInfo spapr_machine_info = {
>      },
>  };
>  
> +static void spapr_machine_2_1_class_init(ObjectClass *oc, void *data)
> +{
> +    MachineClass *mc = MACHINE_CLASS(oc);
> +
> +    mc->name = "pseries-2.1";
> +    mc->desc = "pSeries Logical Partition (PAPR compliant) v2.1";
> +    mc->is_default = 0;
> +}
> +
> +static const TypeInfo spapr_machine_2_1_info = {
> +    .name          = TYPE_SPAPR_MACHINE "2.1",
> +    .parent        = TYPE_SPAPR_MACHINE,
> +    .instance_size = sizeof(SPAPRMachine),
> +    .class_init    = spapr_machine_2_1_class_init,
> +};
> +
>  static void spapr_machine_register_types(void)
>  {
>      type_register_static(&spapr_machine_info);
> +    type_register_static(&spapr_machine_2_1_info);
>  }
>  
>  type_init(spapr_machine_register_types)
> 


-- 
Alexey

      reply	other threads:[~2014-06-24 15:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-24 15:00 [Qemu-devel] [PATCH] spapr: Define a 2.1 pseries machine Alexey Kardashevskiy
2014-06-24 15:16 ` Alexey Kardashevskiy [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=53A99657.3080405@ozlabs.ru \
    --to=aik@ozlabs.ru \
    --cc=agraf@suse.de \
    --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 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.