qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] acpi_piix4: fix save/load of PIIX4PMState
@ 2011-04-18 14:01 Isaku Yamahata
  2011-04-18 16:26 ` Juan Quintela
  0 siblings, 1 reply; 5+ messages in thread
From: Isaku Yamahata @ 2011-04-18 14:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: yamahata, mtosatti, avi, kvm, quintela

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),  \
  }
 
-- 
1.7.1.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-04-19 13:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-18 14:01 [Qemu-devel] [PATCH] acpi_piix4: fix save/load of PIIX4PMState Isaku Yamahata
2011-04-18 16:26 ` Juan Quintela
2011-04-19  7:42   ` Isaku Yamahata
2011-04-19 12:33     ` Juan Quintela
2011-04-19 13:22       ` Isaku Yamahata

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).