qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: Alexey Kardashevskiy <aik@ozlabs.ru>,
	Anthony Liguori <aliguori@us.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
	qemu-ppc@nongnu.org, qemu-devel@nongnu.org,
	David Gibson <david@gibson.dropbear.id.au>
Subject: Re: [Qemu-devel] [PATCH v2 01/11] target-ppc: Convert ppc cpu savevm to VMStateDescription
Date: Wed, 24 Jul 2013 10:22:34 +0200	[thread overview]
Message-ID: <51EF8ECA.4070807@suse.de> (raw)
In-Reply-To: <51EF8D74.1000607@ozlabs.ru>

Am 24.07.2013 10:16, schrieb Alexey Kardashevskiy:
> On 07/19/2013 05:32 AM, Anthony Liguori wrote:
>> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
>> index 79bfcd8..09ea944 100644
>> --- a/target-ppc/translate_init.c
>> +++ b/target-ppc/translate_init.c
>> @@ -8449,6 +8449,8 @@ static void ppc_cpu_class_init(ObjectClass *oc, void *data)
>>      cc->do_interrupt = ppc_cpu_do_interrupt;
>>      cc->dump_state = ppc_cpu_dump_state;
>>      cc->dump_statistics = ppc_cpu_dump_statistics;
>> +
>> +    cpu_class_set_vmsd(cc, &vmstate_ppc_cpu);
>>  }
> 
> 
> Does not apply on the current master from qemu.org, need this:
> 
> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
> index f97c0c7..f377b74 100644
> --- a/target-ppc/translate_init.c
> +++ b/target-ppc/translate_init.c
> @@ -8462,7 +8462,7 @@ static void ppc_cpu_class_init(ObjectClass *oc, void
> *data)
>      cc->get_phys_page_debug = ppc_cpu_get_phys_page_debug;
>  #endif
> 
> -    cpu_class_set_vmsd(cc, &vmstate_ppc_cpu);
> +    dc->vmsd = &vmstate_ppc_cpu;
>  }
> 
>  static const TypeInfo ppc_cpu_type_info = {

That would break ppc-linux-user. It needs to go into the #ifdef above,
which obsoleted cpu_class_set_vmsd().

Andreas

-- 
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg

  reply	other threads:[~2013-07-24  8:22 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-18 19:32 [Qemu-devel] [PATCH v2 00/11] pseries: migration and QOM support Anthony Liguori
2013-07-18 19:32 ` [Qemu-devel] [PATCH v2 01/11] target-ppc: Convert ppc cpu savevm to VMStateDescription Anthony Liguori
2013-07-24  8:16   ` Alexey Kardashevskiy
2013-07-24  8:22     ` Andreas Färber [this message]
2013-07-18 19:32 ` [Qemu-devel] [PATCH v2 02/11] pseries: savevm support for VIO devices Anthony Liguori
2013-07-18 19:32 ` [Qemu-devel] [PATCH v2 03/11] pseries: savevm support for PAPR VIO logical lan Anthony Liguori
2013-07-18 19:32 ` [Qemu-devel] [PATCH v2 04/11] pseries: savevm support for PAPR VIO logical tty Anthony Liguori
2013-07-18 19:32 ` [Qemu-devel] [PATCH v2 05/11] spapr-tce: make sPAPRTCETable a proper device Anthony Liguori
2013-07-18 19:32 ` [Qemu-devel] [PATCH v2 06/11] pseries: rework PAPR virtual SCSI Anthony Liguori
2013-07-18 19:33 ` [Qemu-devel] [PATCH v2 07/11] pseries: savevm support for " Anthony Liguori
2013-07-18 19:33 ` [Qemu-devel] [PATCH v2 08/11] pseries: savevm support for pseries machine Anthony Liguori
2013-07-18 19:33 ` [Qemu-devel] [PATCH v2 09/11] pseries: savevm support for PCI host bridge Anthony Liguori
2013-07-18 19:33 ` [Qemu-devel] [PATCH v2 10/11] pseries: savevm support with KVM Anthony Liguori
2013-07-18 19:33 ` [Qemu-devel] [PATCH v2 11/11] xics: rename types to be sane and follow coding style Anthony Liguori
2013-07-23 14:38 ` [Qemu-devel] [PATCH v2 00/11] pseries: migration and QOM support Anthony Liguori
2013-07-24  8:29   ` Andreas Färber
2013-07-29 20:24 ` Anthony Liguori

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=51EF8ECA.4070807@suse.de \
    --to=afaerber@suse.de \
    --cc=aik@ozlabs.ru \
    --cc=aliguori@us.ibm.com \
    --cc=david@gibson.dropbear.id.au \
    --cc=pbonzini@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).