From patchwork Sun Feb 2 23:17:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 24019 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id EBB5020341 for ; Sun, 2 Feb 2014 23:17:34 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id i4sf28236375oah.3 for ; Sun, 02 Feb 2014 15:17:34 -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=GogxKXZnigamCuJtlTj4BOavGiFcGIX8E2B+AoNEEJ3XCxX9Szg7rJMZl0mKpae+ot 8lo7rDpvAVTN1fnYnhMoZdAtlzk6cwAV7UjmCsJZ2GJg606ja7FNJXU/x3D1OLS4bAw0 Y5gLK3fNmUAJgWik/kaZqfDJTIBGpfR6ZfS2hm8MWRMWGibgKaApQTX9FEaCbUIGHuOl BSrODpNR9I7QJknmaZ5HTalUhO6BQRh+yoyKrEW4bYdHNGyr0VUbP/A55q3qyE9ILcUd VLUpejM0EOBTEU+/hJAqvDLzOtAK7o8MueoNrHk5OumEzWv0ABlRlhxSvwy1moQYB0kl j7Qg== X-Gm-Message-State: ALoCoQm5DR3cWOhAQjYsMOEHum4noxA4mZouKCiT5AurjCUTmhkHVGl/ikYVzI2qywObxiKtmV1G X-Received: by 10.50.112.10 with SMTP id im10mr4722071igb.1.1391383054055; Sun, 02 Feb 2014 15:17:34 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.135 with SMTP id j7ls313355qgf.88.gmail; Sun, 02 Feb 2014 15:17:34 -0800 (PST) X-Received: by 10.52.26.148 with SMTP id l20mr2056609vdg.28.1391383053974; Sun, 02 Feb 2014 15:17:33 -0800 (PST) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id vd4si6233423vdc.52.2014.02.02.15.17.33 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 15:17:33 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.50 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.50; Received: by mail-vb0-f50.google.com with SMTP id w8so4361022vbj.9 for ; Sun, 02 Feb 2014 15:17:33 -0800 (PST) X-Received: by 10.58.226.163 with SMTP id rt3mr155444vec.34.1391383053909; Sun, 02 Feb 2014 15:17:33 -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 u4csp117661vcz; Sun, 2 Feb 2014 15:17:33 -0800 (PST) X-Received: by 10.66.188.203 with SMTP id gc11mr33515676pac.63.1391383053165; Sun, 02 Feb 2014 15:17:33 -0800 (PST) Received: from mail-pb0-f47.google.com (mail-pb0-f47.google.com [209.85.160.47]) by mx.google.com with ESMTPS id qx4si18344011pbc.135.2014.02.02.15.17.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 15:17:33 -0800 (PST) Received-SPF: neutral (google.com: 209.85.160.47 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.160.47; Received: by mail-pb0-f47.google.com with SMTP id rp16so6384984pbb.20 for ; Sun, 02 Feb 2014 15:17:32 -0800 (PST) X-Received: by 10.66.159.132 with SMTP id xc4mr33602963pab.27.1391383052801; Sun, 02 Feb 2014 15:17:32 -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 qq5sm49777615pbb.24.2014.02.02.15.17.31 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 02 Feb 2014 15:17:31 -0800 (PST) From: Christoffer Dall To: qemu-devel@nongnu.org Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org, Christoffer Dall Subject: [PATCH v6 4/6] vmstate: Add uint32 2D-array support Date: Sun, 2 Feb 2014 15:17:22 -0800 Message-Id: <1391383044-596-5-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.8.5.2 In-Reply-To: <1391383044-596-1-git-send-email-christoffer.dall@linaro.org> References: <1391383044-596-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.50 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)