From patchwork Tue Jan 28 20:32:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 23819 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f197.google.com (mail-vc0-f197.google.com [209.85.220.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id BA52B202B2 for ; Tue, 28 Jan 2014 20:33:07 +0000 (UTC) Received: by mail-vc0-f197.google.com with SMTP id hq11sf1877068vcb.4 for ; Tue, 28 Jan 2014 12:33:06 -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=vdDUvJvTjwdgka6fcIzxRTrZztaRAddp9LyJkF2T7+g=; b=fwL9DP2dZQU6D1kiGvq+8BYhS+64HmhCx5AD/Eo4r+WlIzAxUBCXrETqSmBGVq+GgZ E6O16+Xnv6Vh8N0bSWL4RRgCSJ7/bSAbOUaRLDymjlf79lmcUrIl/quQXnRSmRFxXrWR s7IgaVLZB9f/ozmsBnUpsOVx1AAli+1J0O9NO+fv9O11AlMsNT1HMJB1SgepUBpjYYjh 5NNwlF3tiC3/U1qpEjh7C/8wOjc6quBSTOWPdeMCvKgb5oror6SqW540t9CXSWVBUMAX 9QSH70C/0YNwIMJYIqq8hODJcTGhxho1VXwx+zyuz9pl54xHS7CCX63U53sSLsPaHT0z 4eWQ== X-Gm-Message-State: ALoCoQnrEIwavQDtbPGfhdnAnhzm7igGu3q9LwYKFDBn8nXJEcsmd8/JQbV0b7Yr2Ydty7UADUgB X-Received: by 10.236.127.199 with SMTP id d47mr1054200yhi.29.1390941186951; Tue, 28 Jan 2014 12:33:06 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.33.200 with SMTP id j66ls2001166qgj.80.gmail; Tue, 28 Jan 2014 12:33:06 -0800 (PST) X-Received: by 10.58.186.132 with SMTP id fk4mr2657107vec.9.1390941186889; Tue, 28 Jan 2014 12:33:06 -0800 (PST) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id y3si115845vdo.136.2014.01.28.12.33.06 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 12:33:06 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.169 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.169; Received: by mail-vc0-f169.google.com with SMTP id hq11so579399vcb.14 for ; Tue, 28 Jan 2014 12:33:06 -0800 (PST) X-Received: by 10.220.58.202 with SMTP id i10mr2711562vch.23.1390941186792; Tue, 28 Jan 2014 12:33:06 -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.220.174.196 with SMTP id u4csp59549vcz; Tue, 28 Jan 2014 12:33:06 -0800 (PST) X-Received: by 10.68.226.200 with SMTP id ru8mr3641044pbc.77.1390941186018; Tue, 28 Jan 2014 12:33:06 -0800 (PST) Received: from mail-pb0-f51.google.com (mail-pb0-f51.google.com [209.85.160.51]) by mx.google.com with ESMTPS id fv4si16712207pbd.152.2014.01.28.12.33.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 12:33:05 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.51 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.160.51; Received: by mail-pb0-f51.google.com with SMTP id un15so831749pbc.38 for ; Tue, 28 Jan 2014 12:33:05 -0800 (PST) X-Received: by 10.68.239.70 with SMTP id vq6mr3613201pbc.152.1390941185561; Tue, 28 Jan 2014 12:33:05 -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 sq7sm45438283pbc.19.2014.01.28.12.33.04 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 28 Jan 2014 12:33:04 -0800 (PST) From: Christoffer Dall To: qemu-devel@nongnu.org Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org, Christoffer Dall Subject: [PATCH v5 6/8] vmstate: Add uint32 2D-array support Date: Tue, 28 Jan 2014 12:32:43 -0800 Message-Id: <1390941165-2079-7-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1390941165-2079-1-git-send-email-christoffer.dall@linaro.org> References: <1390941165-2079-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.220.169 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 be193ba..a106d51 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -656,9 +656,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)