[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT fa3aad2] VMState: Fix sub-structs versioning
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT fa3aad2] VMState: Fix sub-structs versioning |
Date: |
Fri, 04 Sep 2009 14:43:53 -0000 |
From: Juan Quintela <address@hidden>
We can't check the version in a substruct, it is not stored anywhere
Signed-off-by: Juan Quintela <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/savevm.c b/savevm.c
index 2b4054a..99fad79 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);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT fa3aad2] VMState: Fix sub-structs versioning,
Anthony Liguori <=