From patchwork Sat Dec 21 06:09:37 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 22704 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vb0-f69.google.com (mail-vb0-f69.google.com [209.85.212.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8489820822 for ; Sat, 21 Dec 2013 06:10:18 +0000 (UTC) Received: by mail-vb0-f69.google.com with SMTP id f12sf3620633vbg.8 for ; Fri, 20 Dec 2013 22:10:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-unsubscribe; bh=RiUGRSs7eWEl36Jeo+PfJFTM5Kwy35tALtn0p2kuwc4=; b=T7z9nymCzCzsXIEn9/SnhR8upJNSShVeJsOLdsEo0tQ8pjUWAEwi2Uv+ZWYT4EPIha 2NpRjmv82FisTSY4eQ0UQG3acUmJxqC13MeExyjrXXYG+13uZNPfzvdzp3zSACBibMqd XLo93oZEFHc5D1IbkgO4DLrWw8C6HaGQoQyb77r9RQ9owzK3GWMM6MVuv5Z72yGY0NWi Z9W1w1/s58REFL1lfQxig/ITmbFsk9abDu3xDiI1ExC5nyyUHgitqcAblEHWLmoX+9yS s0qrS8aT6+/JmDjwdUS13NhN+fmMcjqTO2rArcJCineXTOq03bARZxyTJQvR8HFwAI2w xdlw== X-Gm-Message-State: ALoCoQlK9hAkBXlmrusd77elagOdE5y0lUq1cs6twDNCu1VX3fOgVRcPCd9YWuyuyYVLV2mMBxIl X-Received: by 10.58.238.199 with SMTP id vm7mr5076996vec.17.1387606217611; Fri, 20 Dec 2013 22:10:17 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.71.237 with SMTP id y13ls1028738qeu.2.gmail; Fri, 20 Dec 2013 22:10:17 -0800 (PST) X-Received: by 10.58.181.230 with SMTP id dz6mr699861vec.35.1387606217500; Fri, 20 Dec 2013 22:10:17 -0800 (PST) Received: from mail-vb0-f42.google.com (mail-vb0-f42.google.com [209.85.212.42]) by mx.google.com with ESMTPS id a6si2305784vdp.65.2013.12.20.22.10.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Dec 2013 22:10:17 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.42; Received: by mail-vb0-f42.google.com with SMTP id w5so1969985vbf.1 for ; Fri, 20 Dec 2013 22:10:17 -0800 (PST) X-Received: by 10.221.19.196 with SMTP id ql4mr23267vcb.54.1387606217402; Fri, 20 Dec 2013 22:10:17 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.59.13.131 with SMTP id ey3csp109317ved; Fri, 20 Dec 2013 22:10:16 -0800 (PST) X-Received: by 10.66.250.129 with SMTP id zc1mr13280480pac.153.1387606216430; Fri, 20 Dec 2013 22:10:16 -0800 (PST) Received: from mail-pb0-f46.google.com (mail-pb0-f46.google.com [209.85.160.46]) by mx.google.com with ESMTPS id qu5si7064664pbc.210.2013.12.20.22.10.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Dec 2013 22:10:16 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.46 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.160.46; Received: by mail-pb0-f46.google.com with SMTP id md12so3428262pbc.5 for ; Fri, 20 Dec 2013 22:10:16 -0800 (PST) X-Received: by 10.66.139.130 with SMTP id qy2mr13097705pab.73.1387606216003; Fri, 20 Dec 2013 22:10:16 -0800 (PST) Received: from localhost.localdomain (c-67-169-181-221.hsd1.ca.comcast.net. [67.169.181.221]) by mx.google.com with ESMTPSA id ae5sm24345852pac.18.2013.12.20.22.10.12 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 20 Dec 2013 22:10:15 -0800 (PST) From: Christoffer Dall To: qemu-devel@nongnu.org Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org, Christoffer Dall Subject: [RFC PATCH v4 6/8] vmstate: Add uint32 2D-array support Date: Fri, 20 Dec 2013 22:09:37 -0800 Message-Id: <1387606179-22709-7-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.8.5 In-Reply-To: <1387606179-22709-1-git-send-email-christoffer.dall@linaro.org> References: <1387606179-22709-1-git-send-email-christoffer.dall@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: christoffer.dall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.42 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , Add support for saving VMState of 2D arrays of uint32 values. Reviewed-by: Peter Maydell 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 9d09e60..c44e3b5 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -646,9 +646,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)