From nobody Tue Dec 24 04:50:07 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=fail(p=none dis=none) header.from=linaro.org Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1734622893398634.0005369895756; Thu, 19 Dec 2024 07:41:33 -0800 (PST) Received: by lists.libvirt.org (Postfix, from userid 996) id 57CA41644; Thu, 19 Dec 2024 10:41:32 -0500 (EST) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 1C18A149B; Thu, 19 Dec 2024 10:39:52 -0500 (EST) Received: by lists.libvirt.org (Postfix, from userid 996) id 6359716E0; Thu, 19 Dec 2024 10:39:47 -0500 (EST) Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id C5D051677 for ; Thu, 19 Dec 2024 10:39:35 -0500 (EST) Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-436249df846so6846535e9.3 for ; Thu, 19 Dec 2024 07:39:35 -0800 (PST) Received: from localhost.localdomain ([78.196.4.158]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38a1c8474a9sm1805633f8f.52.2024.12.19.07.39.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 19 Dec 2024 07:39:34 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.7 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1734622774; x=1735227574; darn=lists.libvirt.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RMGv7qvi3m/JTiz7jQ63fQU4SttU7iapPs3aSHWSfWE=; b=wDQqzm9qVU3OrB1eofVK5VAqLUw0WorkJqTjDNuBp2it8P/Pm/fqlZ3HSNcS3Npv6s jRWJusCJ0rCaAtQIGbrBW1VOQhsf73CKTiOEsOsD7LRlJcp++WPgyvmIVFE/f9tOb6MH YA5mBnKaPfuObAoFxWu2/iZLgH9GTXRMMKqq8kxJwFGVrmHjAe1MAiMgipR74hxnJn+K 2dGNf3+7KXPcfoQNZ9E/Gmnp0iE7USexdDKrVp3B2A/eeolMEFn2u1UzFaWVUW/XSnxY hbNZFmvusEGLlMd7sbrFaIyHsuqOnqXu4R7Y4SnRIWeYpOfSEDxEl4wYD6iNW7aGgFBw n14A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734622774; x=1735227574; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RMGv7qvi3m/JTiz7jQ63fQU4SttU7iapPs3aSHWSfWE=; b=vYjr2m+JP0YIvAK3h4wy+iOk+Col3D6758BRSNOOlb2fCtntnD36NqEmlahu2Czzvb dByQu/xMkdarUMD4njEvVoaNYQ++LgBzgGUw6qB34eKm0vz4f47Qh93WW7ecOktYWBUA P6MdD4Uy8r68ykz4vPgMTC5daQCMUKW/8dtI4cgnM2QbkooSPuLqEDtsiqXEFTLtjGpA SpNl1X62ElKHe0VFx1CZ+Y/woHhk18QCitOA1thFQFtwPzx/oZcEkFtyQlq8ztfdHjxm HplR2vdbPItrrPQ0S6qa8FFwXlSwD5X6yheZIdTm2O64CmTf4QyJTO2DhrXABhf+JQa+ OBTQ== X-Forwarded-Encrypted: i=1; AJvYcCWocjJ4FSa9djIWlltnXltU0KRLsNbEzqiSoFS92qqApdPXoI4nUUBctS8xy5g6unbo9D+bCg==@lists.libvirt.org X-Gm-Message-State: AOJu0Yw1fpilDIO4qwcl5vvRCza1vjyK8Xup1ivZXZLhkQjsRw814LnT 8/LMn4RuDFx2kQxt/7kolO8dKO6Ybc3CGF2b2ZgnyD2ejFdvOwqVKsK49TyUZEQ= X-Gm-Gg: ASbGncu8TvrFe+TFgTsKRmP9WgY+8FEJUNuxRCrQTcmNZvS98KV4nntqf0fygqmvHnO lP8zjzZZglC93E7ZPk1uknexIBSa9iRnZTTXU6U/e9NsYaFsC5EyK7CRpJQ7Bwe6E/UsMiAqYOO EAV4pq8MDUO9HCXsatGH7088393WFZ80UAeNuJzMSL+MZIfnYRlOUQoHhPkZpKmSMvHhy/Q/qm5 pApGFLCp0mA/G3Q2Y8WS74rzT3IdxKsysN9gmXYrDCOJ+HDly+4kMY2LoEJTDOrPW7SVfLHL97T g2zH X-Google-Smtp-Source: AGHT+IGh0eZIZPaxTiz7UGfEy8XHE6o5ObgLI9iwFFlqzABUoKuS/Dmnu9cBOUOHJL67G2wHfkMXog== X-Received: by 2002:a05:600c:4fd3:b0:436:346a:fa9b with SMTP id 5b1f17b1804b1-4365c7c9707mr27726955e9.20.1734622774615; Thu, 19 Dec 2024 07:39:34 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [RFC PATCH 06/10] hw/misc/vmcoreinfo: Move vmstate_vmcoreinfo[] around Date: Thu, 19 Dec 2024 16:38:53 +0100 Message-ID: <20241219153857.57450-7-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241219153857.57450-1-philmd@linaro.org> References: <20241219153857.57450-1-philmd@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-ID-Hash: PI6N7PTKKKE5C5NRJDFF5BUWJ42IBO6E X-Message-ID-Hash: PI6N7PTKKKE5C5NRJDFF5BUWJ42IBO6E X-MailFrom: philmd@linaro.org X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0 CC: Ani Sinha , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , devel@lists.libvirt.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1734622895260116600 Content-Type: text/plain; charset="utf-8" In order to simplify the next commit, move vmstate_vmcoreinfo[] around. Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/misc/vmcoreinfo.c | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/hw/misc/vmcoreinfo.c b/hw/misc/vmcoreinfo.c index 093bede655e..55f9d437a94 100644 --- a/hw/misc/vmcoreinfo.c +++ b/hw/misc/vmcoreinfo.c @@ -18,6 +18,20 @@ #include "migration/vmstate.h" #include "hw/misc/vmcoreinfo.h" =20 +static const VMStateDescription vmstate_vmcoreinfo =3D { + .name =3D "vmcoreinfo", + .version_id =3D 1, + .minimum_version_id =3D 1, + .fields =3D (const VMStateField[]) { + VMSTATE_BOOL(has_vmcoreinfo, VMCoreInfoState), + VMSTATE_UINT16(vmcoreinfo.host_format, VMCoreInfoState), + VMSTATE_UINT16(vmcoreinfo.guest_format, VMCoreInfoState), + VMSTATE_UINT32(vmcoreinfo.size, VMCoreInfoState), + VMSTATE_UINT64(vmcoreinfo.paddr, VMCoreInfoState), + VMSTATE_END_OF_LIST() + }, +}; + static void fw_cfg_vmci_write(void *opaque, off_t offset, size_t len) { VMCoreInfoState *s =3D opaque; @@ -70,20 +84,6 @@ static void vmcoreinfo_realize(DeviceState *dev, Error *= *errp) vmcoreinfo_state =3D s; } =20 -static const VMStateDescription vmstate_vmcoreinfo =3D { - .name =3D "vmcoreinfo", - .version_id =3D 1, - .minimum_version_id =3D 1, - .fields =3D (const VMStateField[]) { - VMSTATE_BOOL(has_vmcoreinfo, VMCoreInfoState), - VMSTATE_UINT16(vmcoreinfo.host_format, VMCoreInfoState), - VMSTATE_UINT16(vmcoreinfo.guest_format, VMCoreInfoState), - VMSTATE_UINT32(vmcoreinfo.size, VMCoreInfoState), - VMSTATE_UINT64(vmcoreinfo.paddr, VMCoreInfoState), - VMSTATE_END_OF_LIST() - }, -}; - static void vmcoreinfo_device_class_init(ObjectClass *klass, void *data) { DeviceClass *dc =3D DEVICE_CLASS(klass); --=20 2.47.1