summaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2009-08-28 15:28:25 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-09-04 09:37:25 -0500
commitfa3aad24d94a6cf894db52d83f72a399324a17bb (patch)
tree71c81c8e9f8ea0f1449a9402f019b70ccb1c9a9b /savevm.c
parentda64182c4e41966a061b8b883f0a23ded9dc8e5e (diff)
downloadqemu-fa3aad24d94a6cf894db52d83f72a399324a17bb.tar.gz
qemu-fa3aad24d94a6cf894db52d83f72a399324a17bb.tar.bz2
qemu-fa3aad24d94a6cf894db52d83f72a399324a17bb.zip
VMState: Fix sub-structs versioning
We can't check the version in a substruct, it is not stored anywhere Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/savevm.c b/savevm.c
index 2b4054a123..99fad798ad 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1048,7 +1048,7 @@ int vmstate_load_state(QEMUFile *f, const VMStateDescription *vmsd,
void *addr = base_addr + field->size * i;
if (field->flags & VMS_STRUCT) {
- ret = vmstate_load_state(f, field->vmsd, addr, version_id);
+ ret = vmstate_load_state(f, field->vmsd, addr, field->vmsd->version_id);
} else {
ret = field->info->get(f, addr, field->size);