From patchwork Tue Dec 1 19:00:07 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kiszka X-Patchwork-Id: 39929 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 21C5E1007D2 for ; Wed, 2 Dec 2009 06:00:49 +1100 (EST) Received: from localhost ([127.0.0.1]:34272 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFXxu-0000XD-Ec for incoming@patchwork.ozlabs.org; Tue, 01 Dec 2009 14:00:46 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFXxS-0000Ws-51 for qemu-devel@nongnu.org; Tue, 01 Dec 2009 14:00:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFXxN-0000Vz-AX for qemu-devel@nongnu.org; Tue, 01 Dec 2009 14:00:17 -0500 Received: from [199.232.76.173] (port=48597 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFXxM-0000Vv-Tw for qemu-devel@nongnu.org; Tue, 01 Dec 2009 14:00:12 -0500 Received: from goliath.siemens.de ([192.35.17.28]:21055) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NFXxM-0003hP-3Y for qemu-devel@nongnu.org; Tue, 01 Dec 2009 14:00:12 -0500 Received: from mail3.siemens.de (localhost [127.0.0.1]) by goliath.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id nB1J08JS023229; Tue, 1 Dec 2009 20:00:08 +0100 Received: from [139.25.109.167] (mchn012c.mchp.siemens.de [139.25.109.167] (may be forged)) by mail3.siemens.de (8.12.11.20060308/8.12.11) with ESMTP id nB1J07In020294; Tue, 1 Dec 2009 20:00:08 +0100 Message-ID: <4B1567B7.60107@siemens.com> Date: Tue, 01 Dec 2009 20:00:07 +0100 From: Jan Kiszka User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); de; rv:1.8.1.12) Gecko/20080226 SUSE/2.0.0.12-1.1 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 MIME-Version: 1.0 To: Anthony Liguori X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 Cc: Pierre Riteau , qemu-devel , Liran Schour , Juan Quintela Subject: [Qemu-devel] [PATCH] vmstate: Fix info field of VMSTATE_MACADDR X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Jan Kiszka --- This may partly or fully explain the e1000 issue Pierre reported first. However, there are more bugs in the current migration code, e.g. in qemu_fseek when used with streams, it still doesn't work properly here. Need a break... hw/hw.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index 86ee716..dc119f0 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -546,7 +546,7 @@ extern const VMStateDescription vmstate_i2c_slave; #define VMSTATE_MACADDR(_field, _state) { \ .name = (stringify(_field)), \ .size = sizeof(MACAddr), \ - .info = &vmstate_info_uint8, \ + .info = &vmstate_info_buffer, \ .flags = VMS_BUFFER, \ .offset = vmstate_offset_macaddr(_state, _field), \ }