From: Juan Quintela <quintela@redhat.com>
To: Isaku Yamahata <yamahata@valinux.co.jp>
Cc: mtosatti@redhat.com, qemu-devel@nongnu.org, kvm@vger.kernel.org,
avi@redhat.com
Subject: Re: [PATCH] acpi_piix4: fix save/load of PIIX4PMState
Date: Mon, 18 Apr 2011 18:26:08 +0200 [thread overview]
Message-ID: <m3bp03jzkv.fsf@neno.mitica> (raw)
In-Reply-To: <7e892c9654f16e4c163607222e1554394235ecf4.1303135172.git.yamahata@valinux.co.jp> (Isaku Yamahata's message of "Mon, 18 Apr 2011 23:01:08 +0900")
Isaku Yamahata <yamahata@valinux.co.jp> wrote:
> It's vmstate parameter was wrong. This patch fixes it.
>
> Reported-by: Avi Kivity <avi@redhat.com>
> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
> ---
> hw/acpi_piix4.c | 3 +--
> 1 files changed, 1 insertions(+), 2 deletions(-)
>
> diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c
> index 96f5222..3a8fece 100644
> --- a/hw/acpi_piix4.c
> +++ b/hw/acpi_piix4.c
> @@ -214,10 +214,9 @@ static int vmstate_acpi_post_load(void *opaque, int version_id)
> { \
> .name = (stringify(_field)), \
> .version_id = 0, \
> - .num = GPE_LEN, \
> .info = &vmstate_info_uint16, \
> .size = sizeof(uint16_t), \
> - .flags = VMS_ARRAY | VMS_POINTER, \
> + .flags = VMS_SINGLE | VMS_POINTER, \
> .offset = vmstate_offset_pointer(_state, _field, uint8_t),
> \
shouldn't last one still be uint16_t?
I guess that on ich9, GPE becomes one array, do you have that code handy
somewhere, just to see what you want to do?
I think that best thing to do at this point is just to revert this whole
patch. We are creating a new type for uint8_t, that becomes a pointer.
We are not sending the length of that array, so we need to add a new
version/subsection when we add ICH9 anyways.
Seeing what you want to do would help me trying to figure out the best
vmstate aproach.
Thanks, Juan.
next prev parent reply other threads:[~2011-04-18 16:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 14:01 [PATCH] acpi_piix4: fix save/load of PIIX4PMState Isaku Yamahata
2011-04-18 16:26 ` Juan Quintela [this message]
2011-04-19 7:42 ` Isaku Yamahata
2011-04-19 12:33 ` Juan Quintela
2011-04-19 13:22 ` Isaku Yamahata
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=m3bp03jzkv.fsf@neno.mitica \
--to=quintela@redhat.com \
--cc=avi@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mtosatti@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yamahata@valinux.co.jp \
/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