From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021710; cv=none; d=zohomail.com; s=zohoarc; b=ISd/lSUhkImNGegyVsw58qqmkdpWoKCW+31T1jA+Ly2eqD2P6JHhRvC650Xr6em6437nii7EEO2AcXReAyh5gAx1NIe6Wn2vmsYUfU3E+rGv5C75ZU3A4h92rHNXZv1bWfiLlJj5/MhnJQ5QPVQ8PLZ9yIirtamYpVA43tEP6qg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021710; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=7/EXswh2qfrdBBY0CFrHqUy38gNfwgqUM1b42qR3v+s=; b=KTq/H9K1lGs+9G7JJE4vC6RIhCHNnog5wq8vg45NK2DRE9Qq3pVjV0RnoC0OI2wQKpLXjIi28rB5lYkOuvKPKoxXYiugM7XP0tdKPus0nVPi7vI0O92vYSEcnBd5GCxf3ZPJGhOgVeEkpe/mM6EpRzv8TDqwZu5v4sz9FkKdNFw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021710335826.4534280668305; Wed, 14 Oct 2026 16:48:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g0-0006wc-8e; Wed, 14 Oct 2026 19:46:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fw-0006vr-Qz for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:25 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fu-0006Q9-D8 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:23 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EHSDgT843758 for ; Wed, 14 Oct 2026 23:46:21 GMT Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hae4ws6n1-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:21 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-3580c07911eso12288373eec.0 for ; Wed, 14 Oct 2026 16:46:21 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=7/EXswh2qfr dBBY0CFrHqUy38gNfwgqUM1b42qR3v+s=; b=D90xQ/UI8i1ZVvjWiCqBVKoxkh1 EgFSkAchEaEGW0+/ymYjD7PDb/nVgz+45gdauwEU/zEuPamII5F+jTII+X4YERym fiiMhvAdC2IX3SmZfuLaFQOPWOgeBS6eY0/l8reI6surSrY8JSTCaIUDDMxKjtqU qC3JcFHNoijzF6EUEx+54VfJKwSvHm8Ee/InE13A0CUYGk4ErLDkslszFKVbDYgi 7HuNXRz2tdX1hBvxO40MATW0EQuDS+k3DkGg/0HEthY/9Y6M6zzHCAURzI8wQlZW cVoXczMLtqvt8HjDrjvwh+E9AsGIWqmpqTPTlGtv2mr4Jh8+LH7zTFMvTfw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021580; x=1792626380; darn=nongnu.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:content-type; bh=7/EXswh2qfrdBBY0CFrHqUy38gNfwgqUM1b42qR3v+s=; b=hU6evbB/yWoe4ipYw4LXpjQo/QcTNmcA6rkwtxHorUSXNruLbfNkqqS9YKo8fEkJeC 045vHxfGJo1o8/NtU4qcBOX9nW7hy3Us3NrHJutvbipsDEDiGjNuNI94uSftbFmkLTy5 l8Xyw8CtxWe9Wqqm/13PC6K+UPHj/kOtqOpjCkWsovWLGphqmEqVHvpoGMg1JzoblNOS F7GmNxhw+WFEltyu2S4ilxhEVPVyv7lHLK5kxc6DYxneN2u+rUoSnbYrWBQUQ67BJUoq 25PbBGqaWuT/6b7nBed6sQAmtLNaiDIVGq3rYPOxjvEdBgnjvdi41oKxnAw9i4L9Rsmj HYyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021580; x=1792626380; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=7/EXswh2qfrdBBY0CFrHqUy38gNfwgqUM1b42qR3v+s=; b=HAcNIRtf8YfuzSKwBt1O9r+dqkTMHf1IcEBUOWXstVR9DqGhK0lffCzaGPRQ+BKN5N MtVoMQ8oQxuU7ybKIyUJwqVhTpNUc1YhqpvouA7YJL6SFCBdhaxyTnwNXQJi79OODFFP YTe3Wq5YoihGZHPeixq6AgRvyTolXU3Z1NqdYQJAUSGPGrFyK4Wt2Z+gqEsPejcLarWZ rMj0NG5TWKZ+vQ47V6KOvO2dZXn7pJ7KU2VG5eliSSncc8NBfp/Vgsd49muAA1ub5DbU PhKCCKLAQgNqKuP8usM+p7p/KaFiu70+AjhtJ2EksucKJfsBbkaLZmZDn7etcxOXZGa+ yxbA== X-Gm-Message-State: AFq9FYIQRtwqC8pNY7EyJVSsUCbnD5945bZsGTTMFp2XfYSlbpVXDSX1 Ukb2Omk6/zM4d1Qe61KUiUAxorzeRvBVT/NlGygozEqNBTWGZ6CNMYMMkqx+eU7z8WR15uq5Ijh x+AyXvKUwCaZy1+1QoGdHv6n200YBbP10RUI8OxKjOEiStlJMnJEnxo5/pzdQUXmbWA== X-Gm-Gg: AYBFou11jsh/VvVk1++qssAoK9VlC/hXrX1y3hbDcz40S+jlGKn+ag5pNP96Lu2mm5+ KxAirQwXeMqLKuCo8CJewy+pbPT4xMsPNuQDGPzh+0AxayDNjuK36RER7WgC87ZD8USRIrhVX3C j7H7pOrTp7XwMSDIdkQVdKJQoK2lTi/0WjML/ZFJWVaR4GzrixnwjgzYjtclaVqHtiSV8bThVk+ bfmZErYl2Y6pM9+/jVFgb/7bweTzLw+QIYhnCGmKO0XRMIBj96GgeIO3NacOBQ45GVlnWAVjR8r Ijtye8eBR8T/jtsvpQfmsx7qBX+fv0IFttupiArmigiOEPIe/f4dR2drkfvKHI8+mH7cOHisoWz ULJqlJ0A56qpfpHLAxc9aBs/vsJLPLeC46dYjMmhKevM1RcOGO1s2TW21AkwS X-Received: by 2002:a05:7301:2003:b0:35d:9516:eb26 with SMTP id 5a478bee46e88-35d95266129mr5020220eec.13.1792021579897; Wed, 14 Oct 2026 16:46:19 -0700 (PDT) X-Received: by 2002:a05:7301:2003:b0:35d:9516:eb26 with SMTP id 5a478bee46e88-35d95266129mr5020181eec.13.1792021579042; Wed, 14 Oct 2026 16:46:19 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 01/19] hw/core/cpu: declare dump ops Date: Wed, 14 Oct 2026 23:45:47 +0000 Message-ID: <20261014234605.209084-2-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX6BLVsX+PqIkK tyPwVK/C6amIMzY8zsr3GTl8fLTJaGsaf99nqnkDkTkz3newo87vKJqV2lAevblhbtf4WzANjsm UQHlLTZh6T2Cx7eNqRzUGejCAHBs7GM= X-Proofpoint-ORIG-GUID: CM9Ror87Yn81aTJFDweAilS16Vl8uXgZ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX4I1TyLUVOai4 m4biark8NCxUOVF+f/tKA8qlFn+21KJNL4sdbUtY29R3J9JKsne8Q9wXd0dzmaIglXm+b3lJ8BE B2dnS0zstmWoVyPA4ARW1sQrdIauq0NNL+txDihjmyBskYthJ9wOulup1sY+SiamDm3Ffwldf0A 200t1F6Xi941UPJEEwwEL/iZicNvsCE+HPPOQwHLFCwTFfKnrnpfzf93kgnJkrVCZSwnvx+Osno jMz1UAQZj+sYEH2AMZDrbquQKh1V+sr2FSGZnThCW5rwNBRYmRN8GiQDOvMj2ffhcOcWsAbxdth tEQ980UnOjNzTFgYzrMRbWa4kWhre90J0NFsMl16tYlsvi1nUYxXhzdg2QvwhzY8LbttGKr2lu5 SCAo6e0W3hHPnvQGfda/8Y+mqsIuLiGuukqBEgiMVy+M/fxlr+LQZJUm2ypFH81gaVCCapapHpl Ajo+mOek00wxHgXLVnA== X-Authority-Analysis: v=2.4 cv=E8BYNqdl c=1 sm=1 tr=0 ts=6ad0144d cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=Bx8dwOJmyrPxMmO5TvEA:9 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-GUID: CM9Ror87Yn81aTJFDweAilS16Vl8uXgZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 suspectscore=0 malwarescore=0 spamscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021710993158500 Content-Type: text/plain; charset="utf-8" This allows a specific cpu to declare its implementation of the operations needed by dump, starting with get_dump_info. Signed-off-by: Pierrick Bouvier --- include/hw/core/cpu.h | 6 ++++++ include/hw/core/dump-cpu-ops.h | 24 ++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 include/hw/core/dump-cpu-ops.h diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 456154df6f6..eb8747b9bcf 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -98,6 +98,9 @@ struct AccelCPUClass; /* see sysemu-cpu-ops.h */ struct SysemuCPUOps; =20 +/* see dump-cpu-ops.h */ +struct DumpCPUOps; + /* see semihosting/common-semi.h */ struct SemihostingCPUOps; =20 @@ -186,6 +189,9 @@ struct CPUClass { /* when system emulation is not available, this pointer is NULL */ const struct SysemuCPUOps *sysemu_ops; =20 + /* when target does not implement dump ops, this pointer is NULL */ + const struct DumpCPUOps *dump_ops; + #ifdef CONFIG_TCG /* when TCG is not available, this pointer is NULL */ const TCGCPUOps *tcg_ops; diff --git a/include/hw/core/dump-cpu-ops.h b/include/hw/core/dump-cpu-ops.h new file mode 100644 index 00000000000..5e8a89cbbea --- /dev/null +++ b/include/hw/core/dump-cpu-ops.h @@ -0,0 +1,24 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ +/* + * CPU operations specific to dump + */ + +#ifndef DUMP_CPU_OPS_H +#define DUMP_CPU_OPS_H + +#include "hw/core/cpu.h" +#include "system/dump-arch.h" + +/* + * struct DumpCPUOps: Dump operations specific to a CPU class + */ +typedef struct DumpCPUOps { + /** + * @get_dump_info: fills @info with the endianness, class and architec= ture. + * Returns 0 on success, or -1 if the guest memory can't be dumped. + */ + int (*get_dump_info)(const CPUState *cs, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_block= s); +} DumpCPUOps; + +#endif /* DUMP_CPU_OPS_H */ --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021629; cv=none; d=zohomail.com; s=zohoarc; b=OuzbA1p7fpVXjGv5ENoAh3x1E3ZdBXXnY0VbZU78Nr3SweEjQYwPottcnGi8SbZTkXzU7/85Ub0fYzMj7zd8EXobOATCGEWDEvfyNdk9Ri7TFi4iy/UjDDnGX57L46THQLSAxImo1G6ubQeuxmfUHx8kOFzoxvII7eYDdVczl1o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021629; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=QEJsJNpBp2xy5PjCPdc7tKyPZeSy1OMZSFx4UQcAYTU=; b=U+mKRDvOlBG5sPrdwxfg76IEoOSXqy/Q57O4tY1Nk8EiXSMyybI88El/4U3A/YzTmBRzhrHxTjGdtFqAUfswhItLAugrmHREuo5Awoaxqww9nLwfJ2s+KHOG+i8Wr1eFv/MS7yvSCp/O2LzQMZWIjavEP9tMMsFsnhOyvWSLOwI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179202162960568.93509058984569; Wed, 14 Oct 2026 16:47:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g3-0006y3-Ok; Wed, 14 Oct 2026 19:46:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fy-0006w7-LW for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:26 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fv-0006QD-5s for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:25 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ELrKfN301282 for ; Wed, 14 Oct 2026 23:46:22 GMT Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha4623y24-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:22 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-35c902e0da2so1902148eec.1 for ; Wed, 14 Oct 2026 16:46:22 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=QEJsJNpBp2x y5PjCPdc7tKyPZeSy1OMZSFx4UQcAYTU=; b=fTsVHOqp++zfkyEXWsi78+gLum6 qskAkPUktfVr2eU45VgRkFg6Uj5WdkpufMKIoqfx/FEokiwAgMmrhWKkNIbyyX5t xmr9Eonzl7uMA0/DqjYaF5fI7HOmB+FYg9VfmGjTEquxOWi5suLaD34xX6LErIvr kDmGY6svgyLVEqn7AQqPEspExYx6lTAgG52PcCN+x0rIE8HVM/RCq6D0g3JdvM75 2kpDU6ctQjJ+VCyeEaScMQ9AewK9yivgLlEuttCpeccPUQn9hSqQKkF4TjeSQu1W Srmm+ixSfhbcUI8jHLqutKaAoLGWGeOqmpzBrKHDqpbPOUzhcpK+0sOqCRw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021581; x=1792626381; darn=nongnu.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:content-type; bh=QEJsJNpBp2xy5PjCPdc7tKyPZeSy1OMZSFx4UQcAYTU=; b=XSsFqWMtJl5j8no3iD1a/k2+x4OUEwoy5abRdPN9x3lzlQFOrDh10tHnjJqkq0Jj5d xV71JTmKYx9b1QrJuRfR6nGOrz8A2y/TQvQAeVhWglCiCwb5ti3K9afuxDu1NFxvAAyK 29iz4XIs68iSqY+FUR1L8UQ+w1MVeUMvkBr5RD5schq41h3vE0/KIO4t29qjpjdPZdQ6 W/3xxfuurkpezlnTQxofwg2zpQCxmEpX0Wdr8KWjy7ZqCT4k5rmpq6YxThWD0OOGoJFz he4Val6gTzFR7Yb8S/SbNuJFEcxfX9Na6YfuYdT+OAhMqxvbRH0LJ+tcrkW5Xm65LqJW 1KPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021581; x=1792626381; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=QEJsJNpBp2xy5PjCPdc7tKyPZeSy1OMZSFx4UQcAYTU=; b=x23OQUNJZwHOtJsLzxhOcNRSjerfYEm5um5rUef3o0kPi6KZ93OURlJqe92MNhMNbQ NZ7bTtMK4Klwc0JUya9aiMi/3jySEDdUurzDCz6QkhBNoxAZzuXUiuvuBugDLkNB7cHh QuYPwnXzcdydYFZCT5+Qq0LC4Mb5AnOpIZq1V4X4b2rasFLa8fTym/w2xbxee7R7kOR1 g6lbrsXT4qa/jnKs9DP5Jv8S3NuSCALpyDGpP8V1ZeLVRQZTnkuMU1uWpVHHlWNW5fng n4jwCTQFYq8gon94VwAQZIKxnhGjdvZFA/vKnz4vh+KOMyGTnmol1eYyTvd107+ApnO/ d+oQ== X-Gm-Message-State: AFq9FYJeg10LBIGTFiXf9Egm9YTq7vGlAWY3DBymDXOi0nS0luIMfqKa qS71sc1LPZUiwEA+TtjBSy4/DbyKZQbM5IdrpH5NHuRzPiWf1NHXlkjKs1OMHDVaJBTIb9KN6Ou QVGJ46bKzVMBs7hRMFhqT2ecFheF06dDy+xs6wxV61DYIPkibBhewFaFAky2mxVmyaA== X-Gm-Gg: AYBFou1bvc7ldivAh5z56O1Jy4ZMFyKCa3xfEjZPXoC7GTYeTuCLkPc8DiCT6Puycsl PgGjyhM+/EdssqcqPgNjGHkqjZfSC9TSzeJdzioT1mdVF2GTkcw8TF9IF8llsN+w4WW5E71Cl8U XzCxo7zUUNok3gvAIPzpWv7CZFQilUEazFN4BulYmOZSLEcJP/GuPZRDupF/6nDQEpfUaE2uNzQ yv2gnC5YBd2BanDBNgF2tHISLixiT3aceAECBW6FoLtsOct/TZXmn5+/fapvz3HPMNC+xvAF/y0 J7hrT0Jxw2obwiOB5EdYFhtab4yhBYOL/vEM7q/v7EEzDEsdwm3dAsxgZMoOEMsmMmHjAPupbGA Y8eznByhG4Ry+K7RYKkCFE9VHsyAn+/3MUslHBfyyRBAo93XwY2N6kXY2qyK3 X-Received: by 2002:a05:701b:2056:b0:143:1bb1:3305 with SMTP id a92af1059eb24-16a14bc11e3mr21708777c88.22.1792021581155; Wed, 14 Oct 2026 16:46:21 -0700 (PDT) X-Received: by 2002:a05:701b:2056:b0:143:1bb1:3305 with SMTP id a92af1059eb24-16a14bc11e3mr21708748c88.22.1792021580533; Wed, 14 Oct 2026 16:46:20 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 02/19] target/arm: implement get_dump_info dump op Date: Wed, 14 Oct 2026 23:45:48 +0000 Message-ID: <20261014234605.209084-3-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: Sh3eaAJH89rfRZpmXiQKg0sGraD0ynaQ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX6vTpKP/lENGh ILD9FaVP1kAedrsACf618YflVDfxCSlKk+mXCLRDLUFuj9gYmmO8lU8QclvTY/BTWN9QHncFt79 MZIzxxYRpko3mw+IbDkkPranBQzY9JufNo5Az6oEAc6HVTEmFhuDilfO1rJNtWWhGPzSbl2zGci hIz2VahPkLoCQ2mZPVPSLsTxXav8N7eFfKL4JeyYj74THAlw7WcLRTSe4FYJSMybEXYhSrEsv5Q qvqPFrRH8E687Y7B6SK2iZySDR4nRQovag7Y4nZ9fO8MnvinOi14qrzy4XQHotaCLrX2wffEeQd 3if76gdHMpahlMFmdjDIAtazeQAbT6LHw2S00r7gs2rPobHjrTBJEWn4JQAOmsDzGHyjUfPT9Ou GFGFw4V/eZ9c0/361fUB27BTHzwCSsOdEbGT5Zden15GRt/X4BZpp03TXQ9glud01bPoTPu0AcE ByHwedVqkaUNW/5Aavg== X-Authority-Analysis: v=2.4 cv=ErZHPicA c=1 sm=1 tr=0 ts=6ad0144e cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=GlaRKuLKSeBc1ljDWskA:9 a=PxkB5W3o20Ba91AHUih5:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX5nlUCrm3UoME acpUluDQ8wDLXStr6lcPnTpJvKQsxaQFO+xX2UKc0Fg7gAjnJXiLVzoxryBR14Mzp9GLLgo/gKe tyK4nZMu1S7MGNpjJ+cM2oBLq44+ZhQ= X-Proofpoint-GUID: Sh3eaAJH89rfRZpmXiQKg0sGraD0ynaQ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 bulkscore=0 impostorscore=0 adultscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021631731158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier --- target/arm/arch_dump.c | 30 +++++++++++++++++++----------- target/arm/cpu.c | 1 + target/arm/internals.h | 1 + 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 1dd79849c13..dcb0ccc6cc6 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -24,6 +24,7 @@ #include "system/dump.h" #include "cpu-features.h" #include "internals.h" +#include "hw/core/dump-cpu-ops.h" =20 /* struct user_pt_regs from arch/arm64/include/uapi/asm/ptrace.h */ struct aarch64_user_regs { @@ -385,21 +386,14 @@ int arm_cpu_write_elf32_note(WriteCoreDumpFunction f,= CPUState *cs, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) +static int arm_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) { - ARMCPU *cpu; - CPUARMState *env; + const ARMCPU *cpu =3D ARM_CPU(cs); + const CPUARMState *env =3D &cpu->env; GuestPhysBlock *block; hwaddr lowest_addr =3D ULLONG_MAX; =20 - if (first_cpu =3D=3D NULL) { - return -1; - } - - cpu =3D ARM_CPU(first_cpu); - env =3D &cpu->env; - /* Take a best guess at the phys_base. If we get it wrong then crash * will need '--machdep phys_offset=3D' added to its comm= and * line, which isn't any worse than assuming we can use zero, but being @@ -439,6 +433,20 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +const DumpCPUOps arm_dump_ops =3D { + .get_dump_info =3D arm_get_dump_info, +}; + +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + return arm_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { ARMCPU *cpu =3D ARM_CPU(first_cpu); diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 81ec1ce21c6..9b84691c475 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2655,6 +2655,7 @@ static void arm_cpu_class_init(ObjectClass *oc, const= void *data) #ifndef CONFIG_USER_ONLY cc->max_as =3D ARMASIdx_MAX; cc->sysemu_ops =3D &arm_sysemu_ops; + cc->dump_ops =3D &arm_dump_ops; #endif cc->gdb_arch_name =3D arm_gdb_arch_name; cc->gdb_get_core_xml_file =3D arm_gdb_get_core_xml_file; diff --git a/target/arm/internals.h b/target/arm/internals.h index e849e357cfe..02375704937 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -438,6 +438,7 @@ int arm_cpu_mmu_index(CPUState *cs, bool ifetch); #endif /* CONFIG_TCG */ =20 extern const struct SemihostingCPUOps arm_semihosting_ops; +extern const struct DumpCPUOps arm_dump_ops; =20 typedef enum ARMFPRounding { FPROUNDING_TIEEVEN, --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021710; cv=none; d=zohomail.com; s=zohoarc; b=LO0DAS/CteIhLeZTkWKERLYm4RaQFqIELroNE8ue6hPQn75byPdHNYLWtuXyph5nw1eGQPh4fV9vRIWoIMF67a06jHJSDPCD7kgxV6YRdIEx0Xwqg9pGYiVkJXLe2RcQ3M4NmwfTK6fwv7WbLBfRbDx1ZrHHPLyubZr/QVmAFp4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021710; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=FkmLZ0/PgKfU1+3kAqC65R2W35DO2t+OPelmPIX00AI=; b=WNNsl36qaLsqhMuu3JuXm7RMrW2TG3VNGxV1QCZCySQn/3+7Wy1vLBbC4CqBvYZMsYC3aNe1437Q2SkjJiS1NsJ656VlPtaw+YWpUJ6ilYNp1EVjGqFiuQmd5AkdceTj/wcVR+iv2dpvIk12KIFtY2TVu5w+CKaiuNBIXX42cYw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021710725787.9576790279144; Wed, 14 Oct 2026 16:48:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g0-0006wp-TX; Wed, 14 Oct 2026 19:46:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fy-0006wA-M3 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:26 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fw-0006QI-Gr for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:26 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EM1MGq301075 for ; Wed, 14 Oct 2026 23:46:23 GMT Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha4623y25-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:23 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-357e2bc3b1bso7483533eec.0 for ; Wed, 14 Oct 2026 16:46:23 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=FkmLZ0/PgKf U1+3kAqC65R2W35DO2t+OPelmPIX00AI=; b=Q91b7J3y/LrBwysWhip0gIgVK+v BFdKaoLtBWfgpb3B8BvbGsnL6xlLgDAbGN4qhQQamdIZ+aEJDzPTqHiYiUWWZVjc iwIv+R5SNO+QiebwH271yNVw8FiE1mHnEpKgjoIAtoSjYiG4zs3B4+D3UIUxX36R gXJRLYWL7QhY1xyPg/mEZwIEpH1Er97Qd+QYryDMRV9ycpSXG7CQhKGjzAlMjEWF sZowTJyuzWEyADuEMeRHeBABxqJbsWM9SyGZTtjWEmTSVywldPwyL2lfA3wIS1UK qQ2K3UyWIpYjsqlOLZASf3vF5rVpkJufpMnuzMhUPDcfB9EMT9Aw6TE6slg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021582; x=1792626382; darn=nongnu.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:content-type; bh=FkmLZ0/PgKfU1+3kAqC65R2W35DO2t+OPelmPIX00AI=; b=PJX5FQ6BApfvsQZz50vVccjRM9DwJuGL+Lxwq7sCU9QEAls3r5ZvTZKFV3NDj/c7v3 7b1sqN/g/76ir7mSa8mcu+sbOa2HqWjllVIerBLRxEowHG5uZNedKvaoB2IXSzl7dvsv obLwpmtYezss7hl4H5UmNSH4h77fgThAP8c11DUve9gEyiybWkt+ICeLiGOjULRqzKDl VptUrTM0E9tTTBce6qsFFs3V4skMLn5KEGjVMre5ood5RUFmUHvGkb/Ig+/i9+dpXIRX BBUzC8PRj4g7XDfJpCAOkDGeIbSvWb6QDuWFK5L+eOL0FP/spwLhsngOXHT8TJ9h1/ue KjRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021582; x=1792626382; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=FkmLZ0/PgKfU1+3kAqC65R2W35DO2t+OPelmPIX00AI=; b=X1u5yld3azQ9r99YFx66eOAbS1Ugj8GoGa6WY/KfpQZZhZvCNGfShNRdQhmHeiPtSp X/VE68NBc7kVCfydUJSgaVKlK214wgKFTeFaPjZCCARtz/C8Ku4qtihmds7DV3PdT6QV kRmO8yC7Eqw03RZe1lUTFHgBIrVKZiNf0QXEoRAETl6jxE3tGVf1SwchiAo9HHPWMurB bFYv76d0Ot7XT8gag3rEMIj3JmoqV8Ho1qtZe8AxcoI/hCOC/EkIGrti7VlR6K5QfpM9 ilMDEvlyps19H3p1+qFw68Nw2Yr8MW/uc76ShCvjQ/7jaAm4KDljYlucM4TbyfD3GlFo QDAQ== X-Gm-Message-State: AFq9FYJ61zs8+mD6iPxV/Z7ST6qxQRB/byBL9PO8xFTJZInrlbAY/4wW z546a3HOJ8Omfa4RQkulGU/a5cAvKXhhywSqrB43JSnRacI22D9D3nS5lDMxriGJv/D+ZS+kdZU 3FBU35oXjva/yoRNq9k1KLH0NvoorsDEUg4MIMNfSYJ5kd1gilxrxvugB5N+qAkKllQ== X-Gm-Gg: AYBFou07kpWk/0ZhrMY9LATzV3pnQ8qWmQ1OPTDPVI26HvvDJX1PiVH2apW45WD9z8t 47cUCPmB4ew/vQ4qYlDsISYeTs/sXHblieJYyQTQlvpXVEil7oiS8sJNuzWVrD0ui4GVM5w90C6 0zZH35cxaNGGyIv+MhY0trC2eBYf+A6DSAFuuPqLbS2CXEJvQ2lXIDl+qznnrbfY+niDLDTpzHE h10OTJIuMWduCnREjwLd2Dvbj8botVHY36qed6JiMYPuxgi9fn2JHdj4qknTKDqm9fN/hyJ9zJT Rjb0DMNdSK06MLKeieTRGERh6aeK3tvmtzOlMUiGnPIESY0uVUX+RbC9vnPz0S40svjailEphIV O+0MA/tZe36R71Zvos1NX4WOp1c5jODyo90YwkN1soTh9VWbhNrtitreKnEFx X-Received: by 2002:a05:7300:f582:b0:34c:5831:8a19 with SMTP id 5a478bee46e88-3537e0493a0mr22737724eec.40.1792021581999; Wed, 14 Oct 2026 16:46:21 -0700 (PDT) X-Received: by 2002:a05:7300:f582:b0:34c:5831:8a19 with SMTP id 5a478bee46e88-3537e0493a0mr22737700eec.40.1792021581451; Wed, 14 Oct 2026 16:46:21 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 03/19] target/i386: implement get_dump_info dump op Date: Wed, 14 Oct 2026 23:45:49 +0000 Message-ID: <20261014234605.209084-4-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: vG5SKX878eBh4slz0zukLRu7msswta3M X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXzmccbWa+Jh4I XWITv5b+7UkVWFZwZoJHCKKnI7Jqe+IwH0IWpr4rk6U33Nj04v3iXxVir76LcDnXWSR0mnAoM0e oGnY2BCgpfOaq52RLTFFGUG2R+lzvTzLR5LU3sVmElzCoGiS3c4heSA4nh7MfemD+IPJev/Mr02 4sE6ieGEHQw/Qlivzaa8JpFD0uSxXSWFmU4VHkSSRyNCk8JGn0C9MplTVvsr1VLV+r1cnV1fUvs fETkMpVw08Ry2REuaBMLWz2Au9+sYcSSxCa6tve8zCj97Uud2tn64Ry7W4dVWx/C5l93ITKHQfv wiGWIP3uXHjaO5EdmG0EczU/Gcxz8S8M5P/st0x6fbfiVLX9UWlUUr0Ga1ExM+MmVi2EQ6zAXfP evKaZ+rv7FO7z1tKqobCklFfAJekdbjsB1b4aceuSJl/+cODOp1sh7nFJGcdkXMrRUH97G1hCQ0 9E063nELylE88kEAWTA== X-Authority-Analysis: v=2.4 cv=ErZHPicA c=1 sm=1 tr=0 ts=6ad0144f cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=v1y5J0KreYPJ0FnAcikA:9 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX4b3ZRliPFERo o8u9cn/5yjkC1+gDdyKIF+MDYCeoHn+4xXVcocfKwyx04KnAnOel320KDXel344fH8/QRTrgLk7 i3Ob+qQqrZ5TVuEjXxyrkvCmqH9QUIY= X-Proofpoint-GUID: vG5SKX878eBh4slz0zukLRu7msswta3M X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 bulkscore=0 impostorscore=0 adultscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021711005158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier --- target/i386/arch_dump.c | 24 ++++++++++++++++++++---- target/i386/cpu-internal.h | 2 ++ target/i386/cpu.c | 1 + 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index 16e47c4747d..a8e74e6b24f 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -16,6 +16,8 @@ #include "system/dump.h" #include "elf.h" #include "system/memory_mapping.h" +#include "cpu-internal.h" +#include "hw/core/dump-cpu-ops.h" =20 #define ELF_NOTE_SIZE(hdr_size, name_size, desc_size) \ ((DIV_ROUND_UP((hdr_size), 4) \ @@ -394,15 +396,15 @@ int x86_cpu_write_elf32_qemunote(WriteCoreDumpFunctio= n f, CPUState *cs, return cpu_write_qemu_note(f, &cpu->env, s, 0); } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) +static int x86_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) { bool lma =3D false; GuestPhysBlock *block; =20 #ifdef TARGET_X86_64 - X86CPU *first_x86_cpu =3D X86_CPU(first_cpu); - lma =3D first_cpu && (first_x86_cpu->env.hflags & HF_LMA_MASK); + const X86CPU *cpu =3D X86_CPU(cs); + lma =3D !!(cpu->env.hflags & HF_LMA_MASK); #endif =20 if (lma) { @@ -429,6 +431,20 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +const DumpCPUOps i386_dump_ops =3D { + .get_dump_info =3D x86_get_dump_info, +}; + +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + return x86_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 5; /* "CORE" or "QEMU" */ diff --git a/target/i386/cpu-internal.h b/target/i386/cpu-internal.h index 37c61a1bc3d..f2fc95b295b 100644 --- a/target/i386/cpu-internal.h +++ b/target/i386/cpu-internal.h @@ -65,6 +65,8 @@ void x86_cpu_get_crash_info_qom(Object *obj, Visitor *v, void x86_cpu_apic_create(X86CPU *cpu, Error **errp); void x86_cpu_apic_realize(X86CPU *cpu, Error **errp); void x86_cpu_machine_reset_cb(void *opaque); + +extern const struct DumpCPUOps i386_dump_ops; #endif /* !CONFIG_USER_ONLY */ =20 #endif /* I386_CPU_INTERNAL_H */ diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 74eebeabd7a..21216c32125 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -10957,6 +10957,7 @@ static void x86_cpu_common_class_init(ObjectClass *= oc, const void *data) #ifndef CONFIG_USER_ONLY cc->max_as =3D X86ASIdx_MAX; cc->sysemu_ops =3D &i386_sysemu_ops; + cc->dump_ops =3D &i386_dump_ops; #endif /* !CONFIG_USER_ONLY */ #ifdef CONFIG_TCG cc->tcg_ops =3D &x86_tcg_ops; --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021643; cv=none; d=zohomail.com; s=zohoarc; b=ELuPcKNRwpKMEQrMkXO1B2uIck6Hpg6aE6S5WZN214QTxkICZzvqhR5eqSkLxpgU63BCj2zqM38Ya/6e+n5m7kebZ0fDG8U54QcZS+h6ny99dX49ErAaRzLi2PLlI8rvdoL5gU6QS5/wd1VOpFEwvxocBseXvL+p4Or5n2XKct0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021643; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=yqurs164a/VICU18oUl++n/3uzNKRUotuD5Uh5jVvYc=; b=i6X69LPI2pbLCnO0yn1iFwDU6/LbbZhPjwFB9rSm61Pn9eFvCtHBCdAsQ1W8iU3h26TvKOmHgJizj2BeGQBVph6U10DSsVZ/Qz8LFCaRzkdQkgvEM8CafTuVN9DrShVAvQSpb+PJzW82UGQb1vAb48xdR4LiOzx9x6ILEnoiqjs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021642958535.502493812312; Wed, 14 Oct 2026 16:47:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g1-0006xC-TN; Wed, 14 Oct 2026 19:46:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fz-0006wT-B5 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:27 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fw-0006QN-PG for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:27 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ENRLNO586467 for ; Wed, 14 Oct 2026 23:46:24 GMT Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hakder1wr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:23 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-3592749a017so1467913eec.1 for ; Wed, 14 Oct 2026 16:46:23 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=yqurs164a/V ICU18oUl++n/3uzNKRUotuD5Uh5jVvYc=; b=IxcjVtNFof43sJOlhJRQwaasSFV VB3qAOH23XUruPlrkQQP5Wn+pZjXQreLZyn9EUqP1yeCngMfPsQrXosS8dLwUzZa D6/YuoDrsa7bCm4TobffHif8aUjtoCu9H/Fsm3A0Anz7AN4rsw5NTPGScjFbCCdD eJn/S4F7BM7Whq0WjImcI3gyYiD+TbaBOKKHMRZb14qvQ/mx8RLcqxyOgZhRrykU FDG/JsH9cThxZJKaCUersm94RgiW/dGbCUUwN+UkmNuHSf3XG/vFebAx+wh7JOQ9 nRnQXbDHpwAKNEhv0sf9wyK5qCduAFiacfIrFDygTeAgMICF6ClSx5fBzbQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021583; x=1792626383; darn=nongnu.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:content-type; bh=yqurs164a/VICU18oUl++n/3uzNKRUotuD5Uh5jVvYc=; b=aCySNZme7FXSFXxTlgUZCSV9LMqOq+jZmO4eBGtt34DMrA7EXBqWF23trCB0RxF4ri ueqgAzjrDhRpgND5U2TF3zU49kKjC0fn+0bby8zXUVe0/U6Qk/BIGVGaZ8pilvF/oMar 6rokfnaKhdj4rZ3LQXYy58isNDf6Ob9cbhkeB8byf9BxULQickZ+bYwcTi3NzyzaSurP WgpP3figJpDfbnDHTE+h0rWXdNNWWYOJRIoJBOKxKKv0BrmVExJqRB9pGmrrfETj2IAc cW6dgKVz1Wish1JzFgl0s2XXRgnsiq2kGrXljiU+p+CnJd3MK8Q9OsntfVG+PrONGIK0 Td/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021583; x=1792626383; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=yqurs164a/VICU18oUl++n/3uzNKRUotuD5Uh5jVvYc=; b=DFZ0u5I9fP9Tz78KDhvrBC05fdK2ZtRMn2VeNvg1VPjTHsg1cSB4gRsoDwAm7LEkgz 4lttfXkvKSE7Wg3trrVCU0fti89RJdID3nTbG+MbSaHtLvnM5eLf2GUgb2yWU4YXoKfu 1zicijMYDpviZGA40hukrMUT/EjYV23b5/ahdX/LTXATj1HM8p+oMyTlQjlqAGB+dYq+ 4ABH9jlSspKfB/H/LtIfzBw0+HEA7AVmRP7xjVS0o84P6xX1hiwm+7bNHSI83Hw4PxFb coEuUdOy0812q0682+g+qoEcrLxv759R8UdIrpp8/je6+qtjSC0I+qtd8AQnBTBx0WJv Xykg== X-Gm-Message-State: AFq9FYKtQwTFfojBuQRzn7lVclna893eQHoI6KcAu/yzNFlloQnz3XPN 5J7syvMFiC3iIbczS7YfQYr6i1zHjxxrEo3Qp6EOWKSaN7PvwfMtilKR2ZCPL8LrKVQ3dw4ZB2o 5JSBQJlXpyfQos+etFeTWnnFZEHOUWl3yUwC62I/408t7epQzTmBe3pSRL+umMHx7NQ== X-Gm-Gg: AYBFou3Y9xZ3vgUfV6izoyB17iyXbDE33OWu3pQ6iR8Yvsm0I0FpYHS3u6UNYX2wUj2 6Fm0dksgC4cD4WIrdWEJ0iL0Yl6Pvhnm9+9k89KTJWmypKCZwTd1dEXWbiiSu8LXEyRfWEnyeJ1 9zKVh98T4AfQeZABYiALXKg6Y5ydpnf22ia7pp/6RaKfcZkCQ9Lif7nXisLsfk44TV2eumCtF2h oOw/ewnvXemNm34iB1OCNYyPUW9boy0egSPf407mMQ6rZebq4YdyVjvXldOgV8X5RJpFAuTn5BY G+hZSbAA6TJh1S1swVmyERmMZhgTWkgum5S9M5KJdU1K/UvxGQ405fmbD4zJXBDCUWfHdplY2B4 Onu0Z4qsl0pGtAzRtEwibeu0JJommc6bnkLNL4SQj/FvfBqKt6UPhn6g8Tz8K X-Received: by 2002:a05:693c:8819:10b0:35f:4948:c13c with SMTP id 5a478bee46e88-35f4948d20cmr245843eec.9.1792021582864; Wed, 14 Oct 2026 16:46:22 -0700 (PDT) X-Received: by 2002:a05:693c:8819:10b0:35f:4948:c13c with SMTP id 5a478bee46e88-35f4948d20cmr245817eec.9.1792021582359; Wed, 14 Oct 2026 16:46:22 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 04/19] target/ppc/cpu: constify cpu parameter for ppc_interrupts_little_endian Date: Wed, 14 Oct 2026 23:45:50 +0000 Message-ID: <20261014234605.209084-5-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=OdENnRTY c=1 sm=1 tr=0 ts=6ad0144f cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=3tol9ANpHmc3mX4GjWoA:9 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-ORIG-GUID: bN8m0oPreQzZaCyj4yAc_QghgBFtF7e8 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX6lWNIOJ1JvV2 T8h13+kWxEaBMJWLLVrcEu10OO2wzfkWGkqIkPMO0BwaJ3qTYwd6LLtacO4eHbnSQ/TYeWcYVvG aDrMNbLFqIQi3YX+zPvnyDfSpy8ycWQxAUx4gxDcWtpvH7WJwiyaLRtQqYjPLHOJgmE0AD0jpvJ 5gTlwVDPof9lnjLNXhyU6uwHQunLrOf5hNOMi/F+IKGdXYD6YL4qIfPvF6lj4lRvYj3BqFX7w5s ZCIxlUj3MKSQZAetHg4Aolq6v6Wn0z5ZsRYrSoRCb0qgNG7FnL5yjNAfYw2fZfhFwwJuFnBJHMl mEOc7JviVf/R6golBwiLv+u2ZnTvAXYU0P3XRRNgPoLOE1q1z+Htcu0ZZBJfuOteDl1J/wi9VO7 2mzQ3HUAwMt9PF6IP+DAg08h7Pu/MKekJJI1CESOEMF+RgTtfnJKo5KdkNHpctvIf5IBZb+P1N1 1Y2WeXiog5hr5Xo2iWw== X-Proofpoint-GUID: bN8m0oPreQzZaCyj4yAc_QghgBFtF7e8 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXxooxD+CWi4eA TAw0eXFocWjyHaOmLIIgjsMFqyjo6ReNsxEhIk7BF1H0FtH8yKtVAS4bOVEBjgtaJFPtAQBH9ka dDXC4yh2YwTs3QeuJWq132SVOCEevEI= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 impostorscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021643740158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier --- target/ppc/cpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 3fb51bbeb82..fbffc9b3005 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -3048,10 +3048,10 @@ static inline bool ppc_has_spr(PowerPCCPU *cpu, int= spr) =20 #if !defined(CONFIG_USER_ONLY) /* Sort out endianness of interrupt. Depends on the CPU, HV mode, etc. */ -static inline bool ppc_interrupts_little_endian(PowerPCCPU *cpu, bool hv) +static inline bool ppc_interrupts_little_endian(const PowerPCCPU *cpu, boo= l hv) { - PowerPCCPUClass *pcc =3D POWERPC_CPU_GET_CLASS(cpu); - CPUPPCState *env =3D &cpu->env; + const PowerPCCPUClass *pcc =3D POWERPC_CPU_GET_CLASS(cpu); + const CPUPPCState *env =3D &cpu->env; bool ile; =20 if (hv && env->has_hv_mode) { --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021708; cv=none; d=zohomail.com; s=zohoarc; b=aOf1Flpgi2vYIDpFdMHLeuzZHwhY+Mef21ypk6G0KGYHkvpz1wZyScuw7KseP0mAAB2kNnLZ2zi7cah3fG22FXYM1cgQ5XrJLpDJ7N5E/zr3gRzFHm+Utg74iJIHfwnW0u7lP/99KOwJJTC+3ZeLoFrr1s1lM3x3AzWj/FBFc3A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021708; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=J2rKJ/o1JlL+DZeRPL3RhhxRS4nD6/jovJ5uC/XT8ic=; b=TzGhgMs466cmBJ3tT2Gar03yOM9WBI7NQ+fkJ1yqSK+ZaSFIr/+D1Fh/g46CCUbe19eGjEvYmMGGF0Vw+wEMdn0lB/vhyXPnfydJ8lMc1p1nwT0nPrxgsDXjhZS39m5jjIY9eqTRYUbcTnvt0weybnGMRi+H8ZW5Qk6G6bYVFXQ= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179202170868880.3952064722098; Wed, 14 Oct 2026 16:48:28 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g4-0006yF-7H; Wed, 14 Oct 2026 19:46:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g0-0006wd-4T for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:28 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fy-0006Qb-Cg for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:27 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ENHkYx301147 for ; Wed, 14 Oct 2026 23:46:25 GMT Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha4623y29-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:25 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-30c0d568830so9544797eec.1 for ; Wed, 14 Oct 2026 16:46:24 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=J2rKJ/o1JlL +DZeRPL3RhhxRS4nD6/jovJ5uC/XT8ic=; b=d3QMQ2JCVdA7wBPhjo+zHTt+K4d 9VsVi8O7lVEP1YaFTNTpr7yvD9Laww01/DcdZcOXC8w7In662QkfHZJlvlKqf2SK JpdLAHKWnT8AyPQsSgfXnxvI2zbQTaFhHzREOBuFqGTF4SH3JXhAOZB215uyvV+g Ub8MTuggFy2kGUJ1a6Nw2CmxPGSEuYIMwj3Tbf3/OpsRWlF5jebmwFHXTSVvks8Y hVCmo5Y0j9Flmh2/disS/wiDETSxMLV8yCxoqjXm1oh2g9E10REYgyh5xZaLL4N2 Uz32o82yQSXWFsqjmtQFZ3vsEg3T1FXgFV1JSVrTAwYsNrA2Dge+V7qxr7w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021584; x=1792626384; darn=nongnu.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:content-type; bh=J2rKJ/o1JlL+DZeRPL3RhhxRS4nD6/jovJ5uC/XT8ic=; b=W7rN2F2+PWLjOelA/jtOLum/T66zz1qA7GB4LvtxEQYhaIYI14S0u57fDH80Dm53X4 z9F3ZiYY/fcINPPcDHpZHxWVTkuBKV19BuCxyz2HNGp2zhbGmzNCyPgsLflIAHjD7SoO oF3xUDCz/XA/jMp9A2H5R0G9/bii7i62dF5XCAQAooMYAOhYQdaQqZtF1Hk8QRblfzzG GpxuNEsTQXZ9mXDWsKN7mk5YAft8L1S1SIwKiJz61QF/xtT/V73Hsna1OI0danQfqEO3 TvOHkqVhJ9CFIxFDO/BzuOTt5m0Qpnnxf5O9PrK0WhDxoAG+rCIlb30y39OFNxVdbAGb pQYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021584; x=1792626384; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=J2rKJ/o1JlL+DZeRPL3RhhxRS4nD6/jovJ5uC/XT8ic=; b=GWvOhcPX2rIbI3YwPU4rWWxX3evVhQMA3FtoJYIETgEXX7PASqKxJm2YWtR8GR5rGv u6m98ky/XZz1j82G/e0AOYT9BgT4og1xUwPeZLXeKdmLS7hPuAnbf1QcUcx/j4Gwtfaa 4Is5RxHX3SRe+EHSwBJ2txU/ernjTryA4iloEusb5kAvqZ44rLeHeDz8QtyoMmdcRbwI hnCsT2ZZ65JX2Skp7FDSHU4LpB14YQbbx6zH3biNPBwAdg/2pV0dBtpBLXIoUWMt8hyN ZhPd2NjzvZDuB0NJuyNTBn2fYZrxuui+oIpeaHTkREG/kODSR0b8+o9M1dZN5EDNAga9 Ejhw== X-Gm-Message-State: AFq9FYJbmUv3qCOYRTSE0aKkNvyf0Xg24ITTNSQ58dDiYUW2npOzcc14 fnt4ksipPHy8KbC3UqNK+DLQSW4kaSjTE/H80CUT7TV+FneAe27RN9SBqLLKgMclVY/cBR3uWUF qfkeD5NRcUFbJZOqk+s836Ng9SyfaGMH80pR7dPgNuf7PnXGxxn5jtS15sU4qgoul4Q== X-Gm-Gg: AYBFou3rmmPLsTQlu+N1T+BgDcpsdYQ4Mwr//Qv5z4/MhWXhEzyHQgqYE7PnLQKhQId guUP8bAC94BntBu2PHwUAYo3J/uj2ObwjNDv5TtiNs18HLQO3OlazU1hA614YsuPFBUIE/tHvJT l5RWb6c4QEJqxl8AO9cstocCC6YcvU/xUbpOzaLKTBqQku32xVQlifbqWCz2LF9E7p8XreeVpff 5NekdlLip0nTi0WUfCse6tQF52UqxwQ+mD4Ul926xRqSpHgRmxN5mpg7I8S10t8wB6fAba5QuON ZX5VLn91xENSzOkW23LPjuSxexoY4SkOrHPGmr8ZnQTMGAKVnU65Utibd/LrVACirSHhiJghIBA TWKj6KbCg/BDluPUsDGpRajSmB/54pbkfuOan3SdV7mUXwkPx4YmjR2z4XWrF X-Received: by 2002:a05:7301:9a93:b0:35b:2d66:942b with SMTP id 5a478bee46e88-35b2d6697d3mr12951174eec.13.1792021584028; Wed, 14 Oct 2026 16:46:24 -0700 (PDT) X-Received: by 2002:a05:7301:9a93:b0:35b:2d66:942b with SMTP id 5a478bee46e88-35b2d6697d3mr12951146eec.13.1792021583433; Wed, 14 Oct 2026 16:46:23 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 05/19] target/ppc: implement get_dump_info dump op Date: Wed, 14 Oct 2026 23:45:51 +0000 Message-ID: <20261014234605.209084-6-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: jmbNAt1z7rvvgXh35E6-57BFmLSnQAzC X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX8NWQtwwVAMcw yJLbTjsBsth/Wl0HEECImzs0PwpfQBttCMxHvQ/aLS1wcj6C4DMT5zFsOpAYykq+0JYM0xO/85f dgpHLGBl4Y0KNmZyxZAzBqOcenkcZU/SwbS6brTjnx34ux+nCOtbsyy8IGGlX26Rv4FbGX7gkTw H3kZxw2x/0VUwR8Y/Kxs4f+/57JjWZX1tTjF0rNrRpE98vqOdegwsYr8fmjCfxQRjNuWn0fvnyn 2zdEs3Oj0pjaPtRPNsOI89fhT47wYwS6rGV/tPQSnkrpleJ3lW2+vcaj9YT4vU7StmzlB2z7Oiv 06BY5KY6ltQyXNmT2grtMFBHb5rYbtVg08PxnSwrG2vpmX6IHsgVw/DtaKhKz6YHPPDr5c9iLbg 2mACOWgCymk5XrVHlFbvDbVazIdZxzlFXg+ckYt6a3wvugqzL7P9qQOL3azdC1uR8GsbJ3X7qpe PmOauQ+uqGmW2RCVvIA== X-Authority-Analysis: v=2.4 cv=ErZHPicA c=1 sm=1 tr=0 ts=6ad01451 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=ivC4dvb53ZzZ1fLKHQsA:9 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX9nHA0Q2h1IC1 TKFnbca9dJntPQna8iImrzmf6fQWghvWvEwl8ZFLeEPwOiKUWL9HFlV1XIUffmWskeB4T23yrSh 7eBeuvFYhsMLZNWeRHHuB4Lg/cDn25Y= X-Proofpoint-GUID: jmbNAt1z7rvvgXh35E6-57BFmLSnQAzC X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 bulkscore=0 impostorscore=0 adultscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021708953158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier --- target/ppc/arch_dump.c | 28 +++++++++++++++++++--------- target/ppc/cpu_init.c | 1 + target/ppc/internal.h | 4 ++++ 3 files changed, 24 insertions(+), 9 deletions(-) diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 80ac6c3e320..69613ce82a8 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -17,6 +17,8 @@ #include "elf.h" #include "system/dump.h" #include "system/kvm.h" +#include "internal.h" +#include "hw/core/dump-cpu-ops.h" =20 #ifdef TARGET_PPC64 #define ELFCLASS ELFCLASS64 @@ -229,16 +231,10 @@ static const struct NoteFuncDescStruct { =20 typedef struct NoteFuncDescStruct NoteFuncDesc; =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) +static int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_b= locks) { - PowerPCCPU *cpu; - - if (first_cpu =3D=3D NULL) { - return -1; - } - - cpu =3D POWERPC_CPU(first_cpu); + const PowerPCCPU *cpu =3D POWERPC_CPU(cs); =20 info->d_machine =3D PPC_ELF_MACHINE; info->d_class =3D ELFCLASS; @@ -257,6 +253,20 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +const DumpCPUOps ppc_dump_ops =3D { + .get_dump_info =3D ppc_get_dump_info, +}; + +int cpu_get_dump_info(ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + return ppc_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "CORE" or "QEMU" rounded */ diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index b711f9c0a85..53bb5f1bc52 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7537,6 +7537,7 @@ static void ppc_cpu_class_init(ObjectClass *oc, const= void *data) cc->gdb_write_register =3D ppc_cpu_gdb_write_register; #ifndef CONFIG_USER_ONLY cc->sysemu_ops =3D &ppc_sysemu_ops; + cc->dump_ops =3D &ppc_dump_ops; INTERRUPT_STATS_PROVIDER_CLASS(oc)->get_statistics =3D ppc_get_irq_sta= ts; =20 /* check_prot_access_type relies on MMU access and PAGE bits relations= */ diff --git a/target/ppc/internal.h b/target/ppc/internal.h index a20a0f9f7e0..c890a596085 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -324,4 +324,8 @@ static inline int ger_pack_masks(int pmsk, int ymsk, in= t xmsk) TCGTBCPUState ppc_get_tb_cpu_state(CPUState *cs); #endif =20 +#ifndef CONFIG_USER_ONLY +extern const struct DumpCPUOps ppc_dump_ops; +#endif + #endif /* PPC_INTERNAL_H */ --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021653; cv=none; d=zohomail.com; s=zohoarc; b=Wi62Pa902foUpw4s4uyIMBR0qJIEGWOliXwH9ruuDt9VIv5y40nnvDnbiLFmvyw2IZaGxCwn5t514yWE6PfG5d1YZmNCJPNp46i8/XdlecBxGkD5iDoJpBJuMl0xpj8+tun9xS7QxIbehhLv28B4slHrXdlUEf4gv+QnLvefAS0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021653; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=69Z1SGee62qepmCY5cuxjJ/sTl5Q4vAI9XjyBCU8DBA=; b=ceAJM9JMYgoIfMMZZkndCl2ZrfaGjAkomFGjFERB9JR3TS5dLY2jynv3DwNtaNEx0lsIstTczkIYoPiPSKq7vuBgfIVmIdt+oVD3hHH1564e2k6X4FU2M6w4A7y5KuO4judjF5HM06C1TnZwSBiF+JT6LadFmSoPV0oZMzqt/RA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021653085719.3712027599503; Wed, 14 Oct 2026 16:47:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g5-0006yg-NX; Wed, 14 Oct 2026 19:46:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g1-0006x1-AQ for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:29 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8fz-0006Qv-HQ for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:29 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EMSUKM1013177 for ; Wed, 14 Oct 2026 23:46:26 GMT Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha80ctuju-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:26 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-357e2bc3b1bso7483575eec.0 for ; Wed, 14 Oct 2026 16:46:26 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=69Z1SGee62q epmCY5cuxjJ/sTl5Q4vAI9XjyBCU8DBA=; b=g/to7/Eg/ODsAhVzp9t62t3PqcJ W/SWy15vJ8MY4up9ZuR97BrbLRcjm0xRyfBZaDP3DzUzoauVuxxwU4dFbRHgK5VD rQlHPZ/NjCxM+hTJHqWn2OVA46yp/z4tPaWk7Njy750pSv3xe2hoqb9cSnJp3ts5 Hj59J4WXCbFAhL+JEU+caidiO1wGXxfUz2Etzbl2WsyGtFwqW8bTObnrC/IOpd5P eKyDnKt8Zw2jXHVdbFSo1neqpvSTueWZfuGlVeCImiN3cPSgpj9eOK2uwKR2kqXU 5+fRNph+1zLS9mb01YobgxkrBPupbzg/8sbvoLjSn7j9w1O7LvZJnCB3haw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021585; x=1792626385; darn=nongnu.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:content-type; bh=69Z1SGee62qepmCY5cuxjJ/sTl5Q4vAI9XjyBCU8DBA=; b=LOa7AaINq8UdEOsrUKynBKNa5hMTjUhhiclPkqtivUdbiDnoRQDBy15vpvJrepMCn2 GF5AKubxUnTwMwlrNl9tccp2Ugthtbur8QPssi6CO1oDpw6jVZfrMxSu7Yh7RtgVcUnD Bh/kc8IcmG8z6QFwC3sfm1TAMVIBIEsVAgS0IItUCW51N3NAqPPhwmox5gWLVscp7Ulc /rg/D9jV2J0Zls7RJhXGndf2tEEDLa/zSV9HebSSue/k8EDRJIDAYmZeWvm/OzFBky9G JEAjf8WQA3KjHPbRzO48q7mZXcdGfGZ1tKvI80sIq3MO4n2Rjd1hrjSifWsfL0M7/v3N SuVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021585; x=1792626385; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=69Z1SGee62qepmCY5cuxjJ/sTl5Q4vAI9XjyBCU8DBA=; b=JPanu0SF/j7sKnKn71BO0o586MkGcKRS8SvxybaEZlDG83+b/MUCby4DT3ymYLjIPa nyJkskkzU65zy7FyI7YeaAAKggjjkjbyDBbtOYHRPMA7e0nemFIaU2RAOI22l3HPGN2o q5lWesS1+N5tFVR89mxStfX4l9hmOiXSE/gKMWm5EJzDvFxzqyglQ9QsIgUGDtf7tbb2 jhxrJ3n/iNuloYchHoEtCMLrQKHEethEjbSc5RozG9PbeXp39o/cuCGAkH5NNwc+C5vg qHjmLYG5pT8fvhw4Xfm7Z70RQfKItUL0FNo+lVgh/+HFV1i1qSt3xYuuuRO9B3iygJtL EQKg== X-Gm-Message-State: AFq9FYIsizus258fNoTFF5OT6ayqbqrCg3NsL1GBizq8PN6tSNavOXRs /IuVOqnCkXsj1X6O9Y16dRtgFETjUDb/VfBXZQtJKa09kPwKe77FaOgdJXHb/TAWA4cQak4C1II IlpI+t+ZT8/CQwroQheu3MNCE00zasMeFg8hMLD66ex7txhsoo9kho9u36k/JVO1wvQ== X-Gm-Gg: AYBFou1UnGMNCpQljduMdyKSGg+4/XkC4NrJO44qy9iWya9RXSwpC8KOqVXuPfLaeTq MD+FUohWcUWcfUP86cSxlx4cU4J7ZKSMY8vvBDT+hhXCkjaodYjhVgYyIZPOBQRMbkRhaIX3G5D sd3kd2Bbjc+wQ8r99Yjn4C6GSjwoW5+PmSDhQ37+3QaEjFOSIlkhBqfK/nzRMlv2uvYXkaquaHu Pq5koSlfj2bMEV4n3UtiXqdKNed45tYhP0BlizNcyUGCdso/tkJYtIL7W757gcKBGY59H80X5XU uvAKasTl1mfWpOYz22ELuVRar23lh3nlfTemvhc+C/vC4i9R5KdKkRM7hJFaV/KtmkdOP5100QU +uL64W2Vbv6Qaj9BFJsayfJZ2UKxLQOhibajwayJbZPehNYvv64KI6yMZ05sk X-Received: by 2002:a05:7300:430b:b0:35f:2858:aa4b with SMTP id 5a478bee46e88-35f2858ab4fmr856980eec.30.1792021585250; Wed, 14 Oct 2026 16:46:25 -0700 (PDT) X-Received: by 2002:a05:7300:430b:b0:35f:2858:aa4b with SMTP id 5a478bee46e88-35f2858ab4fmr856948eec.30.1792021584712; Wed, 14 Oct 2026 16:46:24 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 06/19] target/riscv: implement get_dump_info dump op Date: Wed, 14 Oct 2026 23:45:52 +0000 Message-ID: <20261014234605.209084-7-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX78a43W+se8W1 3gg6I40vydAYhgSNUnMAicCaWogRSDW6LdBMycR02YYtZ3AdVGEfKoaslkLqfbeg9TjB8X7CF/d PRw6YjxFQzsq5l8d03vbRAsJwgLEcpg= X-Proofpoint-GUID: JzsIn4ltu8Wx9jqJe6dn5aXQ0t2K6LUS X-Proofpoint-ORIG-GUID: JzsIn4ltu8Wx9jqJe6dn5aXQ0t2K6LUS X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXx9uzzU9nN7Ep 86VKDgzCPfr9L6/19y+k1fc/y6zeS0DOLVBdnkZG0albTp9FSYsGCvk3uZRATcyP8sjx2K3RL8f qJOgcZnQtev9SPoi9JdQEYdByjDfCxJf7kd26SYw/4gvO9V+qxWLpvvSZ+8j/QwqTwJykbSoMt4 9Xqzp1RMBeuTByE9yX9Is3E0RTy54vyexeApt1dbiOppy3sF4A438IVhJWasFmouri6LfdbKsZH RtQeJEYCfaxFXXKDFJWc0yPt0pMJVjKqOPb+jHbB4QFHPMJKEOJ+e0prc+8MUnAqedwp46WyAz0 dZmeyv5XxpXkFjCQbGL1PPholPKxZJhCewyKK33mEXG2JUSlw2MoPDU/dllFexXVyaeCZUhDpmX 5QcQI+wjtHRL7jMNRL+ekkqWluCMVOk3QrnqTLo4QTsdJaSY90bHKbxL1ghsRez3p3SCp/DyVPw j1mR3mGB0iyfZNJidjA== X-Authority-Analysis: v=2.4 cv=JegpPkKV c=1 sm=1 tr=0 ts=6ad01452 cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=KFHBJy6n2imRmvZWk-EA:9 a=bBxd6f-gb0O0v-kibOvt:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 phishscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021654024158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier --- target/riscv/arch_dump.c | 30 ++++++++++++++++++++---------- target/riscv/cpu.c | 1 + target/riscv/internals.h | 1 + 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index 12b68799070..7086d778b8e 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -20,6 +20,8 @@ #include "cpu.h" #include "elf.h" #include "system/dump.h" +#include "internals.h" +#include "hw/core/dump-cpu-ops.h" =20 /* struct user_regs_struct from arch/riscv/include/uapi/asm/ptrace.h */ struct riscv64_user_regs { @@ -161,17 +163,11 @@ int riscv_cpu_write_elf32_note(WriteCoreDumpFunction = f, CPUState *cs, return ret; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) +static int riscv_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) { - RISCVCPU *cpu; - CPURISCVState *env; - - if (first_cpu =3D=3D NULL) { - return -1; - } - cpu =3D RISCV_CPU(first_cpu); - env =3D &cpu->env; + RISCVCPU *cpu =3D RISCV_CPU(cs); + CPURISCVState *env =3D &cpu->env; =20 info->d_machine =3D EM_RISCV; =20 @@ -187,6 +183,20 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +const DumpCPUOps riscv_dump_ops =3D { + .get_dump_info =3D riscv_get_dump_info, +}; + +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + return riscv_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { size_t note_size; diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 63c709ac738..f177a4b0d8f 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -3048,6 +3048,7 @@ static void riscv_cpu_common_class_init(ObjectClass *= c, const void *data) cc->disas_set_info =3D riscv_cpu_disas_set_info; #ifndef CONFIG_USER_ONLY cc->sysemu_ops =3D &riscv_sysemu_ops; + cc->dump_ops =3D &riscv_dump_ops; cc->get_arch_id =3D riscv_get_arch_id; #endif cc->gdb_arch_name =3D riscv_gdb_arch_name; diff --git a/target/riscv/internals.h b/target/riscv/internals.h index f17d011d22f..45755b65f86 100644 --- a/target/riscv/internals.h +++ b/target/riscv/internals.h @@ -207,6 +207,7 @@ bool riscv_cpu_has_work(CPUState *cs); #endif =20 extern const struct SemihostingCPUOps riscv_semihosting_ops; +extern const struct DumpCPUOps riscv_dump_ops; =20 /* Zjpm addr masking routine */ static inline target_ulong adjust_addr_body(CPURISCVState *env, --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021668; cv=none; d=zohomail.com; s=zohoarc; b=WAMmwUY4/8n4T4S3Ql1Ci+6C0L6gCR/HxbX/ciU9cQol+v2TJwz8ovEEMf7fm/ZxUC2CBMvSg8i9YGItzi1R1Mx8WUXDEisvsKOdacckq/rb9ulQ7cIDoN+pmw9ib54VDlJNQ0QaWLVxTmJDwx8EynJyROrQvgKLrf2m5UC9iGM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021668; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Nae77TQR3Z7q3Qlwc9Q49nkMmv1mvtHOrP91FMkoDZw=; b=gYGNb8NLA2YXtjpY76g1X0m0uvJcHzizgRdIiRxufySEwgEM11WqnF1+jozciJLZCdvzXGPpVBxPuwb0iKmj3jdNmpblDGsiYyyCjKHA88pWx2BoTHD6elsI+cpceHBRzIGvfiMgbKtRXuUo4iFgckMVWYIKXnFTKrve/6gUjVI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021668173330.18773083466556; Wed, 14 Oct 2026 16:47:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g5-0006yW-2p; Wed, 14 Oct 2026 19:46:33 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g2-0006xS-AA for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:30 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g0-0006RC-Mh for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:30 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EMGIF9905391 for ; Wed, 14 Oct 2026 23:46:27 GMT Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha42p40g0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:27 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-357e2bc3b1bso7483590eec.0 for ; Wed, 14 Oct 2026 16:46:27 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=Nae77TQR3Z7 q3Qlwc9Q49nkMmv1mvtHOrP91FMkoDZw=; b=Mi+9DdXmmrOvHe1pNN0TcYdk38t LgMYmdPULFEMfa4GWeHnKUC8G/TabvxTxaYs4F+tUiZke0LAU8hRxNxII39iSRcP u0joji5/FCwWOo7/Ks7bQZL+1EGSxKicQ/sEbmIBofsPVpgZ8kPUCzFTt/uCzyN4 kQ3aq6gVNsK59eadxUjg7vBhyuWf2eQVhABiu1jAxYdHiugST++9v1GmzYkP4jma kq1dyCICdY0JR1Hx5wEhqJA2Yp/GnTLrFoDJNfNSptZvw15r1wJqSyaBM3V8Cjt7 nuFXDshAejJ96WdZccsIc9nVVLr/mc+WPHVnA9AvZgrQKoa0ttpdH7AqP8g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021587; x=1792626387; darn=nongnu.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:content-type; bh=Nae77TQR3Z7q3Qlwc9Q49nkMmv1mvtHOrP91FMkoDZw=; b=UJXY2IjcKS2eyYkaC0Iu85ffltn7RyQiPcqwr+13fuhrP4VlfhJd1FGpUtq4jdy+Nh 3UtgI1EAUCG9PHv4UwCkq7jkVipPkiEBda+WWb36CjIgfgfFhkFkxBDrweSilvZTioRK 1oZ0fwaNK/BXjCd7iTOOMs43t9atBA5EFlKGKwxKO9EiiFSmLuGSe1d4Qj1gnAT2vMe0 kin7DIZ+9rGYlrsvzutD3OhriffAV87AodR312KjJP7+c0Mt8MVikdw8stFRXTOJ3mFr aoyItkgR8qFqCZxCbhMzJrBBmI5Y7ytbTO8s8TU2RkkBgOqOnisSEF7AIngjN3nquV0i LrWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021587; x=1792626387; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Nae77TQR3Z7q3Qlwc9Q49nkMmv1mvtHOrP91FMkoDZw=; b=VeQvfmgUuYjmWBpZzWC6ig1pCoOV18A5271J6Kba9WEMhW5q2z7ioJofF8wa5qq8JD UbbeSEo1e/+dcdWqlNfRDB94xciGAHvef0WdV4e9drX0E26Pd0k5XQuxwYsmRpgtZ9B6 288jMjB6N6lYlPvk7qmqgb3qWin5//mKJRldjbyEn9eICO+pZsZQV9xuoPZOIlBVvjFs OzS3zfWPr+F6uvsx2X8+MPTuB6XpwmICgar8U6IOsI/TVxco+jsmhLHBAMmRJijQy3at gm6RYtgzSjoQD5Z53e8/c1vgMqFAMUagsypTSxE3eD6nH5ThVEyrfo2EvCr8gQMW0IlN 1ILQ== X-Gm-Message-State: AFq9FYKdlnvOHFmtNmWSo/HzcNKgKe3PqUmdYZYTPE4eGkyKLdnQRk3Z jk/Kofwmi87g6KppJZ4S9mjXL3aNe5dA508EmkNjuk4sTkv+7n7vnv4bm61eAhEG/hje2FKfMj3 aH4EfsmBtMA8FuFmWooddgJZHGNeUB2HG2wZV4jeJnGwizopIYrkwmGVby0jU8mzIDg== X-Gm-Gg: AYBFou2Ys5KC8H1WUD9Sr100t/+efje+0IMhGt/dQ2ANLTthlGPMVwiX6xaAFWuznEX t91FdACAA3iG1QXIjaknPgOLI1PfRmBY2HMRNz2OUpfY9hT3ZwfWKaY+XOgm+IyvPG7fO/qS/4X LXuf5NL9cDcETjXP7qlbvV+DIa1Y9twRTlEewhNHWFVX0OTjgXwm9Y4fF5VU/EZ2COQ5O54L3cj e/Rn9wgX2OxBdQjPaXRhRbI6qv0n3uN/EIpCPUJIqp/SMg0LcqtuCU6pnLZ1xlCkNNFLSLprs11 iMyRPyyCAb6oOEYJXe3t+6Sv7zYkdiuPGws2PWC6Przekz/WYhX8pIIib36Wl+YufpegK0Ebyb4 i3xUzhN00CC8ar3xqN5JCPZjrFUctE7Mo1cv5gQ1nJbFuYfqP2bOU4VzAPnDL X-Received: by 2002:a05:693c:2516:b0:35d:8c39:b314 with SMTP id 5a478bee46e88-35d8c39b74bmr5083076eec.37.1792021586486; Wed, 14 Oct 2026 16:46:26 -0700 (PDT) X-Received: by 2002:a05:693c:2516:b0:35d:8c39:b314 with SMTP id 5a478bee46e88-35d8c39b74bmr5083049eec.37.1792021585889; Wed, 14 Oct 2026 16:46:25 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 07/19] target/s390x: implement get_dump_info dump op Date: Wed, 14 Oct 2026 23:45:53 +0000 Message-ID: <20261014234605.209084-8-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX6SdJevyQYoex KVvnocIzF3rpzpWtt/REakR+XCEKzGjdpWWUovzswK/6azI4Xk07SFN8S2LnhpNQRwdmFVIIbQA I0wINtaL4wETvRuVl+HTQFUgozjfyq0= X-Proofpoint-ORIG-GUID: __D8A8jFkAlsAPHB_6SM5Iki5l8xu7__ X-Authority-Analysis: v=2.4 cv=aeb0Dhot c=1 sm=1 tr=0 ts=6ad01453 cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=nTaJaBDiZT1zdI7ihh0A:9 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX95gkLjy8+Prt 05lxz/XLT1+A6xlUGzacP3kOo6XNVsxbOgC9R/zA/dFHYbdxAMU2GAuFAoTVqhBB+XOJ6biTPLc RrMkmuWMbl/SIHTwF3CocTRQ1d9OD8BDGghlq2Tu0jb8DEt6mblOZQ8H4fXP99n/1YhSXzkmxCV wrMgnh+ISvmTTvM4Mx7ZH/kzQ3BV/Xzvj7OVOEpm6hWVClVL+MPTKqXyulla5iHg9XMc8vRKqqj qDyI1oXUz6CHpL8axeqlrW9s3esYJNLbZj1GOnmHPLCZIpF4S4o574Ke5icqnI4tMEVVjyN88zb 53mWaHhdl78zmLu8RVYlTLfAFB4DBW8OSKNyAWOcX6a0fzR8euWotmACWX41eCDsrhE4HYdqGOz LbPgFHDBMT3Y+kY423llLGeFxEapHOIjvpmWFvlxA9DvFZWddTCrehsGPgGzE06ea1lZXjaoF1F pKm9WvS+2Ue1CXhsnBA== X-Proofpoint-GUID: __D8A8jFkAlsAPHB_6SM5Iki5l8xu7__ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 spamscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021670280158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier --- target/s390x/arch_dump.c | 15 +++++++++++++-- target/s390x/cpu-system.c | 1 + target/s390x/s390x-internal.h | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 2c26e992959..19810dcbae8 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -19,6 +19,7 @@ #include "system/dump.h" #include "kvm/kvm_s390x.h" #include "target/s390x/kvm/pv.h" +#include "hw/core/dump-cpu-ops.h" =20 struct S390xUserRegsStruct { uint64_t psw[2]; @@ -449,8 +450,8 @@ static void arch_cleanup(DumpState *s) } } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) +static int s390_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) { info->d_machine =3D EM_S390; info->d_endian =3D ELFDATA2MSB; @@ -469,6 +470,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +const DumpCPUOps s390_dump_ops =3D { + .get_dump_info =3D s390_get_dump_info, +}; + +int cpu_get_dump_info(ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks) +{ + return s390_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "LINUX" or "CORE" + pad */ diff --git a/target/s390x/cpu-system.c b/target/s390x/cpu-system.c index d963d9e940e..e7c022b3fb5 100644 --- a/target/s390x/cpu-system.c +++ b/target/s390x/cpu-system.c @@ -195,6 +195,7 @@ void s390_cpu_system_class_init(CPUClass *cc) =20 scc->load_normal =3D s390_cpu_load_normal; cc->sysemu_ops =3D &s390_sysemu_ops; + cc->dump_ops =3D &s390_dump_ops; } =20 static bool disabled_wait(CPUState *cpu) diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h index da60b2b1fd4..1c5aaccfa49 100644 --- a/target/s390x/s390x-internal.h +++ b/target/s390x/s390x-internal.h @@ -249,6 +249,8 @@ void s390_cpu_finalize(Object *obj); void s390_cpu_system_class_init(CPUClass *cc); void s390_cpu_machine_reset_cb(void *opaque); bool s390_cpu_has_work(CPUState *cs); + +extern const struct DumpCPUOps s390_dump_ops; #endif /* CONFIG_USER_ONLY */ =20 =20 --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021674; cv=none; d=zohomail.com; s=zohoarc; b=cXQ8mZqoJeMQDfIoMp88wdrpUH7S5qRcS04j8MUB+RkJu+I12Zj5Lb1D2f61qnb8WXX3W/ZVD666VnHUXAITEEIZL4vBBoUOEhM6ekV5iXy2yS4d4OhejXfvpcMX66n2fLqcjt5cANDSu8Mu16PQhnPghpy7zio9dt5g9ChBKVY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021674; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ndCxC9WMZDFybX0JEOxU5gO0DC9kIH8dmfkT+wBA7k0=; b=XWGEDSDyjAYiQ5OsbLkNXegM2opYwP1uz9JHvzBWQdQNbR/Wg9ezUqotuoV2EkYz43OkUs3fqaqGcxerhE1+QZqzlzhl4Y/3wNLZM75Ny6oWGmpOV2cijrBMdTr99L2emiWBACqo9lbBlzVrDClsm/P6wA6LzaBUZCm9QFAo7iU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021674214888.5608006264076; Wed, 14 Oct 2026 16:47:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g6-0006zZ-LP; Wed, 14 Oct 2026 19:46:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g4-0006yP-H3 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:32 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g1-0006RM-UG for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:31 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EHQUJd840950 for ; Wed, 14 Oct 2026 23:46:29 GMT Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hae4ws6nm-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:29 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-30c0d568830so9544856eec.1 for ; Wed, 14 Oct 2026 16:46:28 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=ndCxC9WMZDF ybX0JEOxU5gO0DC9kIH8dmfkT+wBA7k0=; b=Z/Dl1IFyZTi2kAyO/HiSUg2JH+M KPth9ez94V3orB6NHeweliG2t0NiU1m3f9LWfIuNaWBsze+1NBT6MvJbGVBX7lFl 4xYuZIxW+kxvq8frDOiI5o0+HbsHA4f1VKHi8XwpTMSo1sMYKnM4UtHdjqSZkRRG rrgmBRDjLYJ5KeRbtgm3OfORaBGO9sx9giFo+KYv62hhdzXQmCYSKaTC+WJD90S/ Eo4r1+GRI3+GYuvbDt7ZVWHaTd6rEJ7uhctYJBP8AFDWLkwT8C3j2/952lNeBIrz X2OR1fDuhYEn4iyqQV3F1QCKnYCchhDS+JpWz3F5CBOA3USJgfPfWSxBLOQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021588; x=1792626388; darn=nongnu.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:content-type; bh=ndCxC9WMZDFybX0JEOxU5gO0DC9kIH8dmfkT+wBA7k0=; b=gMs/vopgrUHABnSifeX7VVD0tv50+zwkrAkN9ndcYPrYdAgivIcdEij261kFSgEke7 WvuwQTvvEnOWxCBYRAXPHAwKMaMbb/BTjQk+gTCWYuGhcq6D4CwtKuPZj2vTEAwPA0OR UJD1T3SlISi0qXVhL8+vIRzoaeVEgRBF2zAkFcXMJoKLTgYgaeQwinwBHogB7NGEw1q7 f3kY780CIKBhr1TiI7bzMDXWniGL6gGGPu9fEqG6jCesxb6bDKRoDySQE2DHdnx3VpU7 fM8Sd35dLgvOTkFqgDvvT5LeQAu3ZNdINDw7KcANV6WVWNq1F5PKB4BIlOzPOkQ2e2xI Gqwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021588; x=1792626388; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ndCxC9WMZDFybX0JEOxU5gO0DC9kIH8dmfkT+wBA7k0=; b=buKTZmgYoDY+kiebVVAsbvTs5rD2nEDga6o/q4oYxwgjlTsgjeoCmLYTMRH8wDu+c3 0apHwZjbYDanDWnJ/vCcRz4bTPtxLROwnGAJzcpSRdLt0/QOUdCqH6CJTwqBW1j4i2ej +rKKnWf/c0O4oTY72dXOV1dkvkEMM605ExEpKjeM8wgz0Argg6AHZeHoZwntPtRLG93W ZOmgQgFGJk66fT9IEIHMwTcWZLFJkshaZ/dhguIK2bXuWB33T4m5aZY8Qu2l947rQF3+ tz9hbAnJmaVcxjNzE+IaPj6OOrCW92hKsfg334F96sX/jpyIddPDxtwLocx9v62r/1gK HNDg== X-Gm-Message-State: AFq9FYLjjoUAq5pQjGpqxDsAsWEXD1xmbXFm1LjdqwOR3MSIF0j7uIfk 3fYqJ5E3zt1zLz/62ImO7mQAKmt2eFrsgLCrZFU97tR/kIJ5ScYHUzVDEmm1HR36bTtBsFq9V1t XPgpbSUUup1ct/KS8Y/HRpLUYEKYgPFFVAVPciRLa/Rp4ItO+5qxqmeyfUsQ4qwi7gw== X-Gm-Gg: AYBFou0bZRqtHbwWOVhDZNxMjNjzhiUtVd+h1Z/TCWTbQU9rhc6m4VYjRwA04yYudYg FECM9xA+zrA62a2gCo+OatfSFfio5CYn1co0Wiw6TqCZyY/tScrJ5yTcPKbeqZ/7rzTyEA/mm+o bEoA0VIwcaKvSTB4N9fF8cghRC/J9uMIa5GxJ0vpXIEQPzOjVdsyXdgnIQx3vqcyD0gKVxGkn9U sdxbRniuEUhd2CZuP7VzNbQLnLb8GRB15mAZCvNpc7+LPFnbesScqh8VVAPY4FD+Ca3Bz1Jlo0F 4rYGzHT2lrrrxT+1mvZwR88PC8W++S7TWTTMEuqaesf5IP4LgpPxv+YB2rNSuliu1q3eF3LAdfb XvC2vSgewKUt+kndG8Xyg54KzVI3v8MlkJnX0BrfpZ/IgWz1rUZDWbHLLZ4G1 X-Received: by 2002:a05:7301:f24:b0:351:595:750b with SMTP id 5a478bee46e88-3537e2964f7mr25453499eec.36.1792021587833; Wed, 14 Oct 2026 16:46:27 -0700 (PDT) X-Received: by 2002:a05:7301:f24:b0:351:595:750b with SMTP id 5a478bee46e88-3537e2964f7mr25453479eec.36.1792021587267; Wed, 14 Oct 2026 16:46:27 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 08/19] target/loongarch: implement get_dump_info dump op Date: Wed, 14 Oct 2026 23:45:54 +0000 Message-ID: <20261014234605.209084-9-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXwzqfg0rjRrNT pC6EgaYETAvCOnsuKLt3ZaEMr6b+7qeJ+0RV3pvAqwy5RQ8oeW6+WMFEDbH6Ceu0BSbN1a/cNZL LlG9gdin8McKCEvYhQzzoiG53DWpf9o= X-Proofpoint-ORIG-GUID: R-esBWkghMTDgFbwhutKFqEa_4fnIZCu X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX7MRlkweJvxbR tE3UTDRq+Z8WShNIYtAOQX9Otbs3Y1T+6pd5rjsUCHT6HYpOZFRLJUno/+VIhn6BDkSKNKD3ToC KjRP1LZ7ogRyHXDEzqu7PpmYvTGv+auAMVAvbUIXBI//2oGbYKwlGxhrI1XLj+OFSyeY9RQZoEh Wa8vIKiU0U6c24QaxRNfYI9aYaoIfEHNd4AQp091GXGHgmlh35999/WxUdM2+TvzpzmYu9ybezN eHiKBowi+8qpuIToqT3lTVjHtdnWlp/F0F3QruNpeyBIqe8FNkFCoMnJjgeBvwzpoirM9uibV6Q LYsJx+yExAAbbLTdXwHaonYOQ1fAeo3HRzPDsVSfVajLCCcQPqDAx2NsVW9XS1V7bhSSys5gSuI 38fL/3nsSODgxfr+HLn4mu+KI/Ga2Ig3SGSFwlogHfBifB/PL4cOROeClN83t3QmKQqDPBwr7ZW 9b0wvwOEmorJBfKIiUQ== X-Authority-Analysis: v=2.4 cv=E8BYNqdl c=1 sm=1 tr=0 ts=6ad01455 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=LSoX5LRO13wWvFjk7bEA:9 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-GUID: R-esBWkghMTDgFbwhutKFqEa_4fnIZCu X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 suspectscore=0 malwarescore=0 spamscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021674515158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier --- target/loongarch/arch_dump.c | 15 +++++++++++++-- target/loongarch/cpu.c | 1 + target/loongarch/internals.h | 2 ++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 9d84faef969..83829a96875 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -22,6 +22,7 @@ #include "elf.h" #include "system/dump.h" #include "internals.h" +#include "hw/core/dump-cpu-ops.h" =20 /* struct user_pt_regs from arch/loongarch/include/uapi/asm/ptrace.h */ struct loongarch_user_regs { @@ -142,8 +143,8 @@ int loongarch_cpu_write_elf64_note(WriteCoreDumpFunctio= n f, CPUState *cs, return ret; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) +static int loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_bl= ocks) { info->d_machine =3D EM_LOONGARCH; info->d_endian =3D ELFDATA2LSB; @@ -152,6 +153,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +const DumpCPUOps loongarch_dump_ops =3D { + .get_dump_info =3D loongarch_get_dump_info, +}; + +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + return loongarch_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { size_t note_size =3D 0; diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 54c26998979..99b5ab59e00 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -882,6 +882,7 @@ static void loongarch_cpu_class_init(ObjectClass *c, co= nst void *data) cc->get_arch_id =3D loongarch_cpu_get_arch_id; dc->vmsd =3D &vmstate_loongarch_cpu; cc->sysemu_ops =3D &loongarch_sysemu_ops; + cc->dump_ops =3D &loongarch_dump_ops; #endif cc->disas_set_info =3D loongarch_cpu_disas_set_info; cc->gdb_read_register =3D loongarch_cpu_gdb_read_register; diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h index ff956823fd7..fac3ccd2afb 100644 --- a/target/loongarch/internals.h +++ b/target/loongarch/internals.h @@ -51,4 +51,6 @@ void loongarch_cpu_register_gdb_regs_for_features(CPUStat= e *cs); int loongarch_cpu_write_elf64_note(WriteCoreDumpFunction f, CPUState *cpu, int cpuid, DumpState *s); =20 +extern const struct DumpCPUOps loongarch_dump_ops; + #endif --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021629; cv=none; d=zohomail.com; s=zohoarc; b=kKRV8qvERcCbPYr4C/racDSKEeP62jpns2kz1PTq9R7YHDmma+eRtQwgVAlZS+xfq9N41AOBCi/qBe2M0DWqniThK6BHT5860B0FAYF+3RvW/3vyJ6WEkNE2xsgXq7tthsof+j9wewtzM1lGTVR+QM75EZ1DMChvh6w3GtEPXsw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021629; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hIHJIzhKQzz+XxbGJEJ4fAADKXjaVM4j4u15jHqvEY8=; b=YmpaOp7Kju2B8bTuQsehD+ORNARkHO54NhcFjdFwSuYjqHhBSDzdfM1y5Lc/ELzjhw20FoS4RM72Y6yi0H4XYmRoBVfXFmWovs/68GQnwRoEeRIpXZGBN8/OHZCjIXCCcbw31MxfaLIJ9T7D8162uHKQ4jWaYil/OT47O7gtH0g= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021629641937.9886009302198; Wed, 14 Oct 2026 16:47:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g7-0006zf-K3; Wed, 14 Oct 2026 19:46:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g5-0006yv-RN for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:33 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g4-0006RY-8c for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:33 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EM1UFx152725 for ; Wed, 14 Oct 2026 23:46:30 GMT Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha7aek3uc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:30 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-3552883bd19so8896833eec.1 for ; Wed, 14 Oct 2026 16:46:30 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=hIHJIzhKQzz +XxbGJEJ4fAADKXjaVM4j4u15jHqvEY8=; b=RPCg4ZCA/3Bnz1oYvdiQdtrHRPN szm9x/QBhrlEMGrBg/MQs42bsqKURfWL48RGhVDZ1zlAQf14O6uJxiHiuXzV1r1G cwb389GtfOwYQ9YHluHgbV2w2MMt1nT5ElFHJNWyh+HRZzeVlpF98ag3GaJYMbJ9 jAKxTWaBtqQ57ohXFIf6SQXhp3G3aJUzQWHt/aK4PRQUfKUKC9lUKcbROUcrOoi2 75bYvh8gdbXIxPWeMhI2LO/Xca+W4IkXJYrpDj9E07iQjT1DU+HZDcRFNmSnPBRm zIC+OORt6O7ufUzucssH/OjqJCDUXNWi6I8iN/jfaxeoGLTncco1OixNUoQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021589; x=1792626389; darn=nongnu.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:content-type; bh=hIHJIzhKQzz+XxbGJEJ4fAADKXjaVM4j4u15jHqvEY8=; b=gtesFGxji7gM+8jTl/honAFFBvl745J7Gsb5FL/eCS6sXsVWlq5wII6EzDmyfxmrGD qYCe1AB94GIx4odQGF1Icb5qHOvrsOFrueCe8CHxcDTGei+J9sSbnReJ/338GxT0nUFX xkPFlZfyefiUydVxvoL4uA+AmnQMjlhc3zy6+OS8HA8Jim/SXrKvxsajrqNUMzx3mpSz cDkrVDvOamPj4pNuc6yVOr7mopVnXRYhHtYkQ4ZRDxTwmL00LH9AXLd/Gbu3arHz/oOq VbGzsafMC1pENSOfgCyy2BnXRu7U6doegaPCzgOd5EDkG5TFviCjXcBGccBPi1zQTjF2 uU0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021589; x=1792626389; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=hIHJIzhKQzz+XxbGJEJ4fAADKXjaVM4j4u15jHqvEY8=; b=pEPQC0rd+sGZzRKxgMEUehyh0obsDHL67PiBIcut3pTW63Vbh+pvXEjQ4b1+5FkGfg JxhZ7Ur/6nowL3T4Qrve61vBMb8fzwFJcQYe1ZIQWg2uY1p6s+wz4vEZcEyZxNpB/0cM 024Ab5NrY4Nx3ElFRI6Ntj0qTN2DGcahzMwyEZzcXM6NMRk55mZWbuIIfGgwm4r0Gnrl KcJYX42EtkfOpDh8CRGyG4eDKzelJVCE0l8/nvzg217oIAmAySFkf7jYvL2wy4VbdpLG bF9H3QguAa5aJ3dGkR6MP3ORUWnCyC7ymZCkQlo9xubTp8wzlylNczvFEa9YeESQ1Y5A hKAA== X-Gm-Message-State: AFq9FYK79A6vJ0SxwERaufWa7UmMqeRGcG5fJZEZbfT+hA4aHFVxnS1o BPwijU7p+OaNu4LKybFByL8O/XlaiZXU6gl7MPQzmk/Nu0kCLepkMy1ul8gYhc3/knmoFvJkha9 IdzhHkUXdQhsMQJXbILlPRWcsh3LklEIVpwMPd3jWX81g+2wLBwk/vqdLZD7Fizg3SA== X-Gm-Gg: AYBFou3fB1GZ53oIzU7p0Vh+TIrage4EQS6dtQHlGv+BUGjlHycmHd9a8vERXSOXR97 fGoGFSPlie1web9bTxOy7SwBItN0/EGgAi2M2qb9srTLWD8OrvuKY36yH9B10pijZW3qSDJPkUq DMAnZqV6TsnE98BuBRienrk2YDkPhLm4iwznK1KwMWpdQmELNVPPENeSCQB8UnRVCx1PxgydeX2 s8unxBDS4gSKqCUH97tIoX0B81bppghf+AK04pFsxvIB70bewKs+8xYwhCJhrDlHmasTqq3tmzr VQroElR3P70klcHDr5k8Kdwa8KRaMzXZTLNht1yXN/fbpaN5LzrN9SjCFjoY0Zr/P6MLN5aAqYU qB1KkhS9/IiSInm442wICBKooHENOpJgCfGSrvjXH1Ox3BKorGzo1Z5h86V5b X-Received: by 2002:a05:693c:87c4:10b0:356:4b46:9393 with SMTP id 5a478bee46e88-3564b46940amr20546115eec.24.1792021589241; Wed, 14 Oct 2026 16:46:29 -0700 (PDT) X-Received: by 2002:a05:693c:87c4:10b0:356:4b46:9393 with SMTP id 5a478bee46e88-3564b46940amr20546085eec.24.1792021588466; Wed, 14 Oct 2026 16:46:28 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 09/19] dump: use get_dump_info cpu dump op Date: Wed, 14 Oct 2026 23:45:55 +0000 Message-ID: <20261014234605.209084-10-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: YfBydrEJpL8EHxCubWOqZwRd3EmKaRZG X-Proofpoint-GUID: YfBydrEJpL8EHxCubWOqZwRd3EmKaRZG X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX7FdYFh40g8H7 14E22i7U2N8yxB5Im+Yl4y1eY8k726YDgN62D27y+5EHk8/i6+0cbImDOwf6kDz+37tmjxxy//3 p6s6CdwpeTGYalX81KGO7AbeB+B+DeE= X-Authority-Analysis: v=2.4 cv=NctzRGD4 c=1 sm=1 tr=0 ts=6ad01456 cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=NYN0z9OFfclgqhKjobcA:9 a=bBxd6f-gb0O0v-kibOvt:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXzdc2Tvrc0rS1 wmRDx5BhaKSAqgfQaelNKkQWZXZIeV25S14yz2vurXnRkUpsnxzcy0UfSYQp+ngfYAkmYe4tRoG mpD/A2qcW5RRSuXxfDD7QYUj3nofCcHJCLbj5EQHfksKu6r/xuDyrzoVkLa/jx4c0VUncv//uq4 8TKSPOCy2e4Nm99bqPY+s1YN0ha/btbDffSDZdFN/ReaManweO7Bl2sc44rMa/0vEFMWlRTAPl+ 5MWA7X0CBJXUaXUYeyMsw7+Y2ouPlpHNQFlt2Fl4FmTqdRADLuJ9bnj0n4v5FS86YjJikxjN6o/ 8enOQFRobDhCwRTTdY3B004lgEBQBKuoqgXRlhZzdp8LT+OcaZg1V3POWJbdwBCwUzGtF6TrGcJ JeKpkTlOpqNmoYMOfOMj4kaMZzJpmq/dItyFbZXRqulXWxuTz6DxRTkidxto1mZT1Y1hjizLrun nfv4Mf0eXBUFWO8U08Q== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 impostorscore=0 bulkscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021631722158500 Content-Type: text/plain; charset="utf-8" Now that all targets implement this interface, we can replace the cpu_get_dump_info() call with the new interface. We still pick the first_cpu, which will have to be adapted when we introduce heterogeneous emulation. Signed-off-by: Pierrick Bouvier --- dump/dump.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index 52be7258a5d..a08a1eff3ea 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -32,6 +32,7 @@ #include "migration/blocker.h" #include "migration/misc.h" #include "hw/core/cpu.h" +#include "hw/core/dump-cpu-ops.h" #include "win_dump.h" #include "qemu/range.h" =20 @@ -1793,7 +1794,6 @@ static void dump_init(DumpState *s, int fd, bool has_= format, VMCoreInfoState *vmci =3D vmcoreinfo_find(); CPUState *cpu; int nr_cpus; - int ret; =20 s->has_format =3D has_format; s->format =3D format; @@ -1852,12 +1852,16 @@ static void dump_init(DumpState *s, int fd, bool ha= s_format, goto cleanup; } =20 - /* get dump info: endian, class and architecture. - * If the target architecture is not supported, cpu_get_dump_info() wi= ll - * return -1. + /* + * get dump info: endian, class and architecture. + * If the cpu does not support dumping this information, get_dump_info + * returns -1. */ - ret =3D cpu_get_dump_info(&s->dump_info, &s->guest_phys_blocks); - if (ret < 0) { + const DumpCPUOps *dump_ops =3D + first_cpu ? CPU_GET_CLASS(first_cpu)->dump_ops : NULL; + if (!dump_ops || !dump_ops->get_dump_info || + dump_ops->get_dump_info(first_cpu, &s->dump_info, + &s->guest_phys_blocks) < 0) { error_setg(errp, "dumping guest memory is not supported on this target"); goto cleanup; --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021702; cv=none; d=zohomail.com; s=zohoarc; b=mCWLeHtJOAmVu9x00kjnGNZk64cCmzCzWJbg2dnW0EFyd6ki+S6zzT3w0Z+x6fFHPsc3d/bI+NKAr5HJ7xjU0upZKFJqdUbu0NneK52qkB0b00nIWpUwDTgAO6SdAlNI+21PPUsZGedRLuMFRjiSfhvoVN3m+ZgQQD/ZS2d8mOU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021702; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=+b5fQyS8dsc/DuuZs1974uIxkiflgijm0E9EJPhQW90=; b=A7iaZy2amlBGVAqDmjdaxRWGNiujuQOqffuBEKtmLJO+It1AGwkwnG2DLMLe92t8e9zFbLuXLvcF826mJi3LQh0cXJxkBjVkzdu4EZN+TQ4f4BLv4/MUwsbucYlmE8wFxd7kat3VFCXw1lmEd+O6ChFVZkkRRSxMERzD1cXyzZk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021702929287.29046751483713; Wed, 14 Oct 2026 16:48:22 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8g7-0006zb-5N; Wed, 14 Oct 2026 19:46:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g6-0006zB-1G for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:34 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8g4-0006Rg-8j for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:33 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EMXIkN905400 for ; Wed, 14 Oct 2026 23:46:31 GMT Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha42p40gc-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:31 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-35d4538fd74so4579578eec.1 for ; Wed, 14 Oct 2026 16:46:31 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=+b5fQyS8dsc /DuuZs1974uIxkiflgijm0E9EJPhQW90=; b=bp6nA6VTdJ4ZLhvYTNsnJGmq10K JMsSstqjO6gWFKJZ7R+THpkfXVyA9goqUS4lNghp7bzVsC6+i0aaWfU5GhvUmwWg ybKCG/EEBEqFYTjN3cM28HNSpqsEhWp+kUpJ8rTGh1g+MQfemq448YSkHYk5QJ3w eZRGq2FDhzKlF3LqxAZZpnuJJ8ZKCJX0rY+DaWIr6ZSn6NAylz+kU94Mf69lKrvj u8SPV4KGvxtvnR2AQ6gf8rW7TWjrgHkmsi2l5sLFj1WGHBLZcwXKdhuc+5DKzaPG nQC6wPlZQk8rg4WE5gUjPPldRUXgRHM3bHD6W0TQTN0ZfUdPetaCm1e77oA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021590; x=1792626390; darn=nongnu.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:content-type; bh=+b5fQyS8dsc/DuuZs1974uIxkiflgijm0E9EJPhQW90=; b=NU+8yUV4x7yFfQU21/aLMkO+lCmtAHNo+b2/j92TLvBtwcBplKg3KX6gyJuvyDx7oH g/P1+U3IfCaXp4I+Q94OSnW8iTWms4pYGTRUDIvz3oYoF8Uj+yv1qQCaVqBmqh8/G56v HdnI9YA0FWNeRU0cr8mT/TBwGNcnSxuEOGx0Rrtd7fXimy3PQ7lPQP2hMHykP3U7ObEz K3ntCFWH07Zc/6or9ZpV4l3GFJ42KJhglNHXjU6m5ef8RX6ZQLuMTTmACHRbe4KJvb3F Lggm71CuW4CnDHW47YONyQhRTDmXYl9Lue+4aGqGKQviiDnbtUw4FxQSWMot5b87uLHw U3Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021590; x=1792626390; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+b5fQyS8dsc/DuuZs1974uIxkiflgijm0E9EJPhQW90=; b=se/LD+IXAs2ZBhD+Ge3eQtQQt+brWKtnKK1lATkamtdFh8BlCfX6+7qsrUkh3/h49l QO6EksQEAEiykdctKSig8bc9MnivM+oWOoj9LdhXetubq1acx6smJdFNDtnsiFMaJ76j JHQgMwG26HNMvnp86Dqr7DpgGu5uhh6XGCNz6Yh0syzVCT2kuGZNA04v2N+86+3Pvn1T d6s+590qFKkAnKR008bokkiSYphZ/uuibs34TsLJius7/QPsQ+YSCQfD96ZG8lMGUT6B lTYgGP5o6s57Jw3+LRpFYeT7w/dR6hjUwkVGf+VPaO1nNWY+hzAZZS94MKt5pxkmsa6g CteQ== X-Gm-Message-State: AFq9FYLVc7lTBmgZmn8SfFgE/6jO91bn5bz0sxTIJRDszXKY0NFihulL R13qF/xa/ikrQHpE62Y+is7VH+inJKgEgoXJ4NnvKC/xlIKo4NXdn4OgMQVGdHcN2QOzB50fvfI k2VKdU6FFzyJHJZ2+8u/g0fdxvIW2qwBV2dWMLKVpG9RV4uhsA2vQW2lrWOdFFvGYqw== X-Gm-Gg: AYBFou13xUwmElwvEIyCHocxmV7FqWsWOQC9KLT+UASrsOLBovC3KTfDvV+kcjglBt5 FtpV9ke4JusaziWVg9ZYVIjcHsJwbrdKB6J54g0os0p4d4Co/y4v0txxascgKGmEnAV2JgrCDFC G42wxOQQalIV98bfh9QVHbRjc+JosjYDziw+hh5RqC2Ixprf6DobwAyurnbzvf+NtyxOu3KtUXX XACeVT8ODHnk2iP+TK1zU/vlWgtRAL/VjUDKL+JiEefB5h4gYvvLlH7/2n7KuF6oTx4SpFv5gST bdzZmno4YXoYSw/N/cT/sHqR2lF/t4KmKKpBe7H4ja0fqCrLKZkdGhNjYULWjDjUTPJp6tqFznB tX9ak0xXCsi+FoKUvuU9N/MnorPTi29G2JQtzek1EMTG7+7kz4u/PWZxG+yrR X-Received: by 2002:a05:7301:103:b0:35b:9f06:e383 with SMTP id 5a478bee46e88-35b9f06f66dmr11153612eec.8.1792021589942; Wed, 14 Oct 2026 16:46:29 -0700 (PDT) X-Received: by 2002:a05:7301:103:b0:35b:9f06:e383 with SMTP id 5a478bee46e88-35b9f06f66dmr11153583eec.8.1792021589353; Wed, 14 Oct 2026 16:46:29 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 10/19] dump: remove cpu_get_dump_info Date: Wed, 14 Oct 2026 23:45:56 +0000 Message-ID: <20261014234605.209084-11-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX50nVfrSGJiR/ Atnz70lbFPuEwRhH9AI9XagEKnPjrGHeXWqrqXTsHYw+yX/mwKms8XP7wym8FDXMneauq4Xblhb c5tU7wdhDhXg/kHtZMCLOQn7uLielz0= X-Proofpoint-ORIG-GUID: KkQRDAHPcOu9zyKlp7DRECBT6jZV-KCH X-Authority-Analysis: v=2.4 cv=aeb0Dhot c=1 sm=1 tr=0 ts=6ad01457 cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=r4JKK1H2Wlg2EUZ_XnwA:9 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXzBOm9Y9quTaX Nzh1fV8zJ2qt/CuugEzFLNAfHSohWM8t8NUa5B864bSny69eHC+9kjd+pGa6Xkb8T4uprsvQy0r nWg353qbDIYokG/dn9i3xzFyhy7EtKdFsSjH2dMDfsl1AEdgUwUYVAl5mWh8e+G5a/9cMqIBTCH vx0QmzbVRO4h0eXpO7XRtJuPiotn4xlknryDHAsmaA16Sss4O4e52ZvV+f+fZF4puWF+o0ZynTa eOLcWEXq0cu1Ko09XPbUK+7gmf/qP2vhTihs9gb++s37Zh5asSa+WCAHNK/rfZvcPQne/qLuC21 Frx/8oGbDVkAJ/uPl7z5KacymRoFq1fa28tbDRGS4gIvcO2jSJJZ8QtPnpw/9rsKJs3QkwSaRpx MGhl4vpCJtmIqY3ynMrpwH2Yrj9XHPh+YMwzDU+3IO3qkrZiC1j5EeHTH3UmCELbBb0wB6sUDPZ RNdRAyzCTh+IJSvmyHg== X-Proofpoint-GUID: KkQRDAHPcOu9zyKlp7DRECBT6jZV-KCH X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 spamscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021704937158500 Content-Type: text/plain; charset="utf-8" Now that both cpu and the dump implementation use the dump ops interface, we can remove cpu_get_dump_info, including its stub. Signed-off-by: Pierrick Bouvier --- include/system/dump-arch.h | 2 -- stubs/dump.c | 6 ------ stubs/meson.build | 2 +- target/arm/arch_dump.c | 10 ---------- target/i386/arch_dump.c | 10 ---------- target/loongarch/arch_dump.c | 6 ------ target/ppc/arch_dump.c | 10 ---------- target/riscv/arch_dump.c | 10 ---------- target/s390x/arch_dump.c | 6 ------ 9 files changed, 1 insertion(+), 61 deletions(-) diff --git a/include/system/dump-arch.h b/include/system/dump-arch.h index 743916e46ca..7cde5e27ce8 100644 --- a/include/system/dump-arch.h +++ b/include/system/dump-arch.h @@ -28,8 +28,6 @@ typedef struct ArchDumpInfo { } ArchDumpInfo; =20 struct GuestPhysBlockList; /* memory_mapping.h */ -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks); ssize_t cpu_get_note_size(int class, int machine, int nr_cpus); =20 #endif diff --git a/stubs/dump.c b/stubs/dump.c index df7897b72b1..2ce3c5e274d 100644 --- a/stubs/dump.c +++ b/stubs/dump.c @@ -14,12 +14,6 @@ #include "qemu/osdep.h" #include "system/dump-arch.h" =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) -{ - return -1; -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { return -1; diff --git a/stubs/meson.build b/stubs/meson.build index 29b6644b254..94b83188667 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -71,12 +71,12 @@ if have_system # adding more of these. If the symbol is used in specific_ss, # in particular, consider defining a preprocessor macro via # Kconfig or configs/targets/. - stub_ss.add(files('dump.c')) stub_ss.add(files('cmos.c')) stub_ss.add(files('fw_cfg.c')) if igvm.found() stub_ss.add(files('igvm.c')) endif + stub_ss.add(files('dump.c')) stub_ss.add(files('kvm.c')) stub_ss.add(files('win32-kbd-hook.c')) stub_ss.add(files('xen-hw-stub.c')) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index dcb0ccc6cc6..ac84d4ae252 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -437,16 +437,6 @@ const DumpCPUOps arm_dump_ops =3D { .get_dump_info =3D arm_get_dump_info, }; =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - return arm_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { ARMCPU *cpu =3D ARM_CPU(first_cpu); diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index a8e74e6b24f..301f6252b7a 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -435,16 +435,6 @@ const DumpCPUOps i386_dump_ops =3D { .get_dump_info =3D x86_get_dump_info, }; =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - return x86_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 5; /* "CORE" or "QEMU" */ diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 83829a96875..6bd83b4be61 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -157,12 +157,6 @@ const DumpCPUOps loongarch_dump_ops =3D { .get_dump_info =3D loongarch_get_dump_info, }; =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - return loongarch_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { size_t note_size =3D 0; diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 69613ce82a8..0b2e6542ecf 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -257,16 +257,6 @@ const DumpCPUOps ppc_dump_ops =3D { .get_dump_info =3D ppc_get_dump_info, }; =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - return ppc_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "CORE" or "QEMU" rounded */ diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index 7086d778b8e..ed5be83cbc7 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -187,16 +187,6 @@ const DumpCPUOps riscv_dump_ops =3D { .get_dump_info =3D riscv_get_dump_info, }; =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - return riscv_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { size_t note_size; diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 19810dcbae8..716c9606d26 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -474,12 +474,6 @@ const DumpCPUOps s390_dump_ops =3D { .get_dump_info =3D s390_get_dump_info, }; =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) -{ - return s390_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "LINUX" or "CORE" + pad */ --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021679; cv=none; d=zohomail.com; s=zohoarc; b=n0mn9M8Fp7TThFhHJ/1qlMD4anhVgbE5KeDgP7mdJb6mJSUPLztkO5oYFdoRB6drHc01ABJCfQLr2/wJ2GTbAqVTeb+pN7iOI7CYpSAhqqF+FHTnywvHQBzdm6deQkQeYj0LezG9yLYQ5CIqoznf99Qz8GfbcwXrrnzvTiPusZ4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021679; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=9LqmaQlg+l8VaD4sUWv2elLsUOCGYayUxvY0jf79DRI=; b=cm0Mb92PJLwmKrGmsx84dWGpuxF+yx0CQYB8wSdZHiHZs8p14+yzA6OGt/3V0QWXwbGx1+si1X6+ZtaFqxGg+nPfIzvcaD9xPItkgwcZuoprMKxRwrktiJczHr+d5Hi1/gsDs7mKdSsKzzzuNUA2d5bPRr8ADUy3QxO7CIARdBo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179202167933354.9834871751907; Wed, 14 Oct 2026 16:47:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gH-00070o-Bl; Wed, 14 Oct 2026 19:46:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gG-00070Z-3v for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:44 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gE-0006Rk-Ou for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:43 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ENLwLs1013129 for ; Wed, 14 Oct 2026 23:46:32 GMT Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha80ctuk8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:31 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-33713e5e6daso6890282eec.0 for ; Wed, 14 Oct 2026 16:46:31 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=9LqmaQlg+l8 VaD4sUWv2elLsUOCGYayUxvY0jf79DRI=; b=IYR55xDyl5YZLYga0pXLheF/rYW qIQEKBBZ09LtmfdvipXz8OODnfQFH3BmL2n7txVEg36w+QOdK7Ja0B3HGvYgjQAp sHDtMAD0cxnFvuj+BV98qgCi75V87K6qvgInnV5WwxWbGa6ia+USt13NvWIlsfBc 7OHUnu/y1N7MHEUNBeMPa+VnQFPvKZgNk8goJ93RA8sgrdHub3+a/vpdL1XFWRQi bcfsHMLGiNdJAMV7XcKhHU11gDeE53Jj+LK7Ue82m5rfL8GBLCvJeb6Vl5DXhbPX jJkuOyDkF82a7Voat+IyphEDmdgfSyoA7eAp1K7EKgrlYVer3s3m1ykhjJg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021591; x=1792626391; darn=nongnu.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:content-type; bh=9LqmaQlg+l8VaD4sUWv2elLsUOCGYayUxvY0jf79DRI=; b=arHg9x5X3Rjm86hu7MsFNUot6Ra8hztRRy50HlY9bEiG3N/MHaeZ3gk6GD8lQalZRZ ApXpXz7ng5DBD0Mq+GzzjDQQRmngqdNVW2HVD26VqSQ/M0114DyIs2Zfjp/YeN1jEJ7C 3VpiLhqI9BfpLdmEtad/wW3dtOaEcnC12wFhJGChc+pmonzv1ZZ1cv1h49Zb/APT4s8S ARmx4VhTGOwjFrnFJ4+9ZrjwcRgiP85QgAG93WWjKrPT0rWDze8YsHlBzjCrqvoCSOuO ZdSGRQzldJQLnXe4y5/49I/HM/guYSnA8/VK9brabkPOXT1lRfoBLya2sVBD59V6MaWg I4qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021591; x=1792626391; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=9LqmaQlg+l8VaD4sUWv2elLsUOCGYayUxvY0jf79DRI=; b=e8fPEgEDoXVL4SCDekxDS96oBaDN4ePqtoi3teNC+viK447q0pUa60BrdfouzgVAJD ETnnEZDqQ1yCZs+7YP1pl8i0OfE/VKNgR4omTyxh5ttBdozoxR9U4x56H1EBumiD5+H7 okq3azVJnncmLh4MlrP62LbvgeckixnmOqSWZ/Y6bDTPsYSbWC2E4039HPZ6quvad1Qu AilRb9Mn7pnFUI0lsXEl+pj09jZMHH17S1sfa4WubO+2Z+SfzaOuRa495y8vQDv8V9nH pqWic+rKrqLMYxjWvY8t903ZYp+8u4s778o5ZsJZ0L7oXFbiYGV5niBXZZhXr389Vxk6 tj+Q== X-Gm-Message-State: AFq9FYIq7PEb5BSxEz2UcBe1wuFCiiBX+vSoJSP1i84OMgpNlhyx7LPa kOLErB9v+VDGMM8Tss5UTAGFmowFx3aaWT7lTPid6LnOACGLzo763cs92KQW8zxz/1qfBTGzTZO 3Js60Ag9zpm9ITEaJHQS+JlkwVQB0mzHljuMjhWF8kO+ZqMv2lVgEZ+SfZjM+wvsPeg== X-Gm-Gg: AYBFou1hbS4+5QSW/gPYudESmdeEnLDxzoCFuJX4eZ2xMhJbN1U2tN3Nfxx5ivjEwq7 oAe//+8eccOSU5cAobHWq+54mKTxI4Gx/eWTvdlxpuvexUEi00+Ew838rYbLC0foz8qqT/PzAEq uclQL39zavBjqrQAGeEN9864Yu2qNvKLWEecg9VSbUMpmoWdiI9xpmqCnO+aiR+SliMHbvDjdjl w7JJOlgBLEbawYFgNXE8ZcLRL5DDMrql02YR9+LuTHrwQyDbedEd9JIm2DlITlDdXS9CAWJirCm pCKDMTl6V76c8DRxWmo8fOvxnBHbQmFl1zf02a5fiOGdLtzxHXbRYrIUsGJGhnqM6qY503qI3Eu MK4/8MIcf5AwIwJOEfYVn000gqVNk05JS2/nUznF3cVAX+GpH+tNQiFyk3wDx X-Received: by 2002:a05:7300:c8c7:b0:35f:4780:518e with SMTP id 5a478bee46e88-35f478052f2mr258785eec.16.1792021590809; Wed, 14 Oct 2026 16:46:30 -0700 (PDT) X-Received: by 2002:a05:7300:c8c7:b0:35f:4780:518e with SMTP id 5a478bee46e88-35f478052f2mr258760eec.16.1792021590266; Wed, 14 Oct 2026 16:46:30 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 11/19] hw/core/cpu: add get_note_size to dump ops Date: Wed, 14 Oct 2026 23:45:57 +0000 Message-ID: <20261014234605.209084-12-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX33cqqK0FE0aq AiKhyjj/TSORBc6qrC+QWDgMFpbN7rto63FqSF1WIj7rTwsOujMCZtTi680dbK/nhPxkeXuSJUZ sN6J/IQU/BT7DA024lcC4NXNkU/rBgI= X-Proofpoint-GUID: 8lKCyVY0iAdxmM7ZxcAscNZBJXX2nkRK X-Proofpoint-ORIG-GUID: 8lKCyVY0iAdxmM7ZxcAscNZBJXX2nkRK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX0bcLXGe9MlCg yCCWKVR0C7IYsIE5ARfrmzmtfD7knFaHY76hh+4Vyug4G3N8qhociyP/H0c2J0AcWSZk4FuJnom sOfbISHWllLXOM8ESJigsZg9JFIMJQ8NbFhi2EzVgL5ymv6qAvUSFc2u+zV6eDGKmFi5I3vKIXV OnyZSz0muNJMIgeA7EqZ9STsBPja8PhH11H54r68kYSyWdkPyDLpydS+c2dh7O+lE0/cWVFomnZ 65p6ut9TfAMoFByWjplfAErfFu0ixc9oXPvdV4K8rqJlaBtF23Yki1BQqvtvrOgMy8eQxPBkZIF TwH4TDP8biC7hqBtA4Gtuzp/BDQEaKkbET6uiByFNBOVbq0fF35ioUk9MgXVMeiZKO5N20CQu2y luh3CTDWcMWeGflzZUdSAUnxu5ByByjc5zKo+eNXEnm3jIpxCbtnX0eb3onyHUAqdNtIYyUJ3nI gALEfptRn7Jax7cUFmQ== X-Authority-Analysis: v=2.4 cv=JegpPkKV c=1 sm=1 tr=0 ts=6ad01457 cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=HQk6ys_xUCS4XjCNjwAA:9 a=bBxd6f-gb0O0v-kibOvt:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 clxscore=1015 phishscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 lowpriorityscore=0 impostorscore=0 spamscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021680514158500 Content-Type: text/plain; charset="utf-8" This allows a specific cpu to report the size of the ELF notes it needs to dump its state, alongside get_dump_info. Signed-off-by: Pierrick Bouvier --- include/hw/core/dump-cpu-ops.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/hw/core/dump-cpu-ops.h b/include/hw/core/dump-cpu-ops.h index 5e8a89cbbea..d9716a72529 100644 --- a/include/hw/core/dump-cpu-ops.h +++ b/include/hw/core/dump-cpu-ops.h @@ -19,6 +19,13 @@ typedef struct DumpCPUOps { */ int (*get_dump_info)(const CPUState *cs, ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_block= s); + /** + * @get_note_size: returns the size of the ELF notes needed to dump + * @nr_cpus cpus, for the ELF @class and @machine reported by + * @get_dump_info, or -1 if this is not supported. + */ + ssize_t (*get_note_size)(const CPUState *cs, int class, int machine, + int nr_cpus); } DumpCPUOps; =20 #endif /* DUMP_CPU_OPS_H */ --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021694; cv=none; d=zohomail.com; s=zohoarc; b=XErgZhlY5QF5Mx8oncppIuePgaBqXFNGAHbkZFZ+mVlxLnHM1c25x8xpyElIV3Xw4u6w6y7UrlXv0FJHT5aAXHbagQVIGA91mjBzNVnMKk7s+3sy8TL2abcbFDCn5rS60oRtZmRBevBcs0FrMAlxe6mXhsycN6w3Qq84AhUjdGg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021694; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Gu13DRETKgL9SxYFCDDDKAcpmoQd7w/9pW2GM4OsO9M=; b=APMyuVUc66DO/Q6Ah3+YuPnNTr7QIP4NJdyvewddr5fRV+Kfc0jTo0oN/aNPSRdIoL9qNA6ibEC2ROIfblIuobMSwJ6mfXnKozUWIe8IE4eXA4O5SkduaD/vCdAAnrnPNx1zsduwUXkpugPq9gV1AbadNdEbzo+tjRP+zwTHQf0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179202169406428.876813904132973; Wed, 14 Oct 2026 16:48:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gI-000717-Lk; Wed, 14 Oct 2026 19:46:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gH-00070x-Dk for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:45 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gF-0006S0-VS for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:45 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ELoGHF152402 for ; Wed, 14 Oct 2026 23:46:33 GMT Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha7aek3ug-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:32 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-35cbea41088so2261769eec.1 for ; Wed, 14 Oct 2026 16:46:32 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=Gu13DRETKgL 9SxYFCDDDKAcpmoQd7w/9pW2GM4OsO9M=; b=iKNvkhjSCdVfI8oV0+pWQxekNKR wturvlhRsBZmH1hXVdqvrXL/xomIUH20wd5kPwQ3g23BqVIGrvj3cXbEtPpIRpIZ kCtDva9x5xzYN3p471XgRCY5O6LJecmJWRLybT6obPgzQ36ZtPKESYyjP6xxE02D o1XiayZFpiaxdWAQM5rFNrvDnQn3wCQRMAdpd9oQeZqg5BsLW7gUmQi+rdhaYJW5 umjV8yUuj070fyTtcvJYgQS1AphsUr1J++XkeCcj6PFKpmSVz0BOoP7/k7sWCeQS zGNnabQy5ScUUy9cz4+j/QfSFVXRmbYFHBf60y+8K2Q1M0/7vu+va/1SdTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021592; x=1792626392; darn=nongnu.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:content-type; bh=Gu13DRETKgL9SxYFCDDDKAcpmoQd7w/9pW2GM4OsO9M=; b=C3AzzfotjQqDYg89tekhY9jFc3w6qr/AESNZQ2M6y1vqEiHdIBfDQvnfKSoWIHFfMr 3dciy3+pPxm1LkDiwOaZf/KbpBcjWw8zyY62Zar/UHC1U61MT8xlBCACJKhwzRcL7K3K zko5wyUFn2+AxKUTdgUYh/aP4Ck+DWKIhb12xE/cfYwu4CC/yZvZdNFb/l8HEQyb2xFN P/znQx2J8MyM7Q1Bcc2/ANBwVTGR3iHJ0Q4YXXgyCWEYk8X9CI1W9lc67NTE1Wb4jnEH FrDAo5MclNezQ2xOBc0E5ZryPdMya788t1YEOpJRnUexEtj2oTAAYCXQDv5GSPkVZcvx Tm3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021592; x=1792626392; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Gu13DRETKgL9SxYFCDDDKAcpmoQd7w/9pW2GM4OsO9M=; b=0X4emsj3GRP6WtskDE99qxGFfx4jxFUok1yF7lViuVQDWoON6Gwdz4/nxaOEnF67bU wWBB7F8KUNAJKtS1f1asCR0+YxWWFufyp7Zgb/ePkYwai6zWIGecn+3xztiqhXywHafk bcSTG1Ui/8Pa1j8LY6hh6+RrIUoYh67gIgIAJo0fIERxuLRu0YqYOhsEsfYQqV0WLcgv g42bYI1rpvC4HeDFUr51lbTeB597jbFxSefwAmxkjAsgaTz9oSOYRgno3v5SUcRtmekP Ks39Fulh3d3uNu1IL0jTvyAhqCh+iP4lATbqNmZYa3v25vos4x9ZOeAiuZceC2VIc2qR qdTQ== X-Gm-Message-State: AFq9FYLtrsuJpqAzu4C0HvivEyqWNswktPrLSlYcTRnbHIj/pPcdF3xY gLXJAtVR9LEZ9aKgwdXc81nUtvDUEYEFxXAdFnIcgWtvLxxihwHRnv0p/sx/DTKvnDQRqAoxx+P rRgtFloIHextmp0A691VdZ310sDE3EIz4Pi35vr0Pp/15T5FpQI7RUzPEAQH71aKrGQ== X-Gm-Gg: AYBFou2Z3WqcsveQciEWJ0QjtuUgPdgS1oi9ujSYK8jBbl+KcrYRA58O5rmLs3uGFeL p07LgP8S5dgNrcKNwPTjOXfV+QSWIvHu/UQscPsuminXm+lh5dxYcKeOuuafpPLTGiaWoP/gSHD epMKf8BqE47nl9uE3LnAAaVrUZhNw44g5rrOQIoBU0dBJeR6QW/9EdBW3pY3l9mSWcVhhyMF2HJ klU4RvlGt5qSHNJMi4nx4yW7WB4DGY5xQdVkp044a3QS24ktpOwmTOps4BUw0bWtBjYolU0Br0w Yv5NjCQhgcezpgsGdKJRReW8tYkc3avtl68WdY/1sNYIz4k6t0N5ReeqlIJj/HppUoAv1eNTNOW CgwiwrHvf2BVYbmV32qgLXXeAET8vx5CoHC9XK16ticyUUfnn2K+AQnKyhAYV X-Received: by 2002:a05:7300:6d23:b0:35c:6ffd:e91b with SMTP id 5a478bee46e88-35c6ffdf3b6mr11739651eec.40.1792021591883; Wed, 14 Oct 2026 16:46:31 -0700 (PDT) X-Received: by 2002:a05:7300:6d23:b0:35c:6ffd:e91b with SMTP id 5a478bee46e88-35c6ffdf3b6mr11739618eec.40.1792021591338; Wed, 14 Oct 2026 16:46:31 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 12/19] target/arm: implement get_note_size dump op Date: Wed, 14 Oct 2026 23:45:58 +0000 Message-ID: <20261014234605.209084-13-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: a_GyF06b__w1m-IBL3E-7KTorrvDXNP2 X-Proofpoint-GUID: a_GyF06b__w1m-IBL3E-7KTorrvDXNP2 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXyq2X/7NcKAIw osd2FiJ9J0h1cgI8nsLx1pxaN/nJSMXBjqMlCTfqcw9FnNlx1Byr2JSSmTpGz8MmmqF4t92Og2R yj3HYKMwBooaCYkk7lia2sgiUF4bzH8= X-Authority-Analysis: v=2.4 cv=NctzRGD4 c=1 sm=1 tr=0 ts=6ad01458 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=Xo5U2CUVsYYzsFFI_WYA:9 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX2gpoDR082N6w 1/RjBg27ryJbSO0T8VMb8Wj+Vnxx7A9DQycqG6VDkZOY1CZ1CPqEn9aA4M4youWQBeeS7T8BE4P vjJh1bJRY/x2T9yA/YZxAdXHdlwpUd68oC6sJBRgK9+uzrTJd3aTcf+W4jrB864528SjoRvQ7I6 be/Ao5mLpJQWrNSn6grEMgHOALMlg0dI/m11LZLjyVkbnTtc8L4tT+p8g6xxbFQ0870unTKJYzO bn6UAwKivM64lvWYnGikrQ7odfDwBZQVoRk7tOkpxTCaXjSd2nQT8tMe+vedF1lOfvTHATeS/LX pTK021QYI1psjn3LlrQ3oVaqI4fATWtT4rNGZRgzgLNCCXIILQUV2r0WmGk5sZlrGxAJdlVjAGa ifRn39mChxy5B8vOZ69Xa4hdtmY3l++A4dFzcImROGR+UHjnnYvUooD7qHcQecnfqLwqJU7bs3Y ExOhBAdqxVGvBH4vAJw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 suspectscore=0 lowpriorityscore=0 spamscore=0 phishscore=0 impostorscore=0 bulkscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021694718158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier --- target/arm/arch_dump.c | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index ac84d4ae252..3ca570c1c29 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -433,13 +433,10 @@ static int arm_get_dump_info(const CPUState *cs, Arch= DumpInfo *info, return 0; } =20 -const DumpCPUOps arm_dump_ops =3D { - .get_dump_info =3D arm_get_dump_info, -}; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +static ssize_t arm_get_note_size(const CPUState *cs, int class, int machin= e, + int nr_cpus) { - ARMCPU *cpu =3D ARM_CPU(first_cpu); + ARMCPU *cpu =3D ARM_CPU(cs); size_t note_size; =20 if (class =3D=3D ELFCLASS64) { @@ -457,3 +454,13 @@ ssize_t cpu_get_note_size(int class, int machine, int = nr_cpus) =20 return note_size * nr_cpus; } + +const DumpCPUOps arm_dump_ops =3D { + .get_dump_info =3D arm_get_dump_info, + .get_note_size =3D arm_get_note_size, +}; + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return arm_get_note_size(first_cpu, class, machine, nr_cpus); +} --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021722; cv=none; d=zohomail.com; s=zohoarc; b=O5oQeeJOAiMZxcWlSBJSXdZqLCDDNf4WHS25K9Ziq5QcPKnrrCPAd3ScDGgOsju67EiRZ1A+DlE/Z3w/LE31MBCNBXVX29ZiJhL+68eSolDsziFmzT9Jy+WpbGEvl1RgIFJ2Nxq2EJ6M4xCEcs/D61gdv/iCpR9L2OypE+Yl5jE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021722; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=vtvisTG9ewLdXZi9ffrW9ULKotrZlRnWenqqqRY5IQQ=; b=JtGw8tRG+5033xUNDdpoNGb9jCl42e7uLqFXsexqcYMMjQ2CHfpj85alZpgeJNB20+juRJkrBPFbRd9PuqomHkVE0F0uhHb7ZSpHjozraT534uGX1oId+PQxaOZgUHYoZ9A14NJrtJbKd3XYPbEsVN0+xdsUDWj/ExUTjo0QP5I= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179202172206746.07955886816376; Wed, 14 Oct 2026 16:48:42 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gO-000729-Jj; Wed, 14 Oct 2026 19:46:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gL-00071X-2Y for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:49 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gH-0006SL-Ug for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:47 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ENQWrK584763 for ; Wed, 14 Oct 2026 23:46:35 GMT Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hakder1xe-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:35 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-3580c07911eso12288679eec.0 for ; Wed, 14 Oct 2026 16:46:34 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=vtvisTG9ewL dXZi9ffrW9ULKotrZlRnWenqqqRY5IQQ=; b=neOq6gh5bm6xsha/xpXIYn0mgwF rMdbnVipc5ZMsqmzvg8Kh7+3kjYuEEQ3Pp/4jE7698Tx/dVAfpYIUQ06HmdYUVgT DE+FNrZPIV91gmy0nKme7AdfVvmQzEexqaP6JS2YcjXwIyqVF3TgkQWW5r9DbmQE PH7WdGHs8irgqWm+Njco6SkuVTTM2drDblddXbrbZI7eRwd8EA2ATk4Jd884k6R5 zRB99zPfeJJUGKzgKuVPiK5F8/0PX8O4YFUo4GHsR3wkfYbnbc+pXKitkVIiLC3D rxUDLQGR+jaV4+1ghLtc5DiTEXNwvFKfD0tW5NeCWQqLpe6K6vjwFMt2AXA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021594; x=1792626394; darn=nongnu.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:content-type; bh=vtvisTG9ewLdXZi9ffrW9ULKotrZlRnWenqqqRY5IQQ=; b=jrZ9mgJsem0TeCpgWMehsFiB39NfAS1Gdl6dCTNiqqY+NYJmPxynBfFb3Y3mU4Da92 OFrNlFW99PZuodkSDBC1TC57k/ddfsyZr8OcZ3Dh7D7kRWzxr7xKumoyhCFNipLHhHbe 5vRbkhVFYMJMczv886ePSD11S/CLkzdb2Y5Qy4tU42xXJNmda+003ZcTqFtBBCa/1DnN 2Nqn6fkfXTk1YLEK/9sVUhgjxqSivsTLkLmfiGjJ56KoKIAblFzki2zm+9mQMobRfkPi WnARr+Sp46LSB6/g3uxyf4KD5F7jRDsnTosSmHNReB890xH66A02OlirZg1SSoR8UA3U xd5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021594; x=1792626394; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=vtvisTG9ewLdXZi9ffrW9ULKotrZlRnWenqqqRY5IQQ=; b=td5wWuz4ebUxhgySNFnk67pU1QGHluYoNWW62QThlu+9vM1sYTDIctQSAYNpPjBx6A wm4oSiUA9AHACr2fQmI41f1jpTsLYDwoK6yQJtIRQxeO6YG+mowDzH/StHoYXVjk2RAI jWQ6ZqCYfsM3x32gxMoedSSJekY3FNnbDzh9uI3S5zZBktZHFvORSrWoMAsZcfEyn+Qz 2NaV1UZsdEsa+4kUXVRrvOtsdKdBRNvVpTINIXVbQ1ho1+D4z9enEJ1uiWdUEGAtug+/ l1bb/KY/5iBaFsUIalYbb3/WYRzIio5qeHR3sf3kZQFOLjjpMWg82ZziHglN3jt5q4OR hxdg== X-Gm-Message-State: AFq9FYLq+Y82HtBKbThqskyyBkD73hSsF0UshMSOcoKUUclTLETvjEOd q7MR8MX6zBtJiSUvUiuTvVKQUB4FQ7H6b4ibAfLz2FETvpjhMNha/t3yzJ1vk6fMmXv1vsOn6s0 osTuEx/xrj3iNByXfDRPu29tQpqEQFEWWkQWVvhU2WKSpDxz/F5uuz1/9iLsab7uqLw== X-Gm-Gg: AYBFou2ULSQab8JS3uWHbsAAQnF7RRjtsVmbCJUmClou8Jl7Df9v2vk/8x559jwq6rZ CyBSL/KX/hoVAQmwPvqbj4hq+U+RXh2IMjS1hDW8BwI8HCjs3gMqyV95MRpwgdnmTJsB6GYunjf oCHOUkOoKVarqd2D4dKX634tvzxjDjp8S6IQKHcnUGs1/nT/5AKk/7oKqZHOBJqJbLpu8QF2yrf Sb7z3x0vuGy9ygn6d0t9SvLe13E3GTqVnCB6E8shPRRdLt8gq+c94NGOpBUp2Mj1+ibjkwR+OYw 0AGP+NZYfk+kRwSpmc+tFmpQoRmZdvzvkxHpRySwaf635xxsudRhmfR2lNSbkjAuuKHl5xGpsGf 2S/QH0di9FAHKooIR/pBAX5VQBwpAUxwgKFYH4Fs+JRwIljNIvSPQ+TzwPOWE X-Received: by 2002:a05:693c:20cb:20b0:351:6f51:e019 with SMTP id 5a478bee46e88-3537e0a265bmr23641395eec.23.1792021593844; Wed, 14 Oct 2026 16:46:33 -0700 (PDT) X-Received: by 2002:a05:693c:20cb:20b0:351:6f51:e019 with SMTP id 5a478bee46e88-3537e0a265bmr23641339eec.23.1792021592529; Wed, 14 Oct 2026 16:46:32 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 13/19] target/i386: implement get_note_size dump op Date: Wed, 14 Oct 2026 23:45:59 +0000 Message-ID: <20261014234605.209084-14-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=OdENnRTY c=1 sm=1 tr=0 ts=6ad0145b cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=JTYOQ39vrXh0J5ee4iQA:9 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-ORIG-GUID: VuxWimtYrSVarlJuI0MoGDfTB-ZHt1ma X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXyXz8sPxr0knU dBgOhshqpNMBDh9itEu30UQuzrl41d0jqsuO281cSYen7ApMSLZXzVxw22SWLZUMdx2hJuNPK8W DsJ2vK5txsqJ8ClYj4txmWm5x+seMKqZ3gF2tWrx8bSmpzTAtzFLnpdEVJeIkXsQhFPAqYgCQXq znJIBYGOwDyRpxYOYnDEsOCW+K/zI1NuJTGaT64K/4brcvHpgHTRcxuL9jl7lfShrxp0uvGjnXk zYodZGvBJCmBNrKKGz9daFBuXFpuUOt5i/KqGfzVyCcfVwVCVVYxOZ91fQHtd0qjfXTgjeFNaF1 Js2mY2sy/UePkwxFC/FtSKjRoKVyIpT8LEPiBmQ4LiaInVdMNMyGrMh11jV1WwcZ/33m8hxruma j6AxLGbo3JtEqdSbMDFBc4IlQIEdo6yLKxTV5baxibD+7Y4Eo7fgLfskEvGckMhPnuwv/J7JNZZ 8Fii0dSsdjmstziweWQ== X-Proofpoint-GUID: VuxWimtYrSVarlJuI0MoGDfTB-ZHt1ma X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX+Z/qbVTbDMY5 9xhTLuS1/cgd9HruwkHhVi1nWgnW3gBmK7Bj3lmrdmQUCOHm9mdLU/kS9coACFJNgItoAeVaxZM xS8E/UrHQOUDt+l1HyOlkfNXkSfRI9c= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 impostorscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021723226158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier --- target/i386/arch_dump.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index 301f6252b7a..f2bdd3b073c 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -431,11 +431,8 @@ static int x86_get_dump_info(const CPUState *cs, ArchD= umpInfo *info, return 0; } =20 -const DumpCPUOps i386_dump_ops =3D { - .get_dump_info =3D x86_get_dump_info, -}; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +static ssize_t x86_get_note_size(const CPUState *cs, int class, int machin= e, + int nr_cpus) { int name_size =3D 5; /* "CORE" or "QEMU" */ size_t elf_note_size =3D 0; @@ -465,3 +462,13 @@ ssize_t cpu_get_note_size(int class, int machine, int = nr_cpus) =20 return (elf_note_size + qemu_note_size) * nr_cpus; } + +const DumpCPUOps i386_dump_ops =3D { + .get_dump_info =3D x86_get_dump_info, + .get_note_size =3D x86_get_note_size, +}; + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return x86_get_note_size(first_cpu, class, machine, nr_cpus); +} --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021681; cv=none; d=zohomail.com; s=zohoarc; b=WrquGrSLvh6prHIm3xHoAw7mE3hYidN5rDXv4MzBjCtpveq1zzTz4HOQ7pHD48W2iA8xyAfiA65TrABUYedND7F5tpgEZ5wZ5baQM+jzwVoUuSNn5I16B5sIY5yIbIZLuUyHehUiA1e43Fg7nblCJ+zImCXIa82gEU67iaX2fh4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021681; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=kXnwqbNHGQG+90Ka8PQP79XPqj4xYDKanxFWuTs8058=; b=IJhjTU12VYY5WVq/P4uum48DTs8fQi64VFX2Py2NKvkGgZk/faAAN6rmmfiZEENVJ1Abru968w0vq/O+pNnd3qgEG4y4rmcX/rg8HWUkS5oDb2UAVWnmz2lSuPCvjLvcPw/jU4f6N1I2Kr5ExL0SoNpUs4hMmDBLHvqYOVEnbJg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021681757284.3288970933554; Wed, 14 Oct 2026 16:48:01 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gR-00073X-Vl; Wed, 14 Oct 2026 19:46:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gP-00072Y-D8 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:54 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gL-0006Sn-18 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:51 -0400 Received: from pps.filterd (m0279869.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EMaEhV905392 for ; Wed, 14 Oct 2026 23:46:38 GMT Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha42p40gh-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:35 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-3552883bd19so8897123eec.1 for ; Wed, 14 Oct 2026 16:46:34 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=kXnwqbNHGQG +90Ka8PQP79XPqj4xYDKanxFWuTs8058=; b=hqoKbNTEIlBlURufrjSc6UvXets mejLyhFgt6oOMpA5XInX1wON5ZUaPvZJe4l18vmlOxoc9G+wTWuB3KZXUXgVwBT5 thAXLLcCGdHZmofGobLSsEA0gxtoJ+AViuee673S8XM3znG5SWQidKcTf2PLn+Kb wbig2HYQgWM7KuUOspLCTH4VYYq8Sr84wCV4w8ZgWUlzf+DN10s8SEzOxy2SHrty GI/jgN59Km8CZAttvI/mKqWDwiSIFGb081MjaECCiqNGnjA6VD+iJ3HyJdPxb5n0 1I1hoD03Y/hX0GBCbPO1JcLuelSVanS5hIKxPZwx4aFfO59Fkn1u9x2P8kA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021594; x=1792626394; darn=nongnu.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:content-type; bh=kXnwqbNHGQG+90Ka8PQP79XPqj4xYDKanxFWuTs8058=; b=gAUOqEQOhhL7s5/mgsz5SRJpr1egRS+XHAIw4ffJHWjLiVLu8rlJj1EMF6BFpX8Ooc JAiHsHyJgsGqIoMwDFEjlMNFC4tRSYr8qR5HoeZMRNOBYAjKLwPz8hu2mcdFLktzQACX pus2hLPNgcXkbeuDd0A6/uz4slU0p767I90WFOPyXAC75vpQacXVSmEmZCBj77l9hhiC YQkPCPQBUPhkw0NcRxTfVV43Esyb/h6maboRQnBBlyEnYGMv3jCt0HLBet7PnASo50D9 Amw6JokoysryFNy0lKK0B9SXtnDoOrT9TFzwMEHprhdYsZTssXaztkOiP6+UU+7rI6tL pUlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021594; x=1792626394; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=kXnwqbNHGQG+90Ka8PQP79XPqj4xYDKanxFWuTs8058=; b=w9lhFz4VwmFhFe9eTJcAT/A71hFwuRpLENFbVB3e+E+TkVy6Hz1el5tcNQrQjJy/Gr aakStrm7sjbj+aO7VFnkjfiag2UwC1CApusFA25FvOFcLau5y7huZ0z38ISToruQgLNP 2VmP9VloLlxVXJzzUuAqK4Kl52N35b2PfWr1HPCntOUgNOUQ/i6bo2mRRPA4FCVmixUA HzorhTPP+bjXGo+cOZZ3YM1g0O2dfsvA6nbIFnDE4k8yiewpvHjtTU3qJjEArKo2Oiyu hg4RUqacTNqdL/qreLJeWzXqrmKXA90pJN+cw6KwxjxEwkhT+j+e0rmU9oA8wWt/Dkrc +C4A== X-Gm-Message-State: AFq9FYKmyMMN/rb/WnUTYeUU5TFobVXOEaxIaz4+hRfj0dJ2EfqY6ftF KtFc68iCUV1sR8qPAwYfbLjWDKeLS2vmqGlA6SBnQWLE+c7NXvQ1YM3pSl2aJWHfRjZ5/YfZPch 0vnjPW49lkiFPxdKKcwxHSX3xP1waYGEZHUheS5Gp6ln2HJnO6MmUbrrliP10FIYmKQ== X-Gm-Gg: AYBFou3sz7Xr6QXb5gLDAxuvmYdCBk7PaehoL9UHuEjQmWexCWgb883WHLIM3dzqPr7 I6TeHi1FmS5+yq9x/1yEkpib5SKOea7BxmfLnNizCbt7eduOfV1nz4MinZ2QSWUK3qmduoX4QFt RBjsEwQB7QPwlemGUfaL7MprOele+8owdW8YUXHCgiUIIiRxHY8b8ag3EjjMcNY6suiZEMGphOh QG7ex5rbnRL3+UyvO3lHysSlj8xwClLVhbFusG8lr45mtDc9qR6M/N+q3jTYLWbKlyWglN5gjsj 35bE463C7HyWWLfaKjwu6CqElh5ZUbdUubC0EyHrpS7xAdpol+PgD7AiNgOwZXZknG2wNNnl0Bf Rw/KCexKwWOSh9HRzCzaBLK+IDA3F0T72OOkJ0HbLue4z2RmF24wbBpnZ0iU7 X-Received: by 2002:a05:7301:4b09:b0:351:2958:1740 with SMTP id 5a478bee46e88-3537e088bf1mr23675799eec.37.1792021594169; Wed, 14 Oct 2026 16:46:34 -0700 (PDT) X-Received: by 2002:a05:7301:4b09:b0:351:2958:1740 with SMTP id 5a478bee46e88-3537e088bf1mr23675760eec.37.1792021593467; Wed, 14 Oct 2026 16:46:33 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 14/19] target/ppc: implement get_note_size dump op Date: Wed, 14 Oct 2026 23:46:00 +0000 Message-ID: <20261014234605.209084-15-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX/TCFApvD8+op TgWpIu2Jg1uWJ1uuSpH0fP8L1XuqHfOifZzbHOJNDnk+z1pCcL2C+qnwuRkRVwLfinqELDQ5FC2 3WsmleDo5FTvpga85ib0teqEOutZaFc= X-Proofpoint-ORIG-GUID: 0g6UVbgDaNY3sWgfeMqLuAo6hfawFFPU X-Authority-Analysis: v=2.4 cv=aeb0Dhot c=1 sm=1 tr=0 ts=6ad0145b cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=nUViz7GbUQwG4xkpASwA:9 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX/BaH8KepDPNZ QZ3US1XZCVPMccRaWHeq0tI5ji7CWZGkXW9fzbRpUG0OdzkF/i8M5HEJksruxrHBw8G29JBdusb jDbikAfW+MvMyDi+wQZ1bQvDNiF+vtOXfajlBVh6xmG1HuaFJRyhGxULpSCN55ENca7Qn0yRXVs sAF0FBj2qGgh+abG1H4rdAuCQJKtktWOkg34dHRaY4n3Rb+/tkPEH3vvr2o9eEbPXHn+VKDKVyh UgsXceB+MOZEuZcJNLsnNKoWISI/r6rDI8kSt7ODOtgkp8RnHl9gYyvdh8OPVofXMo56fCK/0Em bup3zcKU5AkDloOmIJK5Z7/AqXD+ebGnV1hufDpSNVspiZ5/w/tuXOJ/PbYOSp+yQQOwvjvASm4 crwayrmW9SY7Fy52xgGYwVKp2yIPadXmSJWd25A2+21LmB4Lg1Rl/N1blPi4CPMxGMJEgw/emNh w7GJgI3NWmPn4pbS+0g== X-Proofpoint-GUID: 0g6UVbgDaNY3sWgfeMqLuAo6hfawFFPU X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 lowpriorityscore=0 impostorscore=0 suspectscore=0 spamscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021682433158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier --- target/ppc/arch_dump.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 0b2e6542ecf..f15a7047691 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -253,11 +253,8 @@ static int ppc_get_dump_info(const CPUState *cs, ArchD= umpInfo *info, return 0; } =20 -const DumpCPUOps ppc_dump_ops =3D { - .get_dump_info =3D ppc_get_dump_info, -}; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +static ssize_t ppc_get_note_size(const CPUState *cs, int class, int machin= e, + int nr_cpus) { int name_size =3D 8; /* "CORE" or "QEMU" rounded */ size_t elf_note_size =3D 0; @@ -273,6 +270,16 @@ ssize_t cpu_get_note_size(int class, int machine, int = nr_cpus) return (elf_note_size) * nr_cpus; } =20 +const DumpCPUOps ppc_dump_ops =3D { + .get_dump_info =3D ppc_get_dump_info, + .get_note_size =3D ppc_get_note_size, +}; + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return ppc_get_note_size(first_cpu, class, machine, nr_cpus); +} + static int ppc_write_all_elf_notes(const char *note_name, WriteCoreDumpFunction f, PowerPCCPU *cpu, int id, --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021712; cv=none; d=zohomail.com; s=zohoarc; b=F6Wu8xSw2cszzJGhz6vriMCiCJm2CL7HyM2K6tTyMghwVrF8OSYo12tXdAg1CTIH7NRv71xaWDeKCTW0KQhLCshnReMkZyFwJ43UzbbR0kVXVJhkaXYmyqRgh30Dle+mQ8ClXELiYy23RjFkUthYReVs2PyiEwQTf4WgbP/BZH0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021712; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=+0udiHg6Wqeca4aI0NMIgMbF9Nvq6PiPEWlF4J9jBDs=; b=ShZDaops5gHbwhMcoFRTS3h4iDwqRC2gr2CKp8ly96oXpqcYH9OBd3TuyecouhmM+I2M3G9dGRvZG7en4jtkIYRurkHDNkKzMSPZgWf18iz3mijM7SRP0gH+ywvn+7LbK9f7e+NClhgJX/EQXPW6XeMKlExihxvTvBKYO8edNfI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021712587692.4969988629084; Wed, 14 Oct 2026 16:48:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gO-00072A-KD; Wed, 14 Oct 2026 19:46:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gM-00071l-Ut for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:50 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gJ-0006ST-3c for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:49 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ENQWrL584763 for ; Wed, 14 Oct 2026 23:46:36 GMT Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hakder1xg-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:36 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-341eff9e381so13061150eec.1 for ; Wed, 14 Oct 2026 16:46:36 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=+0udiHg6Wqe ca4aI0NMIgMbF9Nvq6PiPEWlF4J9jBDs=; b=UJnp1V9Y8rmokmHcxCW24SBZjvH FWO50yxUgm+nUb/oEZbKlv6E5Dtg1E2QVoGKtHATxhLtAuMUQ5mTbLy12QLoT0BB Bdoabn223bPq1Pkw9sVLDW+/TzZwbApyjoAEFrFU0OCmudzuCkdYTaxI57WipuU7 /YTHlv81uAXAgIADEvLWeBd9zQy0dkUBEpL833D008IsZ4qsaQdSQAmE78SNjmhH LcSJkivIZz24qRSnafGdPrdX/EwIAbQewLf+KUpdxRLwaTkliZ9J6bh62y4IdnyF 0iFCB4hRfR9n8kRSCXx6IBrZEqOPQ3KxlHr02AqFZNdArE3omshMJ8XVi3Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021595; x=1792626395; darn=nongnu.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:content-type; bh=+0udiHg6Wqeca4aI0NMIgMbF9Nvq6PiPEWlF4J9jBDs=; b=cX4OWNXLkUZoQn2z6ww/yRbkK1IsAiygNMSx5+KllS1ZywiNjP+MmXfVZSuq18BXZV VOqb2kdvo3lwTkcdUjJnAZKneZERQYOnOf6DIPVAZuliRGiq8aQia3+rIaJbTec2fmFh 08J0kEnIPMI3NUuqQUIjIH3nBl2DXBoHVl97bJk55nHVXmtFlZqpo8C7H+v8trTp36k3 fWIKF2CsqioJPT+yRaEOS8C6jttQwRa6YtXRtDHft32kSe3IizMtboqfl8U/S6tnEIyx /KwFnY2yRU3JBKPwNRQ8ATjK2JtrLhfZkWyDT+HDx+ZcW7uy58q7K9duKWZs1NOZ59fX DbgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021595; x=1792626395; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+0udiHg6Wqeca4aI0NMIgMbF9Nvq6PiPEWlF4J9jBDs=; b=iKtn9S8dDjCscs1VX86jas73La0pCaC4x0Nu5bRZbCSqrFHW8U0biJTvN2p8o16l2Y 4qb9YjycJwsQcDjWbN8X3QB3ihVzxaPpmNc4Vbg93w2QBC3bGSTgrLeu47QEGI0mZcMg NBIsf0QBgssMrcVaUxtYAvIXqjyCSbVuxt4U0TRI92eEUYzf7figcaLObwBh20d26u/N VK313G4gyEAGVIMkitJO9C4Ik1FMKcMR5pcF5veBjkEdCjBoPXGAyqWAPE0HXjfQbn27 0GO08Q6Hvly7GZqHAxQO78FNKt6y3xx1B/4kZ5FWoYvsgyJya4oM0PJ/GAX8HrPOli+K wzEg== X-Gm-Message-State: AFq9FYIxfXXdo11adYilNKw53SwWRQhuCAC/9fx2m8n7Fl71TMi2ebDp Tz+OUDfaiAq8f5MaS6IKfvNoeD32we6XxWI70gbEd/agsvNffIhM08VpCbcdKw4I8BFyfqSQS3f t6/hd864nsdBLLPDFujDcaYS+R6EEx/s524K1esX6VdUVG0S0pHBz+GDBMHTgUbSKMg== X-Gm-Gg: AYBFou0+m5WW1h5jeamgRlAkcnIOG+7jZgMGNswWrlaI3qgmoGlilC/f4blZGO8/FiA 4vbSUvZ314SwUZ01RpcYFpAdvbs/mSx2fAxIsNQg4XXu1jVmUZRGKH01G6qlWOXLcm3JCbAMa3h VXFgR5plCIyplRsm8EU+NraiJHITIQxL3YUVJuaGchJVs+KSHaBFetV5YxSz/6upKeMhk6HosOa 8wk4Vslq1XBfhoKEwWkhHy3upfwOpGq2HTdKyFYCStPtihCK/ON6lWTTLnTVbJswKc/q/1SrjCa 2iUR0okNiHxC3P+d0aWugZ0mEjRGviG3TXxqE5l2///yajhx/9ZLlwxu3WLwCYXgYja9iUb+DX+ RLIM1dItRuudNP4gKiRWigd41S8I/HoNMuFode16ippp98mslB29Myl100JMP X-Received: by 2002:a05:7301:e0cb:b0:351:1e3f:812d with SMTP id 5a478bee46e88-3537e0caeb8mr21587014eec.36.1792021595123; Wed, 14 Oct 2026 16:46:35 -0700 (PDT) X-Received: by 2002:a05:7301:e0cb:b0:351:1e3f:812d with SMTP id 5a478bee46e88-3537e0caeb8mr21586967eec.36.1792021594383; Wed, 14 Oct 2026 16:46:34 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 15/19] target/riscv: implement get_note_size dump op Date: Wed, 14 Oct 2026 23:46:01 +0000 Message-ID: <20261014234605.209084-16-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=OdENnRTY c=1 sm=1 tr=0 ts=6ad0145c cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=iWNE3ax2h5am-0Kx1xMA:9 a=bBxd6f-gb0O0v-kibOvt:22 X-Proofpoint-ORIG-GUID: KGVeRwgRQLaAg29SwTEr3O04aUuHHx4p X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX+HjupL4c9h4D NbIKFnd4uohm88AE/mF/DP36z76Caea2q4YNyA/wqA+GRwaNKNonBSGoQ+ZeGxWS94Q8wUZBJJV p8xsbXqoYqZkxxrRMeFE3F6r5GMz1EWzTtlHY8pvOdPyByP1+dHJyxFfhB81h1gOFzDOMYFTjWm PMMNSk1zAGIhoEq2KDiDIWetNmDyUeHoP5TrIMz60R/CJGDUjsrRoZ5cwReHz30wKQILWv4aiLS /KKmYfF36lkPcMpqvVVSLq/q/2zqo53NXD2TQ0AUFwaNQqCCjtpKrH3MEzE2FG4iPBcDBHmv/uP Mhszy67PWOwiShrJIDzW5iFn+c9FBFmxH+8fKsBU17eH/u9SB0xN8MYl0Qzm187ZsSj31f9d4g5 LU3OOHahJfOQMDlXsm2HUBgjA/vWauQ3WNLuorw5q59gSCSMd6jh4OtQfP0hTGC0xHbRlFzOunC 5ybIryVEXT1lHoRa5Xw== X-Proofpoint-GUID: KGVeRwgRQLaAg29SwTEr3O04aUuHHx4p X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX9srMFRt6NI49 N7T/QPjaAbLiEFX1JVbafCDsGxJJ+tlEHL0cz24ARLxIEGiEfAGjZxvc/wsle7qgm1kz12WDmzj I110ZHXHlUjgJnWmma/quOkIygsGjYI= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 impostorscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021713016158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier --- target/riscv/arch_dump.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index ed5be83cbc7..dfe5093b44a 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -183,11 +183,8 @@ static int riscv_get_dump_info(const CPUState *cs, Arc= hDumpInfo *info, return 0; } =20 -const DumpCPUOps riscv_dump_ops =3D { - .get_dump_info =3D riscv_get_dump_info, -}; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +static ssize_t riscv_get_note_size(const CPUState *cs, int class, int mach= ine, + int nr_cpus) { size_t note_size; =20 @@ -199,3 +196,13 @@ ssize_t cpu_get_note_size(int class, int machine, int = nr_cpus) =20 return note_size * nr_cpus; } + +const DumpCPUOps riscv_dump_ops =3D { + .get_dump_info =3D riscv_get_dump_info, + .get_note_size =3D riscv_get_note_size, +}; + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return riscv_get_note_size(first_cpu, class, machine, nr_cpus); +} --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021678; cv=none; d=zohomail.com; s=zohoarc; b=iCsbSQU8kSRqz4FD+AGLbYGLknKj71IUJY9fkYRAEF/oxLGr7VqEALJA377DJ9A4u8SxlGd+PvzuISjP1t3N07ivVPLrvqqI6sIjdBiL439+ZlHsd4VLONtR8H81pnddA8wIUUFQULpdGqrdhm1nZrlNDOw4zeime7cXcsBGxQ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021678; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=EeU5WLCuiQm3NtUrur8w3AG5zbx1PcX2n6cVRRznHAg=; b=PeVbUdrpR12ZDUubMmxNcDLp7TfcWbLhh2ZR3VzYYpE8ZtqsMtl17pTjLv0bL0mwpNL633TC2H7zeixW9UIZI2DOxJvcacnwV7dOsgmJvSLHkCQQs2FYrKPzue0+N+gJm0d8cdLFjOshacpe/G3SpJt5N/3twUzX/Ph7UvI4/SI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021678026947.9515705922239; Wed, 14 Oct 2026 16:47:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gQ-000739-GG; Wed, 14 Oct 2026 19:46:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gM-00071m-Vk for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:51 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gJ-0006SX-U6 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:50 -0400 Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ELrKfR301282 for ; Wed, 14 Oct 2026 23:46:37 GMT Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4ha4623y2r-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:37 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-341eff9e381so13061240eec.1 for ; Wed, 14 Oct 2026 16:46:36 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=EeU5WLCuiQm 3NtUrur8w3AG5zbx1PcX2n6cVRRznHAg=; b=KYdVE3bZG2MG9Kn+9iPZyZm15ri jCiOfexUXM5N2/29hlOmck1RlVmNbXxQ7Gi8G4F+6ePdGWGB7m8tiJjPez7nLdoA DJmEUZEw6aC3ZZtBtnajO1/qgBfrghuKGdH3VyfYX4hJj2N2YBLXXGtHgK9Pkjh5 gC1/edO8ehF7DMWOfaRn4rVFvVcqA5d1Nv8zyzVzcRzyxY6huIw4nMq1uxllbeiE B0mCnyxvj7xuRAsNy1VH4tZHeFux3kX/PnO2rw19w3r9jjFdnvnN++Ea+AZfyVtx OnXFc3nwQ9Jqhxlq9jKyIBWk26WGMTRV4+60Mi9rqURIREjwy+E4nIAXP6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021596; x=1792626396; darn=nongnu.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:content-type; bh=EeU5WLCuiQm3NtUrur8w3AG5zbx1PcX2n6cVRRznHAg=; b=hkAUcgHk1+68L/csZg8AnkweB/cnbwNMs9gf3ZGA2Kkbt2BuSKSXn40UgXJoQdWf2v AKf58/sg5Fq7GKavMymwdasX4Yf5WtYv7jJEVT8UWpXmv1Fucw5Rt0z7aHn7YMNygpA1 yLQrq1J8oKUSb1IGJP9USQnAQw5p4LZ7ItmjikTocoFgB3Thgp2GLMVhrGilqoduRYsn 1/piyKCdcFsALoPQwY8kO4wHC7rADIkzipeN+kLlozJFwu117gbm8QsA/us9XIsdNoE6 djeWSEFbcZ66ONGbMDDBDhyM+PbxgDEWQdsgeXIvs7FD45qXglR+bVdKl1xPzGroY/1l XxYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021596; x=1792626396; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=EeU5WLCuiQm3NtUrur8w3AG5zbx1PcX2n6cVRRznHAg=; b=wf1KU7wl6v8J8/tiv+2AB7GKiF5cGPLTeiTviRL9WUV8xft9tJuCtUAuKifS8KIb6K D+BLmPAzq2cOUsM2ogBfHG6vU0xkUJCWjQJCo6GyTcIWGe2xlM8KpN/BwhjoqVPhpzdg NrKdZOgNNI6/olKrdsIEWSzOKqurUKSVs+kO0HHSiB9ieo+wrYMO06aqHJyyMld4bxeU FrW4dTKLC0OHhNMrPvk/QxNsLTnwEm/FTzLXu67sbVhRQVn09d2dDW5RS6TvOUjyg40g 0qumqThHersVDapAHwoBY8Ag0k/58navxULFJSXedjKpRmxyPbz3IcEE7hTNu9C0qaBY jgpQ== X-Gm-Message-State: AFq9FYIjRw/tOmWgsqLa1NKnzs/IBK5LEht8evTXNZMfuYtmPNNxlXti sjHR4syJ/nldz+wJh6/IeSrtFEozIGG4lk2VAtVgJOo+IyD4Uv07sT0UYoWcf4RWy5RCZnNKxIt lR0B1DP1xfqrcmko+lb5nLvBSe1OesSu9kuKxFm3Llg+JR2rgNLFlhd/2xSbmWwzlzg== X-Gm-Gg: AYBFou0BR/5Not5xVv771izqsid0SRoxWQc3xwIPRrWtVRN/XNySKJB37rGR3S1LC37 8jpQfS2YL1rtWmQ+xk1i9XxB3gNFjqyIhaeDd/uDIh5sUiACPElU0yM8BND4Q3q2sd6Wv40B+qC qYiekUorC8OE9lCVmn///Sl3xrpzR/uHysorMnTXWbHgrvjT8NiRwWj41FFm458dVzSKQFe9Uqx m0d9ErA/RLSS809bel8FtfW9k/uOToIAFsTXgQpZw2SDWJlO3xYIiZ9ToV8Q9Z6bKioVue8a/us 89st6pHBwreEsleJn0HMXqztNW/MpqOFLTlHizvEFgdckziYMqH24G/7P4Fauq4VSoUmnq8Rykn SiOPpYUEvBFRYD9F47PwrBfiCtFeWTGSX6EjlCLGbhcLizdcuCf8c3RRuDo94 X-Received: by 2002:a05:7301:dd89:b0:35d:3370:d8e7 with SMTP id 5a478bee46e88-35d3370da76mr6490261eec.2.1792021595867; Wed, 14 Oct 2026 16:46:35 -0700 (PDT) X-Received: by 2002:a05:7301:dd89:b0:35d:3370:d8e7 with SMTP id 5a478bee46e88-35d3370da76mr6490240eec.2.1792021595373; Wed, 14 Oct 2026 16:46:35 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 16/19] target/s390x: implement get_note_size dump op Date: Wed, 14 Oct 2026 23:46:02 +0000 Message-ID: <20261014234605.209084-17-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: w8LuqgRSAsbMGXo5Iz_r9SCwVuike8rR X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXwvUerTkosAT6 ANeKNW5xgBXL9vl68yrMS3Lcb6GDcpH0pbNI63KEavCQShZ1sT3B9JULOFl5lmVvXR0YDIuAPbN yLAHTIJZsQ86wweS9USl/z9bUwSYd7t7EucB938uur0nihnvHmbFzMYs0/YAagXXAD+4fPhAplT zXFMAGZcCAij7IrzDQQxz7rXbPp9NjBXoexc92QXaLLEMz/KzB5HAxxoVhKjQRj6PAW+Bxf9qPN XheSGmiG4cDXW0eEpXLDwkyKqLxvpSZ8Qj2g2f6g6D0fxVXSyEpVXIRaTHWajMzgM6By1xr/VYK IG51Gk6Hc9jb9dfgyx0/x47MnXCyPineeon8ZaQKVTC29KfRZh/hqJmHIGq/HdnxhSd+/YYQCl2 tX9etStDGr39tbQaYlki4bzfcZqipS9L8OrZaAURcDsZz/6ugqM4//aFbneB8kH8TmA2ZCklavF ruddn37h3EGQ/j420ag== X-Authority-Analysis: v=2.4 cv=ErZHPicA c=1 sm=1 tr=0 ts=6ad0145d cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=7G4PePfjkBXZ5IZN2skA:9 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX9FEIk03f2p5U 3eNgM4/lI+i6emJvVu/H+to2pLZrwVz31GQthOGggEVQZrGEFRuvXZqZs7R+Pcy+WB24phh+0Df AUTQoAAfrCX2N6ZJyaSr0nT/PgOqVzE= X-Proofpoint-GUID: w8LuqgRSAsbMGXo5Iz_r9SCwVuike8rR X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 malwarescore=0 bulkscore=0 impostorscore=0 adultscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 priorityscore=1501 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021678406158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier --- target/s390x/arch_dump.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 716c9606d26..c18483a6754 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -470,11 +470,8 @@ static int s390_get_dump_info(const CPUState *cs, Arch= DumpInfo *info, return 0; } =20 -const DumpCPUOps s390_dump_ops =3D { - .get_dump_info =3D s390_get_dump_info, -}; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +static ssize_t s390_get_note_size(const CPUState *cs, int class, int machi= ne, + int nr_cpus) { int name_size =3D 8; /* "LINUX" or "CORE" + pad */ size_t elf_note_size =3D 0; @@ -500,3 +497,13 @@ ssize_t cpu_get_note_size(int class, int machine, int = nr_cpus) =20 return (elf_note_size) * nr_cpus; } + +const DumpCPUOps s390_dump_ops =3D { + .get_dump_info =3D s390_get_dump_info, + .get_note_size =3D s390_get_note_size, +}; + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return s390_get_note_size(first_cpu, class, machine, nr_cpus); +} --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021634; cv=none; d=zohomail.com; s=zohoarc; b=QFRm5y3Too5ou0DfA50w/5FKtMpIlHz+/OD/3jDUp6l/MWx9b0JBFpvhAx8vK0hfEmjp1dyFqNmoeC3viQwdLMwOcdtoRg2Se1WesvaMVvO5XklNg4XiPPJ8Y4e7rli+3/TLq/ft2dhTyCNBzqf09Ax/4I5wdinJhUFCc4KbcPU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021634; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=PzEvzjpfkfsQpL/7YFQrkEchoYkYion+QQHYEXunA3c=; b=iJsho1xMyMfu0uSfm1G4Lk5Z4kDw4hI/9zNTkRXd45R6WPzmwbVsC/NlBSsY+KEIugEBbTxJj8cxHI3dWxNPqRF6PUVkCbl582CoxtHB4PA94AxiU1Rc4fEC1sixKLfdBSpw5zcceTEZh14zEz/TCz0Wn4HZ/1S9DCfikNmjooo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179202163456127.78879987746268; Wed, 14 Oct 2026 16:47:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gU-00074B-9V; Wed, 14 Oct 2026 19:46:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gP-00072W-C6 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:54 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gK-0006Sl-V3 for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:51 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ENVBiU596302 for ; Wed, 14 Oct 2026 23:46:38 GMT Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hakder1xj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:38 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-3592749a017so1467987eec.1 for ; Wed, 14 Oct 2026 16:46:37 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=PzEvzjpfkfs QpL/7YFQrkEchoYkYion+QQHYEXunA3c=; b=dUERUkwAalULdVVcmWS1VEGxVqG fioEjVK9BMgtvNEcKwTwDZFrJlPNZZ/aC5wzYKH4hIakPQIf1W7khgV/g1e4kA2a sq4RP++DsNaLfyJ49zPlFL2W7YgTjOBvsRraxxo4UHwRKkHUmCiSVUiQLOQ50zhB Ql3xH9NLxFD1vLhOoNEq4UUeq6+849YtHmUcC5C+wb+e9RSDqV//vT7VXd5EavqV YYShkZjt72FAcotY0qGBZBE68nKskIEluZIzmqKTJN5DH3IiaOu3cAxykvmOkfez EU9DW10DrgpAovKN7I+pNhoxfJ8MdueZUqymB6+U9Rc8Xmar/N7/IGTSbgw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021597; x=1792626397; darn=nongnu.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:content-type; bh=PzEvzjpfkfsQpL/7YFQrkEchoYkYion+QQHYEXunA3c=; b=BW2cdLiah4ASFBf759WPZsRJuH8dgPaTmvwhEuZ6I+ifHRh/+z4gpiTdaQ33NYPGJH 5V2L0jH/YYb1eB84i4qWB7+bvKYmEBQpnF+A9G44W5ALFllQrh5I4G4kRj31Nx263YQA TDM+XxluwMSNBciAH2g0c9npX6xipfo9gawrUTTjdXByVMzj/rw+6m8Rp96PA+81aY1u Op6otNGqAptflNpibG3ttuzCA3navmAOWApWpuMMhqz3ticeNFUGEcUVAtLnqJWYuKLG VPSaPs+GigKi8vGrcR7xTfmuFE7PTgG3DqNj1gxKsYsVDKvvAzhETLfQiyMnRTdbmS7U cJCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021597; x=1792626397; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=PzEvzjpfkfsQpL/7YFQrkEchoYkYion+QQHYEXunA3c=; b=VEa83J0SHuZ2Av4fxU3yWWy9yWpag3731UyfW9y2rD8Yy3cDbU5hRuudS7KhVGCmA+ ECZytv7N9LAdE5XygiiNTdPgXWx0M3/LFcdAQwKmaehJH9rQw2MLxcMGY9fmsgcKKQsL 1dxJBBy+IhRNxif39Y7HdpsD2uZ1UNadBHlVgZeLK4saVWRJ4ypLICY3mo81ilrx7hJJ mpFXGMjIGi1yLOJUh2MXZOl6XMbbriTo5sAwLb3ncbgakJ8MMAn+F/SP4Mebe5VHuFKT 5gPxX9BcwynLplNB7edbA80bXsxfftkHLLDovEQLeYTAm4BtcBOoEzyt4jqs2FnwVlcS M9yQ== X-Gm-Message-State: AFq9FYKTqUlYqpblwyDn5V3FwS+JDX7ao36V/zmR5PDa7lYtC4u4Rc7B 2sOddAATZZwH06/7SKa0sM5GoWWU7YcDiXR3JFfLWqQUiS0NnC7kiKG1EYKnbDtKMuYenUkRnBs y8Ogqg/t6m6+CaI1gsjEWSBX9GXEyJK8mEahK8sq5xEo+dUe3QPrBAu6NvM1icIbcAA== X-Gm-Gg: AYBFou2E47xCKK3bH2Nxvb7UvJUbZOTg0DaGOH9kLszUGxlQUfZBrP3pHikgpvkjE65 buAz5tenfq47NxUGFVODqjbGu45FruLouI3jLDmTDScY8cKTg+JiLjFyysBw6MNGM4KlNce91x/ vkCoCtQaIYbiCYbBo+dlhrz2Z28/R3QtDurY5g86mIvnFyKggc1l7bm/GU/XoFnTQVOVUwIjExA lOANEHkLj4lo3txWx9CCQ/L4zyt49mEShtJrvuqX7NN0seVBT30wG0B2mlDECluKYDs5zcvKfhO e4rgL5ID++OO809m+UARYVy4jolE2fyPJHVYnVXVNA97XPrbGoAK/OJmN5qa7p+ctg1KxtiUizR VCBjg9SbvBk5umJPXnAqvNv8qjbxOt1DieYQNwwVJ5N94wku/g0I7XIhrUxJB X-Received: by 2002:a05:693c:8347:b0:35c:49b9:3166 with SMTP id 5a478bee46e88-35c49b93e3emr9357521eec.6.1792021597001; Wed, 14 Oct 2026 16:46:37 -0700 (PDT) X-Received: by 2002:a05:693c:8347:b0:35c:49b9:3166 with SMTP id 5a478bee46e88-35c49b93e3emr9357487eec.6.1792021596411; Wed, 14 Oct 2026 16:46:36 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 17/19] target/loongarch: implement get_note_size dump op Date: Wed, 14 Oct 2026 23:46:03 +0000 Message-ID: <20261014234605.209084-18-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=OdENnRTY c=1 sm=1 tr=0 ts=6ad0145e cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=PtlCrUUUHtpZVlCOPA8A:9 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-ORIG-GUID: HRDPmzr6YM8XB3ScIvoWkMbaXKi1iX0l X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXzPorh+hGoFkH q3X/zFPQ73xLHltQygqg59jb0I73NWYYtofzbhdrhmHglc0HHWCDrdV62LinuyQ6swM51bAcrbV BtHlwpZD15AZH4Ny0ewW9Mhs7f7hHR73uF8x41aZy+ISpkPfJS1ZnBADdcEwx5w/Avxfn+LmgWx K9bG4b2i7FKKyXyYvPYi0GWP8kTzOgErOKAKRbv9oAuy3q0TTLXubARkuxwhjwkkMlaY6hgr3ap RvDseiLT6uXs550wCIO+BFrxgjujInuMHdQ9Fh+FcTCf9BCYfTzK3en3habe7reGkS21JXRadEs N3y11hAu0nR2XFIUlDVfWE2XjKur2DYlN/eFyrhuIomeCTgUqumdAdz7JLng+NP5XJDrsUdq7r8 Ak4pErGUxFFhwnZh1yLx5LlVNraSxjiTAP/AbKI2a9rt4HF0uCxPd1fAIsB+piKb+dITNL0jb2f Dpg17rzbbgPEvMVfVhw== X-Proofpoint-GUID: HRDPmzr6YM8XB3ScIvoWkMbaXKi1iX0l X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX9kYu+9NMuE4F 4iD0wxBRVu697ZISjKFSBCOU5XkPfOaGIPmveUd2cShTkC1GIMDLC44+CIIgFEWelbY1aPflKnc S7+obntfRWabuchpbt2uGW1P1NaWrG4= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 impostorscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021635820158501 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier --- target/loongarch/arch_dump.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 6bd83b4be61..512f2d9f63b 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -153,11 +153,8 @@ static int loongarch_get_dump_info(const CPUState *cs,= ArchDumpInfo *info, return 0; } =20 -const DumpCPUOps loongarch_dump_ops =3D { - .get_dump_info =3D loongarch_get_dump_info, -}; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +static ssize_t loongarch_get_note_size(const CPUState *cs, int class, + int machine, int nr_cpus) { size_t note_size =3D 0; =20 @@ -167,3 +164,13 @@ ssize_t cpu_get_note_size(int class, int machine, int = nr_cpus) =20 return note_size * nr_cpus; } + +const DumpCPUOps loongarch_dump_ops =3D { + .get_dump_info =3D loongarch_get_dump_info, + .get_note_size =3D loongarch_get_note_size, +}; + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return loongarch_get_note_size(first_cpu, class, machine, nr_cpus); +} --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021653; cv=none; d=zohomail.com; s=zohoarc; b=QBY/MxdSc+XcuYQO0y5a/x7u2DZFXytdt1InCFu/tTA0YDVugclBgBby5+C8UQidW4fF/ZIBFpSLmbpJuLj/ZDSX5dw+/KK5q1ssLDiXeu8a8G1Yv+WPr7+AMReBANQxByUXou9a/T6JL812BLQYKvwSP+jI5e4AyxiPyvWwUwU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021653; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Uhi4txl42tKkPIaQLzX0J7e559tjsyj/5nsF0REzlrk=; b=k9olwvGLn1t9SeKq0szDSkItjG/x2w2DN5Umd0gqsO9m1+Ys0yQ0ZXRsECGVGnPxH1hetV7YPRf2F8Re+UW22U5ZidizQHOGcY8KGxNe6nkteLqrOuFs2ob9eYPatjvLS6GeN/4RrKcZvnIS0Zj0qM8cZxlOxjh9P2kHpHu2fRg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1792021653709138.2266732183025; Wed, 14 Oct 2026 16:47:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gS-000742-D1; Wed, 14 Oct 2026 19:46:56 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gP-00072X-CN for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:54 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gM-0006St-Co for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:52 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69ENRK85586453 for ; Wed, 14 Oct 2026 23:46:39 GMT Received: from mail-dy1-f200.google.com (mail-dy1-f200.google.com [74.125.82.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hakder1xn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:39 +0000 (GMT) Received: by mail-dy1-f200.google.com with SMTP id 5a478bee46e88-359b81ad4e8so2247350eec.0 for ; Wed, 14 Oct 2026 16:46:39 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=Uhi4txl42tK kPIaQLzX0J7e559tjsyj/5nsF0REzlrk=; b=iSbmQMv0Z//xribqOSvM50bq7oZ eiRQ6snhLIN9lCKUZTR34wzNrQ2gBSrm6kAp4ek5vTYDfHF9LPA5YMMExLwwGt3G OJK0BNc0rkiC+mItscDS37xyJz4h1agUqAcFOEmPY3JpP/YLzFiZinFridmQgmNp QoKHyJDklrr8nDb8xI/TPtDVskwXcN7JxEUU/jpwXh+4qRxB58tMqgBayCt+goU0 Y3l7n0DKp++NXyhhPT8xwR0P9o9Y6x1uzHeRb68JvESGsYgY/UeRAmFdL81PSZrm khMrFS+eVQ7GoDleUn4X7632jBLGUc5tz19ODP8WrG147eDDsQigbJaAvSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021598; x=1792626398; darn=nongnu.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:content-type; bh=Uhi4txl42tKkPIaQLzX0J7e559tjsyj/5nsF0REzlrk=; b=h9ngfN73+VI0jiTM+jHH9p3U3UuU8PJiD4974nImI+ujBAZ7W1LGFUHeNaGClGjGCs 9sNz5IxhLSQoeWx+IbAX6sXTXkV8kgeu6/LcD6WvalAHpjD4npZW8/0ePDqgKjuHpbc2 9WI/h2xMfECUyVKGBUbWsg5QelrxIlQPqgrA87zfrcKrIUoDDY58DJekiQLst4NgEBhr EsUEYBkBqAr8kWaINDYkScISjT1Jws1QTqKzu9IJaoaRlObB0gSTK8tRWOqvnypUxIVF 2Sa9+PaJe4FyLyIKDkgEONaICgb37amIbJrT4EgFkcl8EhExvxr7Rr4A7srJ36RHT0tG yooQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021598; x=1792626398; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Uhi4txl42tKkPIaQLzX0J7e559tjsyj/5nsF0REzlrk=; b=mIw9o2Cx67Eln1cfKrISOeO3nTVZt6UqLRpA1vBSTxQx/zhwgUSP9VwMLOWajMjPhI JS4vZ+wE+XrRmTCNIyPvFfwJoCDEiltegaI1CGVQw6lCWMjklBxDZJAxpiP8poWISPys na8SIwV/MnI5b92IdRQaHPIGsa2hdr9TLFBcE3No7T/5VTQhykaJ1ugrDrbz1Hn46VDg rU5Qe8cmABWxMXBC5GlPf54T2XYstFPVNtf62vaKkTPuDBux7DSNMtOXbZhYlM1Vy6vS ykqzX2q39s2HZDE5erJrJvd+RwKq0iKcsTjbGkE+EQbU+XmtoDRG6h7cmTDo/f34EQ4C q5qg== X-Gm-Message-State: AFq9FYJklDK+V7jxPpOGCO4S2x1GQyz4mYqLV61FFZ5ZsmybeWopNmug O88UzoaHxELb0OFegUGQL19gpaAmQP//yhY2df2hb2auAyUal1M5mGsC/ybwk3UJjF+BcksiOMj cxcLQQk14LoHq45X8QfjXHUNJuC/6XT/zj+w31dd37w/qN1g83AVp3D4rcOCGOYyssQ== X-Gm-Gg: AYBFou2vuBmdcVT/DXA28LAZ7F8dkxzZ04HJL+xgTeQ0+Aobvk/vOXsmVcvCbW2Lf7h iY0yHWWML5aTBETxrbsHDBcbE2mC1S48IXkT2+s39XX284uB03vTQRUaHjPAw/yZeX8gLdqO211 SDeHbLGKBUEM18l3zZFw+ymdR8VJWXF/Jr7+bY7OuaOKeRXSdMvm3W8lcBIpR/lwyZmDGyNp2QM kAJorMjyNUmMB+dm7BM1zEKaiNBYuOayL9S+lq+iOsi1KDOVuJAn5O+H7IkoYNWZ2d5tICcbAD8 bN4uXCZyV/82gk0ZTmmfh5ZABvaH33+TZkego9l7SM16/kRP4G0AcKKM3mRSEzufPZMv0P4WkI+ y4slbhimUL1HLnE+T2LueWeIy32CcVhEzVd8Jpes+JmuFz7sz3Wdh22AlZnag X-Received: by 2002:a05:7300:d209:b0:35a:47ed:c39a with SMTP id 5a478bee46e88-35a47edc590mr14360992eec.37.1792021598476; Wed, 14 Oct 2026 16:46:38 -0700 (PDT) X-Received: by 2002:a05:7300:d209:b0:35a:47ed:c39a with SMTP id 5a478bee46e88-35a47edc590mr14360955eec.37.1792021597673; Wed, 14 Oct 2026 16:46:37 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 18/19] dump: use new dump ops for note size Date: Wed, 14 Oct 2026 23:46:04 +0000 Message-ID: <20261014234605.209084-19-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=OdENnRTY c=1 sm=1 tr=0 ts=6ad0145f cx=c_pps a=PfFC4Oe2JQzmKTvty2cRDw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=2GaGCBqw96iMQ7DTiugA:9 a=6Ab_bkdmUrQuMsNx7PHu:22 X-Proofpoint-ORIG-GUID: A4QGcXDv2fdsVWGtgGjuxMlpFg5eqtng X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX+JMm1oDdvMSu lUC7S1/r4Dk31Fx9+SHQrn3/y6Xx2o/9PP087hSrPrhfaJq9d7/2K/aoKvYN5mnVBZhGZGwhXua ALk3Dc56AICqs0J+BpnccPrKF8r77yzJnkmhIL4FGwRXwzXuZW+qe4O8cbGt4+eHCb+F/K/AFRA nSSg8EK4RebfasUm/qEdfjl7rYd2v2ENfOK1tbw6Xf8Ei5N1Uwd+AfWRmc4eoRFH9X8qMbwWETX c15ovdQqFI6W/k8YFR0Gkgz8hf4UCZBM9/wa2yzQLNqTpooEf9ZKe3l4Ze0pbIP4siG+a8DpEpy 1f1CAnSLHrF+zdi20jkXyk2nG0rb35Tj5r4KRiKU+piv7SLVq0fxrt3UB5AgcFcsw5nqSwV8+9B Vnccyor5SczMYyi6NsdV5HLKlj23+TqO9nh89XlQ9RZeFdeFpeYMn+W6I/GcGedpOGwCQW0uQ4l sWUbEPuWR8MTsv8UI2A== X-Proofpoint-GUID: A4QGcXDv2fdsVWGtgGjuxMlpFg5eqtng X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX/ELWubK2Hflv ZHnRom0Wnkq2AzS7UGXishkyfuZZ8jl/lPPFWhVvwfyZb4VypMBk+tpTwsbjMiV+GnIXZov47xA ZOhkrQJXppq1r3wXqjgWc8ZCGE4Y/fk= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 impostorscore=0 phishscore=0 clxscore=1015 priorityscore=1501 lowpriorityscore=0 malwarescore=0 adultscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021654023158500 Content-Type: text/plain; charset="utf-8" Now that all targets implement this interface, we can replace the cpu_get_note_size() call with the new interface. We still pick the first_cpu, which will have to be adapted when we introduce heterogeneous emulation. A target implementing get_dump_info is expected to implement get_note_size as well, so we include this check before calling get_dump_info. Signed-off-by: Pierrick Bouvier --- dump/dump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index a08a1eff3ea..05aabde5686 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -1860,6 +1860,7 @@ static void dump_init(DumpState *s, int fd, bool has_= format, const DumpCPUOps *dump_ops =3D first_cpu ? CPU_GET_CLASS(first_cpu)->dump_ops : NULL; if (!dump_ops || !dump_ops->get_dump_info || + !dump_ops->get_note_size || dump_ops->get_dump_info(first_cpu, &s->dump_info, &s->guest_phys_blocks) < 0) { error_setg(errp, @@ -1871,8 +1872,8 @@ static void dump_init(DumpState *s, int fd, bool has_= format, s->dump_info.page_size =3D qemu_target_page_size(); } =20 - s->note_size =3D cpu_get_note_size(s->dump_info.d_class, - s->dump_info.d_machine, nr_cpus); + s->note_size =3D dump_ops->get_note_size(first_cpu, s->dump_info.d_cla= ss, + s->dump_info.d_machine, nr_cpus= ); assert(s->note_size >=3D 0); =20 /* --=20 2.43.0 From nobody Mon Nov 23 04:52:46 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=oss.qualcomm.com ARC-Seal: i=1; a=rsa-sha256; t=1792021679; cv=none; d=zohomail.com; s=zohoarc; b=nMfQ97GanWKk6zUuFsIpDNTtbTvaVLyglgv8B1fkWJnqtgrT6982ksHrUhVbi+EPy7BzdLM5PYnvGjgm0BlUK4kvLJO/Y6OObWcEOFfgo/+Q7iVO0rntEuy03nMI/qVGd6lHH9ipo1mmw6iWRktt/fSJlposggJ0wBbR4g1wWNI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792021679; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=MWbyzs+Sr+Ri2pwk4Fn0cnw6bytM98yr0vZXl8+OpG8=; b=Qvf4LS5tiPVxmDjSlRrkweJWutHzqIdYoaZB7KfS62JedV33WgHgSpfLm/eXXp4p5P8KtQMeZ656xz7fsjUAvM9Ba+oIcKja2ppCVjRDLoYMIS+t6/B7NH+WwikXjj+lIqwtMVkFSe1mjg1H7U/A8WUsVPgB/IFT4of0vDEun3k= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 179202167907034.50392411102723; Wed, 14 Oct 2026 16:47:59 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xH8gV-00074F-OD; Wed, 14 Oct 2026 19:46:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gQ-00073O-Oh for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:55 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xH8gO-0006Sx-1t for qemu-devel@nongnu.org; Wed, 14 Oct 2026 19:46:54 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69EHR8uI841906 for ; Wed, 14 Oct 2026 23:46:41 GMT Received: from mail-dy1-f199.google.com (mail-dy1-f199.google.com [74.125.82.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hae4ws6p8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 14 Oct 2026 23:46:41 +0000 (GMT) Received: by mail-dy1-f199.google.com with SMTP id 5a478bee46e88-30bcb065bfdso8588873eec.0 for ; Wed, 14 Oct 2026 16:46:40 -0700 (PDT) Received: from debian.qualcomm.com (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-358de54fe47sm42506147eec.31.2026.10.14.16.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2026 16:46:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=MWbyzs+Sr+R i2pwk4Fn0cnw6bytM98yr0vZXl8+OpG8=; b=L4xlW0ZgYIHtYuJ990BYvagEXD4 dAFdzihfLbzrpJLA08OeRu8wmEM7z40klt/15tdjI3E7VuXJaOV/b354D+lylAWU rZy3BqS7Px1Oy66g4oSt8FtiG20lgTLk7T0yNmgterWpif2kAJKJ1DTTLbFAPvwE MLnUfbtpSa9lfedwiOihD0Glm3f5SYmkv1aznE5I//FmFj/Alr4P8Zjw02+WAo+7 jRWqlvozcQrFvvFtuBPeEWU9HlqxBcY4sb0pDa6XtxLy5VCBJWpyLlWo3ZHuUY+n 1JsSZY1FuSxHSqbK7VMboVt2asRQjGpZAY7x7Sthb/fLnUUs5NDBPjT5ZJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792021600; x=1792626400; darn=nongnu.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:content-type; bh=MWbyzs+Sr+Ri2pwk4Fn0cnw6bytM98yr0vZXl8+OpG8=; b=Iw9ghcdj6FTyWbVZfIG36XGScaeZ7VTByOipOTrbaqNL5UUlYE44LIDgkTzcQgo2zx EbgOa8uoBLS4cjxca/A19X5SRWK9X0JgFGzhKx8Ruy80ON/p+uakN7AIvAXUR+OA/iWZ qHvbt9PIlTxjOQLx5Hcla8/vFj6GTHJlzFq7TAX03d8xERXwXeF9wCuqjy4Cb7hYa66+ IvrjaO8VHwOsbvl76mAV7ZDri+Ys48k4wrz8a0UDlgtxxrIDCby13w5OidWaFSqRo8fr Xswe2NPCob4+ZoLsXghavbN0Ae6wgpVAZ8KW7pJTLVldOkvkh703AGBHtSzLbqBU1Jpv hVaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792021600; x=1792626400; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=MWbyzs+Sr+Ri2pwk4Fn0cnw6bytM98yr0vZXl8+OpG8=; b=YgfGhyrcgWTcdWQhKsOmqmO/TZlhJ5GDiN79gSzulw2G8owaQo3Ars6z2GGRWKL/aj MmthUTQdFOD2k4SI4l7I9FAnRdXRN+16j+p1z7t1auxwPAgz+jGUemsHGGJrMe0eQVms RYkIrFeYashVquwNb0W3dIORyzT2VTpDbfdWddaG3VD/DXBDUD6Mf3hCtsv+n1Wg/a2w ZffEmX8K5YvqyNRgNLzyrWlQS0/jSPCmPDGeKaqD6qIEPi+uUOT0NciUvW/Zk6/U+fLZ rGw+HeW7c5wgHeFEiy3NBpUmcl8GVePQKSw24T+1FajAHtC4ZXJXpX7apw+2AHSRxLlT zCOA== X-Gm-Message-State: AFq9FYLX/rYK+N+/GIFWK3cKNGjthJWciyv9/BueCMSSwDsTxZ/WrOr2 6qwKxWOjFbUaUusAstxjcLYLFc7JrI0HBiv47v8Q3V8If32XRal4ccGQzxXwnyXgwCfOtNaLIUJ 614zWneCBNAGDHimT9XY3KFqlFgM25wMSjZuK/EltSGHILpj2PGr631voTspL6bt6qw== X-Gm-Gg: AYBFou2dlf61/0rejZH8J+GKpfUhoL6EeGOAp4XuN3JPyZGQEdm1SM1N/EPF6PYY0+z XFOT943jslcefcfCzX4ECEDqEeHae+WRe8/g6Wl3uG4PvnE0JKgxT5oRrSlzqv1BNTMxDapIith TVQIPA5SSNAFkpOe+lEEqHzKA0Ua0+Jax09xL/qNOJAWDbv+vFN5wAJ6emL7ozHve9cSABeyHNi NqD6zCVwtUYjLPzGvaUell3ajISMEmw3kYaxw7xQf8OGw6zUjydPJmXLTPToPye4w01yl3wqjFf Q//zprrSL07VphaOSAuZCQCuyG7690GkXtxsuNiJrpOg9kUYRbv/XIzm/oTdTn9Akwsifc+U70i SCELUuB7JMjaP0IoxLMKy9Qig7l0Vfk/CudcmCduuza5ze9ZJ1ViYGlgyw17s X-Received: by 2002:a05:693c:895a:10b0:351:1e72:7470 with SMTP id 5a478bee46e88-3537e04414emr23950113eec.13.1792021600030; Wed, 14 Oct 2026 16:46:40 -0700 (PDT) X-Received: by 2002:a05:693c:895a:10b0:351:1e72:7470 with SMTP id 5a478bee46e88-3537e04414emr23950080eec.13.1792021599302; Wed, 14 Oct 2026 16:46:39 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Pierrick Bouvier Subject: [PATCH 19/19] dump: remove cpu_get_note_size Date: Wed, 14 Oct 2026 23:46:05 +0000 Message-ID: <20261014234605.209084-20-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> References: <20261014234605.209084-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfXwkPxc0ElmKCU nDkNofr0OCGCe1eaA61VUdzmu6wPRHZmrQvfIBaDUarIwnD4s58MttYZ8oTuO2ofR8Sow0frmjl trW+VvFHT+x7DNJ8hSEkglFT+7FZKJs= X-Proofpoint-ORIG-GUID: 6Oodm0qOZ4sKYh5rPWVreu1WCMpMBHpL X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE0MDA5NCBTYWx0ZWRfX8b/oEiutxoMo uYXpHo34eMl6AREbi+a5a+8BBTax0zXYmYBwKby6F2VRMb4jLW4TwAww2rZi75CD/+pfO+hwSTI lpE26ASWRwMQDN7pKXZRqTa+OxU7uzTZ5tVH87gTG/SF4OVsVA5u57LZui4utrtNp9ywD4WWAZ8 R9RzUzsHJy2M58TtYPjXYfJ6oEB7lFPDHi7pamNzE+6KIopF0Oib4L1W3uo8tL7PStSfCrbXUhB PHPNI4sNodE53kG8XvpC+nkEvv0WU3mtVPrCKyfKeG1gvZ6KFnhMV+PgZKk9OvUcaupyoFU4B3/ fmSxAIeGNHvo5c1rYAyHbnhjL6/6cPZqnhOhXs2l/ilixphJthnjFZn+VcN/9XZTGTCc5AY8c6L +FZhfMKsrv1aGjnh2GztTi2a/q9ai6wcIiKXkqPu5jjiDd+Hf2pYnHpoJ0OSXW75ql2ZYOs7QSH D2eDShO+QV1J0nC3fOA== X-Authority-Analysis: v=2.4 cv=E8BYNqdl c=1 sm=1 tr=0 ts=6ad01461 cx=c_pps a=cFYjgdjTJScbgFmBucgdfQ==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=omOdbC7AAAAA:8 a=P_cq27t8JD7DSor7Vj4A:9 a=scEy_gLbYbu1JhEsrz4S:22 X-Proofpoint-GUID: 6Oodm0qOZ4sKYh5rPWVreu1WCMpMBHpL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-13_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 impostorscore=0 suspectscore=0 malwarescore=0 spamscore=0 bulkscore=0 adultscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610140094 Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists1p.gnu.org; Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @qualcomm.com) X-ZM-MESSAGEID: 1792021680562158500 Content-Type: text/plain; charset="utf-8" Now that both cpu and the dump implementation use the dump ops interface, we can remove cpu_get_note_size, including its stub. Signed-off-by: Pierrick Bouvier --- include/system/dump-arch.h | 1 - stubs/dump.c | 21 --------------------- stubs/meson.build | 1 - target/arm/arch_dump.c | 5 ----- target/i386/arch_dump.c | 5 ----- target/loongarch/arch_dump.c | 5 ----- target/ppc/arch_dump.c | 5 ----- target/riscv/arch_dump.c | 5 ----- target/s390x/arch_dump.c | 5 ----- 9 files changed, 53 deletions(-) delete mode 100644 stubs/dump.c diff --git a/include/system/dump-arch.h b/include/system/dump-arch.h index 7cde5e27ce8..4abce14582a 100644 --- a/include/system/dump-arch.h +++ b/include/system/dump-arch.h @@ -28,6 +28,5 @@ typedef struct ArchDumpInfo { } ArchDumpInfo; =20 struct GuestPhysBlockList; /* memory_mapping.h */ -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus); =20 #endif diff --git a/stubs/dump.c b/stubs/dump.c deleted file mode 100644 index 2ce3c5e274d..00000000000 --- a/stubs/dump.c +++ /dev/null @@ -1,21 +0,0 @@ -/* - * QEMU dump - * - * Copyright Fujitsu, Corp. 2011, 2012 - * - * Authors: - * Wen Congyang - * - * This work is licensed under the terms of the GNU GPL, version 2 or late= r. - * See the COPYING file in the top-level directory. - * - */ - -#include "qemu/osdep.h" -#include "system/dump-arch.h" - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return -1; -} - diff --git a/stubs/meson.build b/stubs/meson.build index 94b83188667..c6d96959d24 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -76,7 +76,6 @@ if have_system if igvm.found() stub_ss.add(files('igvm.c')) endif - stub_ss.add(files('dump.c')) stub_ss.add(files('kvm.c')) stub_ss.add(files('win32-kbd-hook.c')) stub_ss.add(files('xen-hw-stub.c')) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 3ca570c1c29..1018f466710 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -459,8 +459,3 @@ const DumpCPUOps arm_dump_ops =3D { .get_dump_info =3D arm_get_dump_info, .get_note_size =3D arm_get_note_size, }; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return arm_get_note_size(first_cpu, class, machine, nr_cpus); -} diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index f2bdd3b073c..90a11a8fa4e 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -467,8 +467,3 @@ const DumpCPUOps i386_dump_ops =3D { .get_dump_info =3D x86_get_dump_info, .get_note_size =3D x86_get_note_size, }; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return x86_get_note_size(first_cpu, class, machine, nr_cpus); -} diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 512f2d9f63b..96021aa453f 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -169,8 +169,3 @@ const DumpCPUOps loongarch_dump_ops =3D { .get_dump_info =3D loongarch_get_dump_info, .get_note_size =3D loongarch_get_note_size, }; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return loongarch_get_note_size(first_cpu, class, machine, nr_cpus); -} diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index f15a7047691..91ccfb77e78 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -275,11 +275,6 @@ const DumpCPUOps ppc_dump_ops =3D { .get_note_size =3D ppc_get_note_size, }; =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return ppc_get_note_size(first_cpu, class, machine, nr_cpus); -} - static int ppc_write_all_elf_notes(const char *note_name, WriteCoreDumpFunction f, PowerPCCPU *cpu, int id, diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index dfe5093b44a..173cbec49c9 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -201,8 +201,3 @@ const DumpCPUOps riscv_dump_ops =3D { .get_dump_info =3D riscv_get_dump_info, .get_note_size =3D riscv_get_note_size, }; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return riscv_get_note_size(first_cpu, class, machine, nr_cpus); -} diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index c18483a6754..2e84056d3ff 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -502,8 +502,3 @@ const DumpCPUOps s390_dump_ops =3D { .get_dump_info =3D s390_get_dump_info, .get_note_size =3D s390_get_note_size, }; - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return s390_get_note_size(first_cpu, class, machine, nr_cpus); -} --=20 2.43.0