Received: from [140.186.70.92] (port=60669 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzVcx-0000zi-By for qemu-devel@nongnu.org; Tue, 15 Mar 2011 10:53:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzVct-000394-5K for qemu-devel@nongnu.org; Tue, 15 Mar 2011 10:53:39 -0400 Received: from mx1.redhat.com ([209.132.183.28]:63123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzVcs-00038U-S0 for qemu-devel@nongnu.org; Tue, 15 Mar 2011 10:53:35 -0400 From: Juan Quintela Date: Tue, 15 Mar 2011 15:53:25 +0100 Message-Id: <1300200805-13928-1-git-send-email-quintela@redhat.com> Subject: [Qemu-devel] [PATCH] Fix migration uint8 arrys handled List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com 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 --- savevm.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/savevm.c b/savevm.c index 60d2f2a..67459a7 100644 --- 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; -- 1.7.4