Skip to content

Commit

Permalink
Fix migration uint8 arrys handled
Browse files Browse the repository at this point in the history
commit 82fa39b

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 <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
  • Loading branch information
Juan Quintela authored and Anthony Liguori committed Mar 21, 2011
1 parent bb98fe4 commit b784421
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions savevm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b784421

Please sign in to comment.