From patchwork Tue Nov 19 06:18:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 21603 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f71.google.com (mail-oa0-f71.google.com [209.85.219.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 366A120972 for ; Tue, 19 Nov 2013 06:17:19 +0000 (UTC) Received: by mail-oa0-f71.google.com with SMTP id j17sf8980612oag.10 for ; Mon, 18 Nov 2013 22:17:18 -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=KXmHKaDo6nQJi1+ZqSPl+pbRk/VavFYySDG5qLwCJQ0=; b=arpCCI/00zXZ7GoQ51xd4CPS7Q6WaG6hXkBVWc+hz37MlBWG4xwa6T3t5XEH9HnpqA pWHvi/E9acRK34hxpPM9TzVdNm0q6m6yIup7DgeNJtY2Ue1ch1VwmMvWWh1s73q3dLzD 6/Z2n6NAAdx5JmKjbnuRGU9BRZU7ogrQpof2O6rG4wTQFYHo03R2845KdbQT011U4y91 cAWAr5xPnTcaBHp8YnIjv4bno2XpuJCgfkn4MhKpZ7FMzgkODIayEU6kKZ+lqPLePaXp Zceihu+OsD5BaodXmzRHGIUpLBYOFd81TK0a/udZGyWepbROhfe/yn9/bgOfKX19IpO8 8MZA== X-Gm-Message-State: ALoCoQl0ddJKbDN9yFo7Ok88LdQKWbHutoAJOUL7rNRvzdCyhpelChMRK0HYTf6iBQoPdE684VdP X-Received: by 10.43.152.19 with SMTP id ku19mr314252icc.24.1384841838808; Mon, 18 Nov 2013 22:17:18 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.118.103 with SMTP id kl7ls2892174qeb.32.gmail; Mon, 18 Nov 2013 22:17:18 -0800 (PST) X-Received: by 10.220.74.69 with SMTP id t5mr19662265vcj.18.1384841838705; Mon, 18 Nov 2013 22:17:18 -0800 (PST) Received: from mail-ve0-f169.google.com (mail-ve0-f169.google.com [209.85.128.169]) by mx.google.com with ESMTPS id a15si7883439vew.121.2013.11.18.22.17.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 22:17:18 -0800 (PST) Received-SPF: neutral (google.com: 209.85.128.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.128.169; Received: by mail-ve0-f169.google.com with SMTP id pa12so5825792veb.14 for ; Mon, 18 Nov 2013 22:17:18 -0800 (PST) X-Received: by 10.52.120.78 with SMTP id la14mr16732739vdb.9.1384841838628; Mon, 18 Nov 2013 22:17:18 -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 u4csp255372vcz; Mon, 18 Nov 2013 22:17:18 -0800 (PST) X-Received: by 10.67.14.231 with SMTP id fj7mr25208303pad.115.1384841837796; Mon, 18 Nov 2013 22:17:17 -0800 (PST) Received: from mail-pa0-f54.google.com (mail-pa0-f54.google.com [209.85.220.54]) by mx.google.com with ESMTPS id z1si11221757pbn.151.2013.11.18.22.17.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 22:17:17 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.54 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.220.54; Received: by mail-pa0-f54.google.com with SMTP id rd3so2096129pab.27 for ; Mon, 18 Nov 2013 22:17:17 -0800 (PST) X-Received: by 10.68.253.67 with SMTP id zy3mr6603291pbc.137.1384841837390; Mon, 18 Nov 2013 22:17:17 -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 rz6sm19165159pab.22.2013.11.18.22.17.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 18 Nov 2013 22:17:16 -0800 (PST) From: Christoffer Dall To: qemu-devel@nongnu.org Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org, Christoffer Dall Subject: [RFC PATCH v3 08/10] vmstate: Add uint32 2D-array support Date: Mon, 18 Nov 2013 22:18:14 -0800 Message-Id: <1384841896-19566-9-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.8.4.3 In-Reply-To: <1384841896-19566-1-git-send-email-christoffer.dall@linaro.org> References: <1384841896-19566-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.128.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 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)