From patchwork Thu Sep 26 21:03:05 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 20653 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qc0-f198.google.com (mail-qc0-f198.google.com [209.85.216.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5451F23A4E for ; Thu, 26 Sep 2013 21:03:49 +0000 (UTC) Received: by mail-qc0-f198.google.com with SMTP id l13sf1566236qcy.1 for ; Thu, 26 Sep 2013 14:03:49 -0700 (PDT) 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=hAm1krUw5r+B6pEvAmE5jlZm5h3/OGbAR6eAT6jCe3o=; b=g6D/DTb8ZzGUtJoG8yc3M0fB3FfGN97YH71355w63dpTlEow6sFIqrePgQTJa1GaYN lmSF4JJ/AFPqZHVkl4NxsoFqx7u6zdO7847ACHq9x4w1uA5s67dMbQWYlVwGjtYp9b54 d/PiuTa2QL/M6xPXFtQRtb+DboAdEJkSkn1ont2Zj2fPuTbgsK2gVnJaXavHOBON1JyX VmtL1t+aVf2o957ExBV3H49x59L3/q7vgguYnsH17/e0Np5efZ7IUxzfUeH4zxMDwznF iaxeveqdzjGTY42AEkMPQXXibgGqZdHmzsllPgjijfHrOTsKZQVWiN1DhRXKlBtDWB/Q kD3g== X-Gm-Message-State: ALoCoQlYJmVsFqgjViJHt2rw1pzyAGxI1fywZ1WEW8CaK3NQOV+72Si6XxpLACEyJwgUxiZR/LUy X-Received: by 10.58.255.74 with SMTP id ao10mr309137ved.38.1380229429142; Thu, 26 Sep 2013 14:03:49 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.68 with SMTP id da4ls1081451qeb.24.gmail; Thu, 26 Sep 2013 14:03:49 -0700 (PDT) X-Received: by 10.52.227.6 with SMTP id rw6mr2094890vdc.19.1380229429016; Thu, 26 Sep 2013 14:03:49 -0700 (PDT) Received: from mail-vc0-f169.google.com (mail-vc0-f169.google.com [209.85.220.169]) by mx.google.com with ESMTPS id ch11si887163ved.101.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 14:03:49 -0700 (PDT) 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 ib11so1303515vcb.0 for ; Thu, 26 Sep 2013 14:03:18 -0700 (PDT) X-Received: by 10.58.46.229 with SMTP id y5mr2482640vem.15.1380229398921; Thu, 26 Sep 2013 14:03:18 -0700 (PDT) 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 u4csp388819vcz; Thu, 26 Sep 2013 14:03:18 -0700 (PDT) X-Received: by 10.66.216.234 with SMTP id ot10mr7708167pac.122.1380229397969; Thu, 26 Sep 2013 14:03:17 -0700 (PDT) Received: from mail-pa0-f45.google.com (mail-pa0-f45.google.com [209.85.220.45]) by mx.google.com with ESMTPS id yk3si4937782pac.186.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 14:03:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.45 is neither permitted nor denied by best guess record for domain of christoffer.dall@linaro.org) client-ip=209.85.220.45; Received: by mail-pa0-f45.google.com with SMTP id rd3so1848723pab.32 for ; Thu, 26 Sep 2013 14:03:17 -0700 (PDT) X-Received: by 10.68.193.98 with SMTP id hn2mr2759248pbc.191.1380229397576; Thu, 26 Sep 2013 14:03:17 -0700 (PDT) Received: from localhost.localdomain (c-67-169-181-221.hsd1.ca.comcast.net. [67.169.181.221]) by mx.google.com with ESMTPSA id 7sm7385572paf.22.1969.12.31.16.00.00 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 26 Sep 2013 14:03:16 -0700 (PDT) From: Christoffer Dall To: qemu-devel@nongnu.org Cc: kvmarm@lists.cs.columbia.edu, patches@linaro.org, Christoffer Dall Subject: [RFC PATCH v2 5/6] vmstate: Add uint32 2D-array support Date: Thu, 26 Sep 2013 14:03:05 -0700 Message-Id: <1380229386-24166-6-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1380229386-24166-1-git-send-email-christoffer.dall@linaro.org> References: <1380229386-24166-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 VMtate of 2D arrays of uint32 values. Signed-off-by: Christoffer Dall Reviewed-by: Peter Maydell --- 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)