aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@zytor.com>2015-07-13 17:28:18 -0300
committerPaulo Alcantara <pcacjr@zytor.com>2015-07-13 17:28:18 -0300
commited8536f89e0e31001dc2948b9d4aa879db63c46a (patch)
treec144323ed56b3f64d925a32519beacd2b9386e82
parentf3a1b5068cea303a55e2a21a97e66d057eaae638 (diff)
downloadqemu-ich9-fix.tar.gz
qemu-ich9-fix.tar.xz
qemu-ich9-fix.zip
ich9: fix skipped vmstate_memhp_state subsectionich9-fix
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>
-rw-r--r--hw/acpi/ich9.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/acpi/ich9.c b/hw/acpi/ich9.c
index 5fb7a879d..f04f6dc8c 100644
--- a/hw/acpi/ich9.c
+++ b/hw/acpi/ich9.c
@@ -206,9 +206,6 @@ const VMStateDescription vmstate_ich9_pm = {
},
.subsections = (const VMStateDescription*[]) {
&vmstate_memhp_state,
- NULL
- },
- .subsections = (const VMStateDescription*[]) {
&vmstate_tco_io_state,
NULL
}