From nobody Tue Feb 10 03:55:43 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1530279808656483.92780815027663; Fri, 29 Jun 2018 06:43:28 -0700 (PDT) Received: from localhost ([::1]:42224 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYtgL-0001V5-Tv for importer@patchew.org; Fri, 29 Jun 2018 09:43:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38099) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYtUH-0007hT-3e for qemu-devel@nongnu.org; Fri, 29 Jun 2018 09:31:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fYtU9-0007A9-Np for qemu-devel@nongnu.org; Fri, 29 Jun 2018 09:30:57 -0400 Received: from greensocs.com ([193.104.36.180]:58557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fYtU1-0006ZV-Ho; Fri, 29 Jun 2018 09:30:41 -0400 Received: from localhost (localhost [127.0.0.1]) by greensocs.com (Postfix) with ESMTP id 6FD614434B0; Fri, 29 Jun 2018 15:30:34 +0200 (CEST) Received: from greensocs.com ([127.0.0.1]) by localhost (gs-01.greensocs.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9-y2MaalaNpm; Fri, 29 Jun 2018 15:30:33 +0200 (CEST) Received: by greensocs.com (Postfix, from userid 998) id EA23C4434AF; Fri, 29 Jun 2018 15:30:32 +0200 (CEST) Received: from michell-laptop.hive.antfield.fr (LFbn-LYO-1-488-36.w2-7.abo.wanadoo.fr [2.7.77.36]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: luc.michel@greensocs.com) by greensocs.com (Postfix) with ESMTPSA id CADF44434A7; Fri, 29 Jun 2018 15:30:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1530279034; bh=hy2xioeOgpWDvjVWNTqy9JfacgGmvViw5GG6aQwA0B0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=uCe6PokQcZ8qX+glvR6h0qVezPl90zgGcl+hWtR3rkCjWM64qRTh2Ja6fnAAriHDM /od8K53tLl6gmTF1XOg44yO5mk8oaIqXqJWyV1hS5xMez43PFgiQCvaS/CsZlHZ0ES en0/jFgcTPlZxzXC2yKTPrRi7UGCJ1dEevn92heg= X-Virus-Scanned: amavisd-new at greensocs.com Authentication-Results: gs-01.greensocs.com (amavisd-new); dkim=pass (1024-bit key) header.d=greensocs.com header.b=7SF37hjK; dkim=pass (1024-bit key) header.d=greensocs.com header.b=7SF37hjK DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1530279032; bh=hy2xioeOgpWDvjVWNTqy9JfacgGmvViw5GG6aQwA0B0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=7SF37hjKAF7IXVvDtHUL+CAct+moPM+LSWquIAE/GM2sAfwAYvZdnGiKFOylb2mKH zjJ9elEdPMpTKIlqQ21MKumD+Joa46ted4X6tsVWn6WpZiWfU6UVIq8DMmIfdjsDue eUObLbdtngNUfR8MM2B/r5jaec33VtG66iuissX4= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=greensocs.com; s=mail; t=1530279032; bh=hy2xioeOgpWDvjVWNTqy9JfacgGmvViw5GG6aQwA0B0=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=7SF37hjKAF7IXVvDtHUL+CAct+moPM+LSWquIAE/GM2sAfwAYvZdnGiKFOylb2mKH zjJ9elEdPMpTKIlqQ21MKumD+Joa46ted4X6tsVWn6WpZiWfU6UVIq8DMmIfdjsDue eUObLbdtngNUfR8MM2B/r5jaec33VtG66iuissX4= From: Luc Michel To: qemu-devel@nongnu.org Date: Fri, 29 Jun 2018 15:29:38 +0200 Message-Id: <20180629132954.24269-5-luc.michel@greensocs.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180629132954.24269-1-luc.michel@greensocs.com> References: <20180629132954.24269-1-luc.michel@greensocs.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 193.104.36.180 Subject: [Qemu-devel] [PATCH v3 04/20] vmstate.h: Provide VMSTATE_UINT16_SUB_ARRAY X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , mark.burton@greensocs.com, saipava@xilinx.com, edgari@xilinx.com, qemu-arm@nongnu.org, Jan Kiszka , Luc Michel Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (found 2 invalid signatures) X-ZohoMail: RDKM_2 RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Provide a VMSTATE_UINT16_SUB_ARRAY macro to save a uint16_t sub-array in a VMState. Signed-off-by: Luc Michel Reviewed-by: Peter Maydell --- include/migration/vmstate.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 42b946ce90..2b501d0466 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -923,6 +923,9 @@ extern const VMStateInfo vmstate_info_qtailq; #define VMSTATE_UINT16_ARRAY(_f, _s, _n) \ VMSTATE_UINT16_ARRAY_V(_f, _s, _n, 0) =20 +#define VMSTATE_UINT16_SUB_ARRAY(_f, _s, _start, _num) \ + VMSTATE_SUB_ARRAY(_f, _s, _start, _num, 0, vmstate_info_uint16, uint16= _t) + #define VMSTATE_UINT16_2DARRAY(_f, _s, _n1, _n2) \ VMSTATE_UINT16_2DARRAY_V(_f, _s, _n1, _n2, 0) =20 --=20 2.17.1