diff options
author | Juan Quintela <quintela@redhat.com> | 2011-03-15 15:53:25 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-03-21 17:41:52 -0500 |
commit | b784421ce4cc860315f4ec31bbc3d67e91984074 (patch) | |
tree | 1d1189886ee2691b4c4b0d3efef48d42c00a09e8 /savevm.c | |
parent | bb98fe42c5c0516cae3a7378f3d7ba8e86297678 (diff) | |
download | qemu-b784421ce4cc860315f4ec31bbc3d67e91984074.zip qemu-b784421ce4cc860315f4ec31bbc3d67e91984074.tar.gz qemu-b784421ce4cc860315f4ec31bbc3d67e91984074.tar.bz2 |
Fix migration uint8 arrys handled
commit 82fa39b75181b730d6d4d09f443bd26bcfcd045c
only contains half of the fix. It forgots the save state fix for
UINT8 indexes.
Anthony, please apply, without this migration using hpet is broken.
(only current user).
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1395,6 +1395,8 @@ void vmstate_save_state(QEMUFile *f, const VMStateDescription *vmsd, n_elems = *(int32_t *)(opaque+field->num_offset); } else if (field->flags & VMS_VARRAY_UINT16) { n_elems = *(uint16_t *)(opaque+field->num_offset); + } else if (field->flags & VMS_VARRAY_UINT8) { + n_elems = *(uint8_t *)(opaque+field->num_offset); } if (field->flags & VMS_POINTER) { base_addr = *(void **)base_addr + field->start; |