]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
ich9: fix skipped vmstate_memhp_state subsection
authorPaulo Alcantara <pcacjr@gmail.com>
Mon, 13 Jul 2015 20:45:42 +0000 (17:45 -0300)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 20 Jul 2015 11:19:40 +0000 (14:19 +0300)
By declaring another .subsections array for vmstate_tco_io_state made
vmstate_memhp_state not registered anymore. There must be only one
.subsections array for all subsections.

Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Amit Shah <amit.shah@redhat.com>
Reported-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Paulo Alcantara <pcacjr@zytor.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
hw/acpi/ich9.c

index 5fb7a879d61baf1d73a415d02fbc27a3e700be0e..f04f6dc8c30925381581959aee47e53e47ff9e47 100644 (file)
@@ -206,9 +206,6 @@ const VMStateDescription vmstate_ich9_pm = {
     },
     .subsections = (const VMStateDescription*[]) {
         &vmstate_memhp_state,
-        NULL
-    },
-    .subsections = (const VMStateDescription*[]) {
         &vmstate_tco_io_state,
         NULL
     }