From nobody Tue Nov 4 07:28:10 2025 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; 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 1505150246797791.4380225516545; Mon, 11 Sep 2017 10:17:26 -0700 (PDT) Received: from localhost ([::1]:59282 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drSKr-0003np-8C for importer@patchew.org; Mon, 11 Sep 2017 13:17:25 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1drSGj-0000Dn-5Z for qemu-devel@nongnu.org; Mon, 11 Sep 2017 13:13:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1drSGe-0003mD-LI for qemu-devel@nongnu.org; Mon, 11 Sep 2017 13:13:09 -0400 Received: from 5.mo2.mail-out.ovh.net ([87.98.181.248]:52012) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1drSGe-0003ll-F4 for qemu-devel@nongnu.org; Mon, 11 Sep 2017 13:13:04 -0400 Received: from player770.ha.ovh.net (b6.ovh.net [213.186.33.56]) by mo2.mail-out.ovh.net (Postfix) with ESMTP id 2C8CDAACCD for ; Mon, 11 Sep 2017 19:13:03 +0200 (CEST) Received: from zorba.kaod.org.com (LFbn-1-2231-173.w90-76.abo.wanadoo.fr [90.76.52.173]) (Authenticated sender: clg@kaod.org) by player770.ha.ovh.net (Postfix) with ESMTPSA id EC69F3C0072; Mon, 11 Sep 2017 19:12:55 +0200 (CEST) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: qemu-ppc@nongnu.org, qemu-devel@nongnu.org, David Gibson , Benjamin Herrenschmidt , Alexey Kardashevskiy , Alexander Graf Date: Mon, 11 Sep 2017 19:12:16 +0200 Message-Id: <20170911171235.29331-3-clg@kaod.org> X-Mailer: git-send-email 2.13.5 In-Reply-To: <20170911171235.29331-1-clg@kaod.org> References: <20170911171235.29331-1-clg@kaod.org> MIME-Version: 1.0 X-Ovh-Tracer-Id: 14132014156361665363 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrfeelledrgedtgdduudehucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddm Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 87.98.181.248 Subject: [Qemu-devel] [RFC PATCH v2 02/21] migration: add VMSTATE_STRUCT_VARRAY_UINT32_ALLOC 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: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" This is needed to migrate the state of the internal tables of the XIVE object. Signed-off-by: C=C3=A9dric Le Goater --- include/migration/vmstate.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/migration/vmstate.h b/include/migration/vmstate.h index 85e43da56868..4dfb1bf84b5e 100644 --- a/include/migration/vmstate.h +++ b/include/migration/vmstate.h @@ -560,6 +560,16 @@ extern const VMStateInfo vmstate_info_qtailq; .offset =3D vmstate_offset_pointer(_state, _field, _type), \ } =20 +#define VMSTATE_STRUCT_VARRAY_UINT32_ALLOC(_field, _state, _field_num, _ve= rsion, _vmsd, _type) {\ + .name =3D (stringify(_field)), \ + .version_id =3D (_version), \ + .vmsd =3D &(_vmsd), \ + .num_offset =3D vmstate_offset_value(_state, _field_num, uint32_t), \ + .size =3D sizeof(_type), \ + .flags =3D VMS_STRUCT|VMS_VARRAY_UINT32|VMS_ALLOC|VMS_POINTER, \ + .offset =3D vmstate_offset_pointer(_state, _field, _type), \ +} + #define VMSTATE_STATIC_BUFFER(_field, _state, _version, _test, _start, _si= ze) { \ .name =3D (stringify(_field)), \ .version_id =3D (_version), \ --=20 2.13.5