mirror of https://gitee.com/openkylin/qemu.git
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>
This commit is contained in:
parent
da64182c4e
commit
fa3aad24d9
2
savevm.c
2
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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue