From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56841) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPIia-0008DD-RN for qemu-devel@nongnu.org; Thu, 26 Sep 2013 17:03:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VPIiU-0000tn-Dy for qemu-devel@nongnu.org; Thu, 26 Sep 2013 17:03:24 -0400 Received: from mail-pd0-f171.google.com ([209.85.192.171]:39967) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VPIiU-0000tb-8d for qemu-devel@nongnu.org; Thu, 26 Sep 2013 17:03:18 -0400 Received: by mail-pd0-f171.google.com with SMTP id g10so1676950pdj.2 for ; Thu, 26 Sep 2013 14:03:17 -0700 (PDT) From: Christoffer Dall Date: Thu, 26 Sep 2013 14:03:05 -0700 Message-Id: <1380229386-24166-6-git-send-email-christoffer.dall@linaro.org> In-Reply-To: <1380229386-24166-1-git-send-email-christoffer.dall@linaro.org> References: <1380229386-24166-1-git-send-email-christoffer.dall@linaro.org> Subject: [Qemu-devel] [RFC PATCH v2 5/6] vmstate: Add uint32 2D-array support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvmarm@lists.cs.columbia.edu, Christoffer Dall , patches@linaro.org Add support for saving VMtate of 2D arrays of uint32 values. Signed-off-by: Christoffer Dall --- include/migration/vmstate.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 1c31b5d..e5538c7 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -633,9 +633,15 @@ extern const VMStateInfo vmstate_info_bitmap; #define VMSTATE_UINT32_ARRAY_V(_f, _s, _n, _v) \ VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint32, uint32_t) +#define VMSTATE_UINT32_2DARRAY_V(_f, _s, _n1, _n2, _v) \ + VMSTATE_2DARRAY(_f, _s, _n1, _n2, _v, vmstate_info_uint32, uint32_t) + #define VMSTATE_UINT32_ARRAY(_f, _s, _n) \ VMSTATE_UINT32_ARRAY_V(_f, _s, _n, 0) +#define VMSTATE_UINT32_2DARRAY(_f, _s, _n1, _n2) \ + VMSTATE_UINT32_2DARRAY_V(_f, _s, _n1, _n2, 0) + #define VMSTATE_UINT64_ARRAY_V(_f, _s, _n, _v) \ VMSTATE_ARRAY(_f, _s, _n, _v, vmstate_info_uint64, uint64_t) -- 1.7.10.4