From patchwork Thu Sep 10 01:04:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 33257 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 bilbo.ozlabs.org (Postfix) with ESMTPS id 32683B7088 for ; Thu, 10 Sep 2009 11:42:25 +1000 (EST) Received: from localhost ([127.0.0.1]:51926 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlYg2-0000m1-I4 for incoming@patchwork.ozlabs.org; Wed, 09 Sep 2009 21:42:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MlY6F-0004dT-Md for qemu-devel@nongnu.org; Wed, 09 Sep 2009 21:05:23 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MlY6A-0004Yz-BI for qemu-devel@nongnu.org; Wed, 09 Sep 2009 21:05:22 -0400 Received: from [199.232.76.173] (port=48269 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MlY6A-0004Ye-5x for qemu-devel@nongnu.org; Wed, 09 Sep 2009 21:05:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:31194) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MlY69-0002o5-Ec for qemu-devel@nongnu.org; Wed, 09 Sep 2009 21:05:17 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n8A15GeN031767 for ; Wed, 9 Sep 2009 21:05:16 -0400 Received: from localhost.localdomain (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id n8A14ooo020882; Wed, 9 Sep 2009 21:05:16 -0400 From: Juan Quintela To: qemu-devel@nongnu.org Date: Thu, 10 Sep 2009 03:04:42 +0200 Message-Id: In-Reply-To: References: In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.11 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: [Qemu-devel] [PATCH 21/26] vmstate: add uint64 array support 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: Juan Quintela --- hw/hw.h | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/hw/hw.h b/hw/hw.h index b023ced..792f592 100644 --- a/hw/hw.h +++ b/hw/hw.h @@ -495,6 +495,12 @@ extern const VMStateDescription vmstate_pci_device; #define VMSTATE_UINT32_ARRAY(_f, _s, _n) \ VMSTATE_UINT32_ARRAY_V(_f, _s, _n, 0) +#define VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v) \ + VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint64, uint64_t) + +#define VMSTATE_UINT64_ARRAY(_f, _s, _n) \ + VMSTATE_UINT64_ARRAY_V(_f, _s, _n, 0) + #define VMSTATE_INT32_ARRAY_V(_f, _s, _n, _v) \ VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_int32, int32_t)