Fix migration uint8 arrys handled
authorJuan Quintela <quintela@redhat.com>
Tue, 15 Mar 2011 14:53:25 +0000 (15:53 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 21 Mar 2011 22:41:52 +0000 (17:41 -0500)
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>
savevm.c

index 388bf6f5d3f37e8b0bd77e28d78034b504218871..03fce62975067a963c56b0a554586b8f61e2c887 100644 (file)
--- a/savevm.c
+++ b/savevm.c
@@ -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;