From nobody Sat Oct 24 15:41:30 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=1792100080; cv=none; d=zohomail.com; s=zohoarc; b=KDeVTzP/cfNJbxuC9png1/ubRBDeNdDCOam1HcmwLpsGwfnKBh4F0urCxEK2Hj3bG1Z0/Gee+qYpbVsS3wbS+oXhSRml4kXpIvmg7Nn4ipkZ5ULwCLYob/crpBxG4FXcMndaeXVhl7nWu+uAb3tnv3oOH6CPY9dhD3/apKRO6Qo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100080; 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=Y/M54RMUqx5hotV0Hrq8hFEE7C6FuL7WLhOrk37Ftw4=; b=nyjsQr0mn8U5Wu5kEc5+ilaM8z4Vcyr6FGdLBV1VyGi1laa18huWBGvq8Wzqe+CM53sMisHIvrC41MTy0W4YgYLwiRPDDH+1iKgKCU5ZslBb+X7w8H3PRE18qWFeN8TVPGiJyjB7suephQytzqr5TCkobFlakc4E0oUxgnd3eQY= 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 1792100080731462.1579460966848; Thu, 15 Oct 2026 14:34:40 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5F-0005To-FF; Thu, 15 Oct 2026 17:33:53 -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 1xHT4D-0005AJ-MC for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32: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 1xHT4C-0002QB-0A for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:49 -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 69FI3gLL3902249 for ; Thu, 15 Oct 2026 21:32:46 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb3serq1t-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:46 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3aaee1fc104so8197268a91.1 for ; Thu, 15 Oct 2026 14:32:46 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:43 -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=Y/M54RMUqx5 hotV0Hrq8hFEE7C6FuL7WLhOrk37Ftw4=; b=OLmUZr166OgNj7w8qetIu1jYxzV RxsiqxBPJsX3oyn11Im0WSVcfUeDcYpgyZmv60X+6/gh4f73ii5wh2FR+nqKKxMM NjhrCj8Iv6WONHkXWGbeQmbpMPcCPv+nWohrWbisZ7W56PhBZG4twYKIyvQZUszB Ed5uUS/513ulXysKfsSjqdQRoGBf933pUdpGi/zYLb1Ta/8FaEQ43+wQB2xlYuF+ 741CdAsOT6RHeKMBe76rLFoNIIbX2NuBQ7x5v8G7nq/Z//2NeJET6Cl2G0AQEDPH 9A/mVaLoXP0AcipceUWrr8B38ioCCuFAeYQsYLQNReuSm9UVK2AJWb5JLZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099966; x=1792704766; 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=Y/M54RMUqx5hotV0Hrq8hFEE7C6FuL7WLhOrk37Ftw4=; b=iN7irs3Kjkm2Nu0+fvwwU5t6NO8GVxoY5CYNhUJwM4y5hon85hAeoIxlQY0MeNE44/ xO56syd4GapVJFf7kaz1S5cGaj6Xbu36tR90wuXgebmw8+CHtBIFuADszY1kpo19dyGG 6fSVS4Y2hj3pMnhDer4MF9rxt9ATfFrUESLTtNzYYfuXHCMZsUaFyWFDhIVwMWwmZTaI JMxu++zRL7P5TJbudGkNf+gsWXCP8ikwwOO376cjaRdG+sqoMvlijblw/nsrpHMD7ape QVWvOGU/Y2481mXtuFmayNa1gXRT7x2lN3ewx46A726LtSQ//CKUCW6UidiUrf4D42ED jk0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099966; x=1792704766; 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=Y/M54RMUqx5hotV0Hrq8hFEE7C6FuL7WLhOrk37Ftw4=; b=Y4J8i8sVPEOXips9b8uxyOLapY5J5f8MyJk2c1NvQAlQCz+rPGnIjYc72JKzRucnWD fi1LGa4Bpf1wo1Hr4Vx0QB2KIM+Z6x8tN5NOz6ql84I/kvWeN9beaq44KOIGE+UQ5glp ny+QaQ7kbkcHcnQe9vp6o5M7VQUJ0WOo8fiBCwO7lK0jCFnnlj7D1me9cHRjBY6Q6YCn Fdf5gVsfFMcoxFcyi0Fn0PXzXPxaK8flA3i7KcskXbwdVGAg0JMM7ld/JVftp5bbbb6N i7ImEp5Agoohg86JyvyEWNb/qsdqE3wKBM2Ck+reOGew/IGcEY/0U5auBx80/cfio2/l HG4A== X-Gm-Message-State: AFq9FYLlvc/uLH9zK+bNOHPZ+GceQgAsH1VXwUl+JsIFOZ3v3JMAUPyr 6c4VqAct8GiAC50T0aM2oO4o0FjOJLLsjGyGryPUHBi13x08+KqaG1H6YuAEFLZHlSRq7nm3X2v VTrDLig+R7eLDexcAqbX+RMwb6c0WdBcCmMcoZCQn0awO8mmvev8HFwDin2YKrqOfiA== X-Gm-Gg: AYBFou0zNAlDGuAX9XmS2dJpSNVj0jHI9Fi3op4wrIyZo0Eiym/vyLMlUrNJxbVMe8l 2rCDit7GeeHsr1McCFKrCsYQolHvdBjbX+GNRzSuFZunWa+XxBPB1k6csI1fpu9sVzY79YF497L tEh7pTls5tKEHgI7p4J6jQQaf2ACX1iu6+jJ1Pki83f63LGkyba+48sMw+KtEQOBiWcHXXs5ZKd kzjpNhodhwkdyAkvmQEpVtDuFbTbuFtOwemgJqK7lEzK/zLDGiVHmykU9E+OxFYKBN2yvYOYGog y8kMXQI2crJQkAbVqwrJvFJZfUn22YOeYd+JfDWliVSCDbgUUuYdmq4m+bHJ+kL4miyx1HZVgUe j6epY5iAPGdTH4oxKSu+eHlE86WUezu115RnAx3w0tOT5JM1zYy/lvmK8T1ri8u0= X-Received: by 2002:a17:90b:1a87:b0:3ac:a6a5:5743 with SMTP id 98e67ed59e1d1-3aca6a55a10mr2513438a91.32.1792099965525; Thu, 15 Oct 2026 14:32:45 -0700 (PDT) X-Received: by 2002:a17:90b:1a87:b0:3ac:a6a5:5743 with SMTP id 98e67ed59e1d1-3aca6a55a10mr2513416a91.32.1792099965010; Thu, 15 Oct 2026 14:32:45 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 01/19] hw/core/sysemu-cpu-ops: add get_dump_info Date: Thu, 15 Oct 2026 21:32:18 +0000 Message-ID: <20261015213236.157767-2-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: PLdh5dH6vNXgmcpv-LctIeUmxJ0HcKkO X-Proofpoint-GUID: PLdh5dH6vNXgmcpv-LctIeUmxJ0HcKkO X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXzCVcv6ZWmJj5 SWSI1HmXQIH94WGSOjo1eK4byOorebQQEnlmJDME1UzK57/pGyKiHv2vZP6lLePQeaBIzioqynl D+m8UadMJBvA3D62u5uBLYV4LFiOsj4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX2M67rPGz9go9 Qe8rLsYuEtrFDiCE8nraYjH2jYwwh6/7PuClbBNY0DRUX0TidgpGY1NI3362CVyzOuMMWUavZOt oCAJ3NRhe8kbfJFxndZ8LuUUbRLWCwkInIK2n7ck+avpuEuOw75cmQOi3uf2Wuc0Ky4Xt3VN4bQ 74+ZQBjv+y1HfHEhYi+g24go0Tc/pc55mY02MYpSDUtRLr5TVHoCB8KvgZKV7AlurZzkMjuqm77 1uKD/dczJh0Rmg22UJK5+jbsACZAAy1vnIv5uFz7xK2UVsGLDJrBsY2X2t81xaGfYoV/gpf52ZW zlniS5S7eG3WWUEMz5NefrLYFx5g+amDX7UTYv9FI7EBM4NYdMgtas+5ykZQ78sks2UrHbZR4xd S0m/UfipK3gPU2uy+i6RIrFH/YU0fY0oxJUTwQjln/UFIXrrqjwnEHkKFuFkvCyI5OZSZVkdV2F vdt8o+19esiiA0Ge4IA== X-Authority-Analysis: v=2.4 cv=Se1i5fRu c=1 sm=1 tr=0 ts=6ad1467e cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==: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=s0xbLSvG6KTaNPbiVawA:9 a=rl5im9kqc5Lf4LNbBjHf: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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 spamscore=0 malwarescore=0 priorityscore=1501 phishscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100082518158500 Content-Type: text/plain; charset="utf-8" This allows a specific cpu to declare its implementation of get_dump_info, needed by dump. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- include/hw/core/sysemu-cpu-ops.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-= ops.h index d125540262d..0b6bb42dc2c 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -11,6 +11,7 @@ #define SYSTEM_CPU_OPS_H =20 #include "hw/core/cpu.h" +#include "system/dump-arch.h" =20 /* * struct SysemuCPUOps: System operations specific to a CPU class @@ -94,6 +95,12 @@ typedef struct SysemuCPUOps { */ int (*write_elf64_qemunote)(WriteCoreDumpFunction f, CPUState *cpu, DumpState *s); + /** + * @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 *cpu, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_block= s); /** * @internal_is_big_endian: Callback to return %true if a CPU which su= pports * runtime configurable endianness is currently big-endian. --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100025; cv=none; d=zohomail.com; s=zohoarc; b=G8TS2lIoQSjgZbpCSuId8VJRyRYQoUk/da7pB5R+VkePgVgdue7lbiipWp9TD+A2GN+HSVY/mWuJnpx4wZmqV+86j9fg8xo9wcJODr5JnlJCb3RvLcottheB8aiw2c1KQGkZl27ghT7BEYkRJUT+/3bPdI3AS8Gp5x8orfLpL7E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100025; 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=iCRqlkkzCYddHihwP2PUyuFi4idMgYhU0tb6teY8yCU=; b=Q/hz/l7YHhqrkifNhkpKjXo0xkMI6bOTSHJZEcaAiCcnCAml+qtKWazHhii076dG52MCWm0IIM3BoIS/nOAX60ic4Y+2JyC3k8offRZHbUN0oRPIRjTE4yMurAx9ObhvzusXSCtjZyLt8IGQb94ckMLIdT75QZHhSffrz2ryrNw= 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 1792100025642227.43529560571574; Thu, 15 Oct 2026 14:33:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT4Y-0005CS-3n; Thu, 15 Oct 2026 17:33:10 -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 1xHT4F-0005AU-0J for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:52 -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 1xHT4C-0002QJ-9O for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:50 -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 69FKOW7b3462817 for ; Thu, 15 Oct 2026 21:32:47 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hayu69v4m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:47 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3a8ae5154e7so7575863a91.1 for ; Thu, 15 Oct 2026 14:32:47 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:45 -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=iCRqlkkzCYd dHihwP2PUyuFi4idMgYhU0tb6teY8yCU=; b=Vt7DQJut6h4jK8fMM/yrILVOydb mlUimwL8a+Bku19dY+0XcfZXTvrZ7SRSvNh9HDaDDwrLlDVMwRNRwaEKNNiP6l0t BFoi5sLrCm3Z0tug3chtzDzb1Xu71uU2eQO37HkaItOT4AFD1w9MfqUiGUFR8dXd COC5hsoSvZ2zA3+6/LCdtFW4F8+BPrm+9eCC6XcWVEd1LJxUhi3d4M0SbPgw4cYl CqHL1jv4CX9oDpmjEMX9C54W3Dsr2bm5BcCsHZ+M0seBLPXEt1UkbcgLwuYpe2n/ S90BaxtjlNupNujJlaMW6mfEZ9A/WmnWqBaylpYlYrdYhRM0dk/RrmMDL+Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099966; x=1792704766; 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=iCRqlkkzCYddHihwP2PUyuFi4idMgYhU0tb6teY8yCU=; b=eGigktY3dFq+ReCYlvwDFAhAbNyN60nx70ZyH0mVnGH1E6AV4Iic1RhsmVoR5KmnKT ningp8o3gmfHPI4z0TrqoykHiOO3S871pMf17sSo9sGijgWCmtCHkkajljmYjVYdS7Mi iDiYnI3SDHNAje4q0Dw4uV6wVCsYec9Qv+xiBHxI5oMYdHiKDw2EC+V6s6umISKljNnK 9uSozVZlviNa6zd7hw4Z4/PrabT50eLQnXiXKeIo5zQ8fZqnZ4Qnm3gopd8OdRnpE1jT 7Vq2p3WHVV/M0K7OFMgJ0f2ApFoOO00RbhC8EF2SKucrPHQyHBvd3IwF0oaF1sxQEsIA ou4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099966; x=1792704766; 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=iCRqlkkzCYddHihwP2PUyuFi4idMgYhU0tb6teY8yCU=; b=RbKEXjAYPOAuAhiLwB79HYZ9LJqeoVayMY5iyLzuc894z8R+Av3gsIjwZjvGvDhkd2 2Ax37pQpIPVVT8jMD/dJ1SOpQtxeEom/gPsq6bVtUkruPZpDFHlLPku776qCUMazkiXm 7HgAi2/Z88XW7dIwyUZGPXmSrzR8qf8V+vPDlutZOXGrIS4kNRNmj75PgIc5qrfbV8mW aSddIuBmwfgdo+FLxLUDu2gy3yMClpyX5V/s8lit/yRAZ9xcWe5Z0jTVTb7NdsG47w9E lqSTXcMA1wDB4iOeQqEMIqY3yEpkn86KWazOgJ8Qk607Pp121pWIopZaiwUsijQsn8fK /Btw== X-Gm-Message-State: AFq9FYJlM8NfWKbzXKBB4i0UoiTvknA2QRhU2Bo0J4XrsWKhF7ZdIYtH VdvAL9KKSccP9IzLawlRWkO5aYMCCusGPSRn2JCeMf+bjWSk2MejQdnI+swQHBM8RxaygQCD7tK CMcDPgKluUl58xgdYfMaL/lzVGyLixHfM4CJQM9ckEggGtTTJXl48KjUz22a0RHiaKA== X-Gm-Gg: AYBFou3u8/JzT8OBnk2d4lPmkQGebhaALKECQOANmIgPcAjLI9T7osjLToqGupzAZ87 NxxtzOSTMmCEMKmwfLbaiSX344dvpLWsvWyxnyoVG5hlEZXfekmcgKMmeRuIlR951hbxgIRJ+e2 ynVqX1H0f8zaNTV8J87cPb/IyA6S9B+1zjhq/muaxGHQaw7ofRmUirdwxMai+PubFCnF+Nk8nnc BfdDEPVwC2I6aBAKOtNjEjbSkvKykN94d88c3rBgQa2pkA+gUG9KsklwTbL3Sg78OtvVlYTKASu ROGo2YMcfg6kpHzJletz47+ZA1K/eHAiVvNDnHL1CUqCV1/4PWLvG6/wBrhhCu91kf+gjH1+qcH b8G5WR6f8/Gr8mtZKcWm9w/Rjqnc/WE8q90/5ItrvLT0NbnsLZV9FbLAaoUvxcWo= X-Received: by 2002:a17:90a:51c5:b0:3ab:884b:659e with SMTP id 98e67ed59e1d1-3ab884b6b57mr8971381a91.9.1792099966250; Thu, 15 Oct 2026 14:32:46 -0700 (PDT) X-Received: by 2002:a17:90a:51c5:b0:3ab:884b:659e with SMTP id 98e67ed59e1d1-3ab884b6b57mr8971368a91.9.1792099965717; Thu, 15 Oct 2026 14:32:45 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 02/19] target/arm: implement get_dump_info sysemu op Date: Thu, 15 Oct 2026 21:32:19 +0000 Message-ID: <20261015213236.157767-3-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: 2zHY1sfzdizwWCt4ThMcNssnC7_td1ma X-Authority-Analysis: v=2.4 cv=ff04WEQF c=1 sm=1 tr=0 ts=6ad1467f cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==: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=jvuDXlCAtviyjr8SAjcA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-GUID: 2zHY1sfzdizwWCt4ThMcNssnC7_td1ma X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXyyXHOJe/hEAx g5BFFG4JBVTE4K6ZoWmuRiCmXldBM7sHwPfMCb3O41u1XtxUgy2jCJfvPCrunlwOWznmq/6VnfW TRUGnVRZ8T84DmRnxJTQdAnJsrBZ6giUuGnZg9JmmpYChZXU8TBhp+0Cikc3Tcowzi6WKOljzE8 JW90VLR+hzRF94LAprgqaAUQG1UUaM86/eG72C5d5C5XghZ0YYcVNx/sYtSvkVYq31TwUY665nz OjHZ3zyv/aFZymUjhgOx/CrYDTGRpbVrEonaUNrUlVgxCW7yBxnVKV2aFSb8HvvQqiy4m1Udh7z jQ9mBwKRsaCY6kI+jBfpPxoeF/kMabQixBxVv0ZIgX0rsy02TMBL8v4p1J0Kw654AiJ1rwzThND ImUrlHQy6LRafz73CmuDMRaaoRcQ7VJAkU/tzjFl5U7gItX80gYijxCWXR1SWDQiwFK6k/QkI2E 3x266rl2rB+xFFMu01g== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXyz6flZdPDs+q phsOOA3aTfKI8NIWwuI2QcF1xAS1Njrxs2YGa4TMZL21s59Egryw5HNF/JIvwK65O+1TJIG0hK+ /2U3rz8arRfBMi2o+RA8ZCBIrSISGa0= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100027831158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/arm/arch_dump.c | 23 +++++++++++++---------- target/arm/cpu.c | 1 + target/arm/internals.h | 3 +++ 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 1dd79849c13..98eecf3d26d 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -385,21 +385,14 @@ int arm_cpu_write_elf32_note(WriteCoreDumpFunction f,= CPUState *cs, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, +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 +432,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =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/arm/cpu.c b/target/arm/cpu.c index 81ec1ce21c6..7bf0c5e74f8 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2569,6 +2569,7 @@ static const struct SysemuCPUOps arm_sysemu_ops =3D { .asidx_from_attrs =3D arm_asidx_from_attrs, .write_elf32_note =3D arm_cpu_write_elf32_note, .write_elf64_note =3D arm_cpu_write_elf64_note, + .get_dump_info =3D arm_get_dump_info, .internal_is_big_endian =3D arm_cpu_internal_is_big_endian, .legacy_vmsd =3D &vmstate_arm_cpu, }; diff --git a/target/arm/internals.h b/target/arm/internals.h index e849e357cfe..086d9574ced 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -30,6 +30,7 @@ #include "exec/breakpoint.h" #include "exec/memop.h" #include "gdbstub/enums.h" +#include "system/dump-arch.h" #ifdef CONFIG_TCG #include "accel/tcg/tb-cpu-state.h" #include "tcg/tcg-gvec-desc.h" @@ -438,6 +439,8 @@ int arm_cpu_mmu_index(CPUState *cs, bool ifetch); #endif /* CONFIG_TCG */ =20 extern const struct SemihostingCPUOps arm_semihosting_ops; +int arm_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks); =20 typedef enum ARMFPRounding { FPROUNDING_TIEEVEN, --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100025; cv=none; d=zohomail.com; s=zohoarc; b=EFszpgTZ+akn4zaRe/rHhjnxjMIjddZfnZDqERNQHIuGKXUg6cpC/WMXlqIA8jx2qWDSXJ4FzUF9vGdPuw7FY6q+9RcA5wM+HNbCryfy5f1M2Xl39R/Mb/lrRiJjrqpwXxN5iJN4D+TGRLlzo4pQe4r8xzUt1NMTZzyq2tZt4RY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100025; 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=M4S/luozy0qzOifo+wf+UAtTf6pXhNYbZ+pAYPmVuXY=; b=m4u4chWwb7C0pbHr9Cec6UWZ4zeKOVO2J9Q3tsfTv1OKr6B4UxfoAlKGhzsCQa3rpxS2Q+RfxjnRKVSe4a29SF/yrNdbgHsPKqkF48tE8wSE8BU1HvXSQHhwzSyZw/TeaBiqYNAcTHaHLiOS+an9ZfTo9fmOIHRG17SL6OO/umg= 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 1792100025822784.4704563306491; Thu, 15 Oct 2026 14:33:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT4Y-0005Ca-3v; Thu, 15 Oct 2026 17:33:10 -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 1xHT4G-0005AY-Bs for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:00 -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 1xHT4E-0002Qa-50 for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:52 -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 69FI3VfN406161 for ; Thu, 15 Oct 2026 21:32:49 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb3sa0q15-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:49 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ac450b74b0so4365680a91.0 for ; Thu, 15 Oct 2026 14:32:48 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:45 -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=M4S/luozy0q zOifo+wf+UAtTf6pXhNYbZ+pAYPmVuXY=; b=J6W44mhLSQ5OpDRQ4b0uMV6eqM3 oXVKQ0BBU8tEkpqZx7rGhbt3yXT51dL60lvC21YqGsmMENJbrsQ0GEmkP9OR94rb /ddfGOEnX+prS6qcFcHsznz4Ma5bQZzRbumO/yShmuhpUHXKR3719EpbDz4WlPiN SVocV57H/pJChtoFyfWXZe7gwB9KA+dMshYBIIF5K92NH6eTkEoiMDYJifEfeER6 mICxPh8suUoFLbruZoE4FOljTHs5VxPuEFeEIo2rn+GTUK6GsWB8Z2uxWjQiRBvH Z5791PWCsx17w0Cp55XTs5T9o2RUCFi8Wp8k3oaPgRSjb9ZO2oEkub8uAIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099968; x=1792704768; 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=M4S/luozy0qzOifo+wf+UAtTf6pXhNYbZ+pAYPmVuXY=; b=Fm5SGhNDa6q5a3I1aUoqRVw/eViJKAM5te9ByTTQ4HHlyU4Y+GDrbonP6YdaU90NkR iX3SsSmpWprJXq+zbLoOYO2XYGVdMyj/qE43X5K1KsrnxTctwoGwM4aCnUEAHZZTorTq 99NBnpjjzpaSIe1Cw6r9i6KpV9jRttJo8oIaNwgY0LYLMv26ifXB76ZT2mMfrPnwJ+7T ps9QSrGkWRHGZcbLI74Jv6jYXnGZuaUoTsCUbsH2iHwviQZfL2Vu46YYVVxmU05ez34f CHlLMnrmH7KNkuhUB8l3yQR1bYiRcw3s65qOKv1M3yxbDSxggNRKj58sp0g331cZaQqM ZMog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099968; x=1792704768; 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=M4S/luozy0qzOifo+wf+UAtTf6pXhNYbZ+pAYPmVuXY=; b=y5JNJirFBsoVgM1Fl+ChGLby1DZEQvF8Mtq43nAxyf5KuDP8ZfTHoiOmjcNKz5NyJ2 uDDxZJBCvtynVZydfORyKZuvQjFhAzBArO5HWvbwiRo2G3Mz5/3hheFjp5xhVqk7V75U LotOGEpgiLVBzf+zhgnZLqebloOh7qagidBsxTrSLsFw1lEZ8UBrZncV15DvQdl+sv5x V2xU8u2J8KwT1JFOn06aSPpYm3nm4dlXvyqQDqc7fZcHvPIKVuJhwjBcQHc0T09oGBzW zQbM0XUzkbdDP6WjarQAQIi6XJVWq9bkZPhMvw3/inIB08QAjC1nZ/K7xeotRsYG3MLS dkkA== X-Gm-Message-State: AFq9FYIiKP0d+pz1S5uAlk+x1SBua5zMgeqrdZch7jba2xGcS5ZRUp99 Onk4f1ITfVx8E6Zrc8pe9M1uQ3UTwRysFIl+RcnyXAAH5nhuwh7PddjBGl4IhxDcRlE7uEEtfD2 pkTK/+fFgd6+6HNXeoBxmDmNJX9YcciQ1G37FiDIg/1zYIynWI9nK+JPu2nsimhjghw== X-Gm-Gg: AYBFou3ey2fTpHx4HlqH79zmP/8OkBPrhAL0OpYQ2VXKKoMiHwyJdsJHbBa2ieVi6TE YCwQgkyaVXSAwSRqjK+ZQUh0/mYHM9/whscqdYqIJ4fM1LoVzTIHfDg7zadb24UFRmjaSJnZYMA 5V4qRJB6IAXZ/h96r0QFtDxKZw2fVuGaQo8DsqmbdWP7Deh8W3V121S+Cu1n3n+FHrmwhDeKSVP SH0WIfaaymig+DBJJMxzdAUOr+UxJiWjF3hax2dO1FeLF3eN1m/cZamU/dK5bkSYyRm65HRqL7h id+6+UxpUsVb1CykPSbQKjCsD6IOR7S9nOksTC5W4oqR65ziFErXSitUdWSKXBObjdZQJtdxPg1 SRhW7lvrUKBVTg5na8mv6NLsCMh8u6HSL12h/zVoJajpt4eZ7PWoYZ4sz+5EeLKY= X-Received: by 2002:a17:90b:4d0b:b0:3ac:8527:3fc5 with SMTP id 98e67ed59e1d1-3ac852744b3mr5246175a91.3.1792099968072; Thu, 15 Oct 2026 14:32:48 -0700 (PDT) X-Received: by 2002:a17:90b:4d0b:b0:3ac:8527:3fc5 with SMTP id 98e67ed59e1d1-3ac852744b3mr5246109a91.3.1792099966405; Thu, 15 Oct 2026 14:32:46 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 03/19] target/i386: implement get_dump_info sysemu op Date: Thu, 15 Oct 2026 21:32:20 +0000 Message-ID: <20261015213236.157767-4-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXwO3Qju/0LABe LCVRqRITYvwIMXPnQMPaMeO548ma210rXZBMP+mvN7SW4fciw6QMPx0vfIoWMKJIL/kK0YG5ksb Tzpc49DUwSIxUtOIqDJc7i0LdVQ455Q= X-Proofpoint-ORIG-GUID: VcN5MmVynDi4RFfbTBaCR17y62Lq9UxO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX/V0etJ/Es5zg Zror6si/Z2Uj/BRB/R8hVs8UxA9a3RIyTc9z5POwHIOfxeIX/0eEpMh8uV9r7gt2oSAeXxYKsP+ P7jGbc9QVbavcc2ykFGxvssaPUmUYadCAP6Vu25XwTOegkO1z9gQMbKFwVpFvNYLi18Rz8rMjNx HVWa+w+loN8TD5rJZYcVQZfxK4RZSlKHsdc4IX6efqOcqrRUPcprIcrOy4Q+tmX9Em1chIMj2Sq YcNY3OFBStcHNJ7BwHwJAO0FPu5rjRFGSEeBRwJ8P/Ip2IA6lz4jMhkdwuNBwMWGnFlUSHkbFjp 00NajXaspfi4dRuBclFYuP/Gt+9n/YKi1/oGolJgUoT+QdeE/irnDWignZ8kJc+N8eXiqIrQOG5 BApxezGcLpO4g0qYj1DO5UNbI37AQdzUwpsQRrSAay661y9iiYNgFwmk6Y5Bv2uG+PG1qh9ECFP 35jE9YR1ZaWhMbv2RXw== X-Proofpoint-GUID: VcN5MmVynDi4RFfbTBaCR17y62Lq9UxO X-Authority-Analysis: v=2.4 cv=AN0XGc5Z c=1 sm=1 tr=0 ts=6ad14681 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==: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=KBKSk-pTE1mK2UdVZucA:9 a=iS9zxrgQBfv6-_F4QbHw: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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 phishscore=0 malwarescore=0 spamscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 adultscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100027771158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/i386/arch_dump.c | 17 ++++++++++++++--- target/i386/cpu-internal.h | 5 +++++ target/i386/cpu.c | 1 + 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index 16e47c4747d..d5016c198cb 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -16,6 +16,7 @@ #include "system/dump.h" #include "elf.h" #include "system/memory_mapping.h" +#include "cpu-internal.h" =20 #define ELF_NOTE_SIZE(hdr_size, name_size, desc_size) \ ((DIV_ROUND_UP((hdr_size), 4) \ @@ -394,15 +395,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, +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 +430,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =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/i386/cpu-internal.h b/target/i386/cpu-internal.h index 37c61a1bc3d..9407b01d415 100644 --- a/target/i386/cpu-internal.h +++ b/target/i386/cpu-internal.h @@ -20,6 +20,8 @@ #ifndef I386_CPU_INTERNAL_H #define I386_CPU_INTERNAL_H =20 +#include "system/dump-arch.h" + typedef enum FeatureWordType { CPUID_FEATURE_WORD, MSR_FEATURE_WORD, @@ -65,6 +67,9 @@ 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); + +int x86_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks); #endif /* !CONFIG_USER_ONLY */ =20 #endif /* I386_CPU_INTERNAL_H */ diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 74eebeabd7a..03efc411ab3 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -10919,6 +10919,7 @@ static const struct SysemuCPUOps i386_sysemu_ops = =3D { .write_elf64_note =3D x86_cpu_write_elf64_note, .write_elf32_qemunote =3D x86_cpu_write_elf32_qemunote, .write_elf64_qemunote =3D x86_cpu_write_elf64_qemunote, + .get_dump_info =3D x86_get_dump_info, #ifdef CONFIG_HMP .monitor_defs =3D x86_monitor_defs, #endif --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100111; cv=none; d=zohomail.com; s=zohoarc; b=XtLekG9VgAvvwek11rCs2YgHSBJe7IV+tHN++pK8G0Ke6ujFhlQOyhZ0Z4nJX3F9x0ZFluvdkP0l51YCfH6cBf780nQHvzkSOg8OuBCZGnxhBmpOz9f/n7nAVsOs5nybSujrJN5TJ1+hVNj/JjCQmBkzjMVDxKS6wRQvZREvYds= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100111; 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=X01T67ZTGHTfX9OOwxzsPUVjOUZ/7IgzOjU5yYO33zATnINRYE2atvLCId0undrcjSH4+sTprlBT++r5JzEsKEQCol37L8JMJN6aJnswB0JekVgMKD1TNn60bzOstNf3Q8Utj+UfRBNLUooQqXWWxFoeM7jlB4Q2x+Y1MjCChN8= 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 1792100111184178.2151832207078; Thu, 15 Oct 2026 14:35:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT4n-0005EV-CJ; Thu, 15 Oct 2026 17:33:25 -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 1xHT4F-0005AV-CC for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:53 -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 1xHT4E-0002QR-1R for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:51 -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 69FI3gLM3902249 for ; Thu, 15 Oct 2026 21:32:49 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb3serq1x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:48 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab2395f104so1770937a91.2 for ; Thu, 15 Oct 2026 14:32:48 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:46 -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=D79vZw7sFGYkMSiN8eWEO+XdsuF MM0tcLKr4PLRiCobK+WMUAlA8FcksebuEv4IrbDvNRRnPoXExtqf91nIOdKP0APK WCwihuo9Tswrp4ZlkgWhz/zg/j+3XrPiQaLXV+koKdWyFfcQnm/yNVnH8eJrnI5G VttL13O7mwnnqFZ3HOGN8zHSQpUZuMdLyHzrZ2xwF+GMl52B93q0jtmGhBInMTds MU9xPyfklXIizsy+bPYe2SQbN3Lg6O9TrqaVuY/6lPwjfKex+44+ijBQ5L++FvEJ clXCA2zWEvoZhBf85kx7gAzsRqwIEhrnOmhU2Cur8bUMgWzmPa/71sAFMYA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099968; x=1792704768; 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=Sa64t0w33PJErZpGlhzKudWOWol6uhW4ZyVAo/FlWUuBVXpQOPoqtORzPVQ5Vs1Vqo aUWduCovT0zQi7dHb5lb0j5UgaEJajzA3DxGhphIFe8w/ILs3KNlUExoA2D5EykNv+UT iIxH1h5j2uCtTIQxVditzpkTuBf2nIl3r7CmyN5HoVonxaedvBCftwCshKShpXfsgoQu Bfa31KWwNlL3yEJ9svn4TcRh3rqBh3wvSCYjl6Ha4axOnVayL0z2eN1uDU+0xMkFW+tZ JhNk+9DKvCHh12LrSrrcPWf2KxB8gJa0gH+XwdncU69ywmAzM1YL9PIQq4SEGd00URBQ jKew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099968; x=1792704768; 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=fcHujgLE+GUjFDfd/Mx1t1OPIEy8c8LH+di2g6GhKNiMbSsP7qS8jt0OLb/96vjYJQ +dx+orinzBpPPQDvOt0Bd/edkvDRPXO3LwAGJqVy//GXXUwwOmghcyo/JME2HBlCgR2a TMpsN5zPvFb/MpCWbPzmFrddrqkIt69OgGxBP8EmzDpqMhORgo8BpewkP/qSY7JDyIbs ZNra8ODUV+8dOBrl5ZY3jCM4VMnr2MHyMaS7+iAEjR1klGIbTUu8hWuTAOGz0XOf9KNU kWdZcyrKT8kakNNYsX+Vq1aAPq+QHB3pViU5Pj53tvAs++GRahNcBkOps/+ppLyeQ5NJ zc/w== X-Gm-Message-State: AFq9FYLqKGNOC3sQ/ljddz8DFpbk3DT9sgoDvyZnDwq9S7zz2PnS+Wru T3JKfIc1IyUzjxoW4nqzSBlX6WLf+s9Cwz6KKpJeto32+/Df1k71oReo+McoRDJbcli3gS1PnPe d9CKJvdrAXwy3WiQ6/y+0yQ3Kf4TFgPA6WBEHZx/piHLfPB8qW5xNPcYMRMbYc+OUSw== X-Gm-Gg: AYBFou3xpObgXqmEMAabazEMdjvX/hHR+eeLU8TI0cLW/Wyl947KZ9PMX6Z8X/1m7mh DWQYJXoasJ9WAlTYUXH8wEVTmIjcv658h0uTnxF/TT6/FPPcPk7Zfhku6cKSIpL6uz54QFWr34s AVh1/XGtizZZHxkbnkV0ZdDy6OLqKK6kDnLbx4pHgnw8C3dUE53WHcBR0dnI409T/94qAFR0mVp upvQAAW9zuVJ4Fb544+ua3zOY7uhnxz+gaLDnB8o3gOGOjQAKBmf2KOS1Tai5wxT1pLgAtO/ucs 0CAL+SlpNu1tTFwffLLx4WvyQELookKTIP1XZBfKMKVSofgGESjnId0WjR7FOUKTtv3IZeToP7B Cvys+QOoqm8zOASnBNdCfrHGHR6duOIAS3VDtzB/lAsua0zUGpm0UatCz1fKaWOM= X-Received: by 2002:a17:90b:4a4d:b0:398:c3ca:1ebc with SMTP id 98e67ed59e1d1-3ac979b5a2amr3727063a91.18.1792099967841; Thu, 15 Oct 2026 14:32:47 -0700 (PDT) X-Received: by 2002:a17:90b:4a4d:b0:398:c3ca:1ebc with SMTP id 98e67ed59e1d1-3ac979b5a2amr3727043a91.18.1792099967365; Thu, 15 Oct 2026 14:32:47 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 04/19] target/ppc/cpu: constify cpu parameter for ppc_interrupts_little_endian Date: Thu, 15 Oct 2026 21:32:21 +0000 Message-ID: <20261015213236.157767-5-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: UCO3mJEl7Penmg6Z59BTjx7NUGJBI_Li X-Proofpoint-GUID: UCO3mJEl7Penmg6Z59BTjx7NUGJBI_Li X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXyYTFtnRtVdA8 D71nxPuLUM3A6SDvPZsn0GnAHGcyIdRc5+LrM/3+KkxYANA4iGOpvt9vW9cJV/5xnPWWM+BdATA tdU0who7yWGZbA54yv9NvyRpmjISI0M= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX0odH1SFQmOK6 euZLztbT4XyHfJnod2DWiRcGrUcySgo/xsqG6XcdS0XanGrSffUXc2NW1j3a0URew7wCd7NGlFL nBnSfjDkqg+Iwt+3vQAiHbeaht7lYYQiFJASQeamgccamYif9++VyFcoNz5SrXI/SxuTT2+PsK5 9ot0SHne1Pw6NM2YXPs0i6V+klghW9BrVCtTNPLPGBk/CWc7CffYv0cWbezEngp5cmGXmBRMwDP /AOrl7SoYtMo25OAZjbpqTYVfI4zVWie7jLEDThZKYeyxHW396y5iYl4VvA5NuTChL8WoNkSVBA JFtK2pbWMOzI9u558TXWzLqTTQEGMIfmBsv0S5GguLXDTSAtdTTr3Sz2d9L2/6KztAwuoiKMvAV HbBowT28jS4k323oQuVf2krWfVX2Tijzd4leNu+SqCEofyybTAzQclvFEJwg5JFMYWn0Dm0Y0HX /OZznsQdrgD8ubEA9rQ== X-Authority-Analysis: v=2.4 cv=Se1i5fRu c=1 sm=1 tr=0 ts=6ad14680 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==: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=3tol9ANpHmc3mX4GjWoA:9 a=iS9zxrgQBfv6-_F4QbHw: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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 adultscore=0 spamscore=0 malwarescore=0 priorityscore=1501 phishscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100113054158500 Content-Type: text/plain; charset="utf-8" Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- 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 Sat Oct 24 15:41:30 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=1792100133; cv=none; d=zohomail.com; s=zohoarc; b=BqWadLgeiwv2Rv1i0XoftAfW1HeUEFU1PwnlNz+3yHOMgFaIYd1HUXo2BfFBTyei3ENRMW5ULI5TtRv4hq/NxNm2ZNd2WlKJ0uheeMudTLEaQ1tsGIuSlQMB3gyGU4J18UcV9g4a7PPkcEMczTTbmBcxzOXmnMw9j7EN53SOP4Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100133; 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=TxX2OsL7Q+RLoT0aPdgPnKwUpzfmYvfaP34Wbd28v0w=; b=cPXUZG9UuR8fsd0BBPi2SQoLR+O8zeYWEgCdHJsg4tmvP80jjS60WLv54r8YneZKVOhjdplhWLHhaxiA35qP4OWwp/aaZFRxiQyPtk56V1ZYgyuc1n3U7Pmaj7/nsazA5iDLt92FtiLxSMM8Lal66nja+0U+wMTiSrA3bSi6oxk= 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 1792100133988645.6949099118854; Thu, 15 Oct 2026 14:35:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT4r-0005F6-1D; Thu, 15 Oct 2026 17:33: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 1xHT4H-0005Ab-7q for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:04 -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 1xHT4F-0002Qs-Jk for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:52 -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 69FG5ZLA3493025 for ; Thu, 15 Oct 2026 21:32:50 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb21ws6br-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:50 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3a8af172664so1896580a91.0 for ; Thu, 15 Oct 2026 14:32:50 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:47 -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=TxX2OsL7Q+R LoT0aPdgPnKwUpzfmYvfaP34Wbd28v0w=; b=T8Mbe4JKvrSNZg+lszCWE2IvxIo 0Xo7jPaerqFm8pUB4SR/bChspXZh+R/IOuyavU3ohVajF/8+hev9mcggjj9iyasP tDvfLcEtchCaeKEmV0mW6wxg+RVeKY8u5OerJqd2meJ5Od0CPVV1fHrce7wjhY2O cTjZT1RtMYRWe3XpoCyYXuURagu5MmXgKme2Lh4MscmTOg40C/7CC3GpvMGybEcc /H8dwXkC330Q3rhclpewz9/RcFZezss1+51xdIq4LDU3ItHg3yIF74kqVZbYE1NL rlTEm73z77bhH7SdB2uf+WHm53TBKhSZVbF/T7HlUecdb231+vzuqr8rcgg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099969; x=1792704769; 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=TxX2OsL7Q+RLoT0aPdgPnKwUpzfmYvfaP34Wbd28v0w=; b=EfQTXLT6AYKTouL/71B0Dw5zJvntcu8aQloM5foZTEMhxHtFpbPAmwVKg3mKi9tf3l 0427n9x/NnCpV3SJK0isdTTtNUijpoOZbQI12GO98A63G1cum6JS9jXQy0/WVNzE4exa tdzDqGXSRSVYG52j73Ru//+Nctr06yrMLVtjYpJjqFVRPPwZScSpsrp7KTYVP54w4w+a hOuxDC1EJURX/XXhLOtytNQGyrMvJE5qBBn7IXefFV1jSuYnhgGBRnRs/DXs9BpC8t8g 4TKKZGRTpDlmSD31zG4EV9LvIkbfONxA/7RBMrWpzOdAeixapAEyApHF7bZ47IKnvBDq xbbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099969; x=1792704769; 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=TxX2OsL7Q+RLoT0aPdgPnKwUpzfmYvfaP34Wbd28v0w=; b=jK/MPgiCAWI82GVSysvD3L1K1i3ZyJgua0wIaBk1iejufyLpegrXeySTEzejo8VBZ2 5Cw40yXTd5I8WRI3lTPJQ1k0XYJsQ/zWaB9RYsysI+UV6GgnHtEb2UGK51vdK3RCGBzE 6d8bz3p7iHqGdNUc/pyEXeOCW+6XxmMF8qi2RTpum/CTOuDrY1iNzUvme+B83SF8us7g tHruot+tyULqqMEWacmpH7IjIespJwcEc1zsCCaiM6bo7li1NXk2QHSHVdsQbmmrnlGw TT6hyH2EkvFVR3Mze4bYUGcCU7XNhuFYXCUoHPSLwD/vgOLCH3P3IigmGIp64zqIzqGl aW5Q== X-Gm-Message-State: AFq9FYKsSunxx3Uf+EwnNTKqAIOKc9Ka5Crt/oZlFF0TaXLo0VOSeJvY 70sbCgZ94I9luw5dXujHOnUZjZOUIjR+uaLXDo+dxljPkX2eM2kcHn3hyZFD3dxhCPfiG2jFOhe HxHxLIulTRGOsY2BPC8AGCN4ewD5zIR6kaUEjWbQzaLaZl4eD27GeTH5NuiNupCeJzA== X-Gm-Gg: AYBFou3/bNAxwbPkENB0WmieTac6QSz02Ie8gXzoV0GCCJk5MTTqV64bUNybbJZyfqC M61aNKbWZuUNv55at30xZYHZ1r4EJb82atPyzxbTl4LWmOaZri6iNiLleEEKCKFkqQbXHR76kV0 ftXhaTFZ0aK4gBroBgKHGGBH2SgRTKVyNCXCLPnpXpYTTVKv4R/9YgOjYlLEwE3ndCazqoDXY6F jNnQpmndhOP0qyVLtqO6fQCWnel9w6ByITEUCLBKblfmye0WZhWxaovOFXNl4Ll6DuY5gBYreBh Pyhbys+OpykreU0dptObR91ziiCzdMe6O3zk0ightiLQxM+HEh82dXa3q3qZNZjSbkofw72q13S Jn+ueK9IYtyafP93/3v900uBsHS5EvUV7a776+huLxhr7aKLJXBmh29Si2lbuCqw= X-Received: by 2002:a17:90b:4c8b:b0:3ac:9a03:20bb with SMTP id 98e67ed59e1d1-3ac9a032786mr3815435a91.18.1792099969387; Thu, 15 Oct 2026 14:32:49 -0700 (PDT) X-Received: by 2002:a17:90b:4c8b:b0:3ac:9a03:20bb with SMTP id 98e67ed59e1d1-3ac9a032786mr3815390a91.18.1792099968065; Thu, 15 Oct 2026 14:32:48 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 05/19] target/ppc: implement get_dump_info sysemu op Date: Thu, 15 Oct 2026 21:32:22 +0000 Message-ID: <20261015213236.157767-6-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: wEn0q8qWhKE7EY3r-XtRHm9ZYecgfDJt X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXw7kkaPse4cZf WfO29JZnkx4CJUdDd6LktdbLWwQGEtl3etjHcXVVRRdof6uywJ0lE4JLZcVlBnPHoIw7VbPu8NE 0lXyxI8zt7oK1CsbQrAIygS8T0xP9vEXVoHhrSWlw+aoxHW9j0OWqJXe2fEFkGfEjBufCMTQjL1 JwEgd/17o3gnVxrvsqNJslbKX+WBEZFFMwW0XEUGw6WqFmCYvZdDOtnmqTmUhFuXsuFxvT8UJa8 Uu5Znd2m0DskWgj3aOCtCgTjL0OUe9UN3kfi2v3ZcUEKX5mu7dFYwxQvw9++FBCYfCe/RHL0Hng ba5dcE6TUgilTyRpJCOQAbBBEYFW6dwAznKDW8oRs8zvsmOxUOPGESgk0Lh3G88i9wIbf/B/Aiv Yzo0RcJjPJJj7ypPlz8ci+pl4a7DbNTGhaqIzzUP3iOZcI4JJ+XFzo9G7xgOnuNw0AqRopJPxCL /3tFTQjKnLUi3WL9RQA== X-Proofpoint-GUID: wEn0q8qWhKE7EY3r-XtRHm9ZYecgfDJt X-Authority-Analysis: v=2.4 cv=R5qWitRX c=1 sm=1 tr=0 ts=6ad14682 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==: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=HC5FQ_MKihgnNVCgyfIA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXwdcs6oaeqhcz de69dd16kQVFLc5OrsrCCgPniFM3SWxnrCPI1ZUwkZ6gPHrM4jDetl152khP3CG/VXgdF+4733j QNPEAT6Jg2+Utvu45335onFFvDZSoXg= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 suspectscore=0 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100135452158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/ppc/arch_dump.c | 21 +++++++++++++-------- target/ppc/cpu_init.c | 1 + target/ppc/internal.h | 6 ++++++ 3 files changed, 20 insertions(+), 8 deletions(-) diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 80ac6c3e320..b8d0bc8462b 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -17,6 +17,7 @@ #include "elf.h" #include "system/dump.h" #include "system/kvm.h" +#include "internal.h" =20 #ifdef TARGET_PPC64 #define ELFCLASS ELFCLASS64 @@ -229,16 +230,10 @@ static const struct NoteFuncDescStruct { =20 typedef struct NoteFuncDescStruct NoteFuncDesc; =20 -int cpu_get_dump_info(ArchDumpInfo *info, +int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_blocks) { - 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 +252,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =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/ppc/cpu_init.c b/target/ppc/cpu_init.c index b711f9c0a85..5853a92bffd 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7473,6 +7473,7 @@ static const struct SysemuCPUOps ppc_sysemu_ops =3D { .get_phys_addr_debug =3D ppc_cpu_get_phys_addr_debug, .write_elf32_note =3D ppc32_cpu_write_elf32_note, .write_elf64_note =3D ppc64_cpu_write_elf64_note, + .get_dump_info =3D ppc_get_dump_info, .internal_is_big_endian =3D ppc_cpu_is_big_endian, .legacy_vmsd =3D &vmstate_ppc_cpu, }; diff --git a/target/ppc/internal.h b/target/ppc/internal.h index a20a0f9f7e0..ad01421ffb2 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -22,6 +22,7 @@ #include "exec/memop.h" #include "hw/core/registerfields.h" #include "exec/page-protection.h" +#include "system/dump-arch.h" =20 static inline bool ppc_env_is_little_endian(const CPUPPCState *env) { @@ -324,4 +325,9 @@ 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 +int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks); +#endif + #endif /* PPC_INTERNAL_H */ --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100075; cv=none; d=zohomail.com; s=zohoarc; b=iZvG/Dr7tfifm/dd4XbMb8z04pWcxjytA3FOacbpErXw6q7eC0hw7RF5GxUetQuCmZH4jab+rfl2yw9TmlXoba5LGqgNaMemg3r7cJV+ad1oJPhK5oVzomB9ra4mQqYjLFZmFm+gI1leQm59uKSAgn9LsSYsT4ZA77/fHOh0Rws= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100075; 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=V82ixEBm8lx1OxA/oRqf/zsd6icAK0eUBY4vLa0K6jc=; b=Tf9ayIiEaEi/LX/lCiFCzxW1qRrWtII2kuNGreirLJ3Jw+hklLvGzQ1ex1flt0Blca/tzSWzC7nC0o8fl9viC1joyWgsVTdThCglXg1SXZh02nvl6E+J43e6i/IUfGx9FqCh3CYi4tHklB1NC6UpalblUSvnB9QEzmQsAoQY6n8= 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 1792100075670707.083464962018; Thu, 15 Oct 2026 14:34:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5G-0005Tu-Ex; Thu, 15 Oct 2026 17:33: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 1xHT4H-0005Aa-1H for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:04 -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 1xHT4F-0002Ql-AS for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:52 -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 69FKZsM63462799 for ; Thu, 15 Oct 2026 21:32:50 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hayu69v4s-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:50 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ac77c3ff6aso2984201a91.0 for ; Thu, 15 Oct 2026 14:32:50 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:48 -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=V82ixEBm8lx 1OxA/oRqf/zsd6icAK0eUBY4vLa0K6jc=; b=EFOgQZrGmgCFkAUMFC/uMZ/mbZU mQ+FJ6apLCIZntFnoG3RKqTROBJJ91SexJHY0j/TDXLcnhuWCQIQiR83EHTE+kup 02bbZQUD8mEMVvWSB9Pbo1Q8tqLK9zH4ISDJP4XhdSPZ+4WhK9ewpAzSQ3a8Z5Ag TlkCHVmcGXJ4D4keGqme5FkIoyZIh84swwhNKlxWBYtOs1VQZE9Q1BFQT+OIRpsx AanQCp4x82TxDDGqysvHOh6+ErzO/GS36zBIZRNEO6GFo+zsJauz34TK7PCT05D5 1bWgfZKkc7fC7kF1BXClYyzW92u5EaSbUYO/Div3eHGr9puZNHQTemJOp2A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099969; x=1792704769; 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=V82ixEBm8lx1OxA/oRqf/zsd6icAK0eUBY4vLa0K6jc=; b=TUUPBvuGgQYo1y7UslMwXZ8Z57MaFUkeLFvG2vPFQg0bsYfjK+DSrVUvu3m0jkVb0e x3Q5TqAyRjX8xHW1ErE+ByFIVvdE1O6robB2GDVmEBSwm4gIYBS3KFXrJAyRLBmbwfIe gimbMI7GD635VquNfsVPMO7unFSX94hB8fqggr1wPasa75cMydvXOFOcFwoLjDhwaSvf xwQFxOt9ypEfWBft6sOLBjWAA2Lic/dKmQHmDgrUiPfRbL6WVEOkbee4BX91J5M2Z0Ur xvy1z0p6FiZzEsGlb5hyraophMDMkRs6HLpyilPboef0awZrFz6juTaTvx1G9BiIG6x7 VvBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099969; x=1792704769; 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=V82ixEBm8lx1OxA/oRqf/zsd6icAK0eUBY4vLa0K6jc=; b=CJyU1k0pADxSoNvz+OBgcdUwCoPi9t2BU223IlBk5gUkGZFTAwSwCTXE0/VPc8QHCv fJxpxGKnQuVZ5AuRKLlqtfPc0hB9JRRjzqSswq9tML1CbRsDl5Xbx1CQlO/ur4bWE3ZQ gNkNk9kHhnOdSr4sZtr5XtVleosocIPHNFmwOutYt/61ZDUHG/QBs2wUdNi1aepMKydO ssf8o1w4lZW16A5EpSZBECdf0FKtN4H07TbcsKgKkb1PiJYjMXrNNg+by9HtKNqsdf5U aeh4Zal+MEPVJKgoAgCwLy6HGIcp7OsJFbqJcc1Ep6KWjVu0PO75mcbIWS/VxwfxUSR+ D2gg== X-Gm-Message-State: AFq9FYIC7K/rhFx/vlRwciOJcDMZp/oeCkIVbOvAccsMWP/fE8tYkPOy Qcy3mqH7vL66Td/6lHLfCzlNxjlH+Fd0HfnUHVpZzd3jX+uPVzBxVxFDTYCRrDtUzEVsJPcma1l XgEqwgN8bUKzDfMR3D4qw63N+zZB40jBgGWuNztcgqbdUoNkvWIHxC33lE9uDABAqLQ== X-Gm-Gg: AYBFou31X2flLnpNhuZ8NTK8zQHMCAcr+UoW1+FhGysD+4OZnEIVPxL5SM7zRC5axpk PlgPlNxjY/NIlaxFHpeV8gOBiq+3NSZMQVwW7T0IrF/xMJ0gtGvRoKPZQz6nP0R2rLDRIxliXku ZVDjc9xQ0dIPTx42UzCDYetUGf14IMFwg09KR2ObKVDgTs2R/7Fs+9LDFCICQqEF2FVLwlBbm5K +aL3lsl73rKSPjQAHJnDdrM9+cSM07nx+bRIwDDhEEk7T2cFfVwsAQosRr8Av7nm2Q58cqsMnYV rHxqrgWq9SY2pS3NtwjInH12yHs985ExfdlL893zggbi2rSfiU7XajedvjkmG37GAv1+7buFFXK bMyv51KyUnAInlUJs6jUIJtCSLZNyJEGdrLUoQZF3Ylx1ygNnVNAOU+qxaC2eSHg= X-Received: by 2002:a17:90b:380b:b0:39e:6c68:c77a with SMTP id 98e67ed59e1d1-3ac5c83940fmr7400028a91.48.1792099969289; Thu, 15 Oct 2026 14:32:49 -0700 (PDT) X-Received: by 2002:a17:90b:380b:b0:39e:6c68:c77a with SMTP id 98e67ed59e1d1-3ac5c83940fmr7400014a91.48.1792099968848; Thu, 15 Oct 2026 14:32:48 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 06/19] target/riscv: implement get_dump_info sysemu op Date: Thu, 15 Oct 2026 21:32:23 +0000 Message-ID: <20261015213236.157767-7-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: Wm3FakUSV7dlp3MrlEv7NYpqulpluIJS X-Authority-Analysis: v=2.4 cv=ff04WEQF c=1 sm=1 tr=0 ts=6ad14682 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==: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=jz9sZypbQeUOAt_tUScA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: Wm3FakUSV7dlp3MrlEv7NYpqulpluIJS X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX4rm4nHTfxtkN pQ38F5sk7S8EOTtvz6RG9TVPlqU0Wt++c1HXpe8vHIyWbKUFS4BdA+EwZGaHB/bN5urtwt6Oex2 YntOyXbyUJHbX7UM44hT5aakv8nzmep5fYsFIlROx2HcNxGjSuOra/DaoN1DzjECJ6t2yD9Tce2 8qh9n/uAjUfxtN85ZBWTYQGfp34PZBFu7fcJXTzSmqyVgQGc4M27gxIpee2Kohrx25iYOkI8LQu G7yq8jdjaokmJXuD0ZG7CsZuJMmMxFqAnyoeoyDdKEOjy7WBZMmBXgkJIo1BUdyKE2DKj6P0yOV nUcsoaiyHp57oet/Hd7RJsSR8B1vYnGYhix9SHxdkY6CEkMuufKI+D0WD4RkgpHdKAUchMw5kx8 nndOrUfETBa7l3Y4yhajKl0RUma+JOjPDVJsmBUwpncYhFUw/CcJxoHS9cg2/BpzIZccQJ/OhNR rgXy7aSCJEYrwmoaM9g== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX6OE9+4HPUHrf hK3VrZguMIAaoDoa5t9kiDBulUvvyVTEWd9Cl/9uvT5voftwXxQAwZcyUEV4rVYfOTX+WCoZ8PP Hr5IiUYbMd/QRVevk+R+8yhxlT+S4pc= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100076442158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/riscv/arch_dump.c | 25 +++++++++++++++---------- target/riscv/cpu.c | 1 + target/riscv/internals.h | 3 +++ 3 files changed, 19 insertions(+), 10 deletions(-) diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index 12b68799070..ac9e4964660 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -20,6 +20,7 @@ #include "cpu.h" #include "elf.h" #include "system/dump.h" +#include "internals.h" =20 /* struct user_regs_struct from arch/riscv/include/uapi/asm/ptrace.h */ struct riscv64_user_regs { @@ -161,17 +162,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) +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 +182,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =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/riscv/cpu.c b/target/riscv/cpu.c index 63c709ac738..bfaaea94824 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -3015,6 +3015,7 @@ static const struct SysemuCPUOps riscv_sysemu_ops =3D= { .has_work =3D riscv_cpu_has_work, .write_elf64_note =3D riscv_cpu_write_elf64_note, .write_elf32_note =3D riscv_cpu_write_elf32_note, + .get_dump_info =3D riscv_get_dump_info, .legacy_vmsd =3D &vmstate_riscv_cpu, #ifdef CONFIG_TCG .translate_for_debug =3D riscv_cpu_translate_for_debug, diff --git a/target/riscv/internals.h b/target/riscv/internals.h index f17d011d22f..8a94aa0900f 100644 --- a/target/riscv/internals.h +++ b/target/riscv/internals.h @@ -23,6 +23,7 @@ #include "hw/core/registerfields.h" #include "fpu/softfloat-types.h" #include "target/riscv/cpu_bits.h" +#include "system/dump-arch.h" =20 /* * The current MMU Modes are: @@ -207,6 +208,8 @@ bool riscv_cpu_has_work(CPUState *cs); #endif =20 extern const struct SemihostingCPUOps riscv_semihosting_ops; +int riscv_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks= ); =20 /* Zjpm addr masking routine */ static inline target_ulong adjust_addr_body(CPURISCVState *env, --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100199; cv=none; d=zohomail.com; s=zohoarc; b=Hh5VfqSVze0VlSzDkbGZARQmDUFVa7FhYs0SBOCvlByMjqwxX06GQD5mq1O3QQoU489zYbSPEwEHNsJKvdf9NmIdcfn6kASkrO1edBZZ2ZQjBEYUhvQ40QUMRKMvCS4VnKVa6ClaXB0ONIR4YcgC9P4fv8vPskoWKBCJAvwnMY0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100199; 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=TsJrYiYWeKcg5RJ/Ucc96eerc98OYdkvfnXb5YLAsFQ=; b=O887VQrs/BPI3jeywQWnM6QuR+3/GyKFbBBHta09MWOsB9sbcPkEHXrE8UMWCSNvW6zTDE7cb/U+sokNj0c7rXBXX1+mQJF/9cZZ6/8b2MTI/uSfYt8naudMSGtfFSqRJltuwnhQ0Ay+3sa18vgAZHewjzjc5b8a0P+M0mjK2Cs= 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 1792100199132879.5652642939856; Thu, 15 Oct 2026 14:36:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT4n-0005Eh-CZ; Thu, 15 Oct 2026 17:33:25 -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 1xHT4I-0005Ae-Jp for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:04 -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 1xHT4G-0002R9-Hz for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:53 -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 69FFDPev4126287 for ; Thu, 15 Oct 2026 21:32:51 GMT Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb19m1cxf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:51 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cbb20f82a0eso3821946a12.0 for ; Thu, 15 Oct 2026 14:32:51 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:49 -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=TsJrYiYWeKc g5RJ/Ucc96eerc98OYdkvfnXb5YLAsFQ=; b=BAWh/3oTvuGT6Do4gV9Mx7JtNzP KleAfrJKiXeejLpCS9dcqGdoyP21Uo9ukobgE12jWAnuB8AhLhE/1fcKKV4jGWyV 7M378/shmgTKhmVey79U6OfsZV2oa7WzhVOvuJUCaB98TjznJQesOIxWognrlNg9 7FJfdp2wL08ntgF7gJ534Ren62CAc0K7ERAzEA7q9CK2GwdInJwOZXQFoNwcY3bo 45N0KOH3a43LaLcBPoOk5nVviVnDqYMJmMEwWagOBO7EdvnPBTToaAot7WPN8S0J TcF+UPQDHP0w8visCsOT2HKlQjKJZEvIKfdt/y4jWWr7Yww6RQsEAxkfSmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099971; x=1792704771; 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=TsJrYiYWeKcg5RJ/Ucc96eerc98OYdkvfnXb5YLAsFQ=; b=ZhcF9DNzbumdO+5gqX8aip1pE7ZMribaPOUe+XJkXY6qxiJh7Im40fjyBcU3u5NacL dD76cjIm/bhPmcWOIV+dmTl6KqI4t/pnbvg777I0GY8G1QH8Xn4kYntXOWusBuMKMmnD YKOUXOzig2wAKCMkEAwXno/GcwXc1IY9bEkHYj0ivIXbiLeDMserWtGsnbIzGT/BaTqs Uez4+L/za0B8+AlWHzCLAqi9TrThYg2Tj6b+vJ5XrCy5Jk68kYoJOtyuX8iQff1Yyuqp 4VPS9khc3YaBpmvCv2ySkEB5qhYv6pkUdO1ZVUrSf+Ha8NPzRnOioBGAQzc+7xoowZ1r Bq0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099971; x=1792704771; 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=TsJrYiYWeKcg5RJ/Ucc96eerc98OYdkvfnXb5YLAsFQ=; b=RKflT+73NoS4n0CMWlUfAsSCQI4B3TjRyacJXbeTg3RACfeuDCfLHwze0lbuvCXnUB 5xGfpKJKcxj5W95TMiZ8DqEzJpD+wSvhiJS01qibpDtKYb45DjBmfSnvUsHmYayknY/G 4JV6WAmZmOC9GvF/cIfQGtOBzDrR0ESsYgqQXi6trhMicw1XvMgP1adj947aFb2lv2+2 DugifOd3PMeRG0FpOnlFwjXPGX+L1RDK60RLdr8B+kvLcmNqO6g6jJjhXs7ZmgJrviJz uLA9zpCbN8LawFLDDaWSSNejNiqONCjRcLbrSpBS6R5YHPNUXwdbUQLIWTa9PxDGkTCL ur/g== X-Gm-Message-State: AFq9FYJm9Ja/L6yVp6aFO04YQOIyD2+jUTHWUHJMcTPGGStBZ1ibopZr o3AE96ABwGMaomzoUA8uMvoqyMvFqjdqSGGaGUI7YWH4HVDLlcVlgKivK7hk/9+qmA80Prxr2mu Vaa+oPF3au/Hvpdl9VjHphiz1D6hoiyRTgp1wnGUZRDCkpufJfR7M+0mq6AgeTf4DHw== X-Gm-Gg: AYBFou3nNOC5xBJyRAXFnMdVjhlwoJ2lcPkNo87SoWe2UsOnN/hVfGZ91TnjffGa0D0 8xMI2ebvFpRPCjYLCOZyHqKk0Jtho8sjWzjWC96gyVnP9sFW+ToVHuaq+ep6dB+LnVKjoU6RtCR ptwdiaY/gnHDGI1WCbGIoNhipLjBsINfR34Fy6+ae+YHtUBLZ1ib5EPoLxh8l6JiRhf+X+3TNUR qTcKxtFdLEfURwLP3ZM7xMBtTvj5tp5Ihp+14RgaeymT/+oW4UH19DruKH2IgrXB3jdY4k7vBOW ATtGelweh/bbB+c1f4/jFDTvkhYXok/ZXYB0FRL2AAx7qyW34zZEfJEfYyvZMfglfUVjlTERM0Y 4IYEH4xc/VNvAJPvSJ8NdzDhNDfDH+tyeQ0Rvzm+wsMWcSOeYHni92z2YoEr0UCo= X-Received: by 2002:a17:90b:270c:b0:3ab:be66:ddb6 with SMTP id 98e67ed59e1d1-3abbe66e034mr13286067a91.20.1792099970567; Thu, 15 Oct 2026 14:32:50 -0700 (PDT) X-Received: by 2002:a17:90b:270c:b0:3ab:be66:ddb6 with SMTP id 98e67ed59e1d1-3abbe66e034mr13286046a91.20.1792099970101; Thu, 15 Oct 2026 14:32:50 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 07/19] target/s390x: implement get_dump_info sysemu op Date: Thu, 15 Oct 2026 21:32:24 +0000 Message-ID: <20261015213236.157767-8-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=aLdlOr9m c=1 sm=1 tr=0 ts=6ad14683 cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==: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=tWNUsTMbvNwxkxjYQD0A:9 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-ORIG-GUID: nJgQPF8TAdR4f6Sxcxvfp7foDtJ61eO1 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXyhF1zjibPELF tascXXjgJsRrc0LVynK3TZSs6bbzfJDsZzoSWOJKM6zbLPkZgG9wh/5KNQn0c7OBOA4wP3APt+s 4Qkt8f/jCy6n7J1BED+R7kR6SS6+Kig= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX6CUL9ehgHcoM BSjc8plNYTQ+dXzDaDkeuJqQdV4R/pFz9PrWaun0DfutQjtIF+gI3U4IUooQPjDR7wVtP324KPw ZCJ9fceHGrP/ai2mIbCagWS3FZcXVtk2isjT/DOVj1PuGQT1MIWzMlvHt3u3ZK6PlJLMvuctTfh RLpVCppVsbJaSZWIFzQUnBxqPGdag8dBNYe6AflVLGmKtOOCvx0G9oT2k69Y7ppwUPuTEcny7sY zox27PffMFcGIv+4xXbBNVy927YWCPmXgC+5jOc0zYoaGb7pFwps2feMpUJPGQ89U+GxQo3lU2a 97SEF0Bwa9FhL/c2+mDTBYW2dfgq7BO3M/SuCOBZ0ve9MHnsuCeFxCE8w91V9N56ggIsT1FPFZY h3cPcBfqBGekgnqZHeFnUuQsWgRiY+hV100OchG7JP1/LtpQE9Mwswo0TGgpfMZv5BOaeYtcgom 1OGibfN1W3dhF5/wb7A== X-Proofpoint-GUID: nJgQPF8TAdR4f6Sxcxvfp7foDtJ61eO1 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 clxscore=1015 malwarescore=0 adultscore=0 suspectscore=0 spamscore=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-2610150085 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: 1792100200727158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/s390x/arch_dump.c | 10 ++++++++-- target/s390x/cpu-system.c | 1 + target/s390x/s390x-internal.h | 4 ++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 2c26e992959..9a92efd249a 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -449,8 +449,8 @@ static void arch_cleanup(DumpState *s) } } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) +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 +469,12 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =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 */ diff --git a/target/s390x/cpu-system.c b/target/s390x/cpu-system.c index d963d9e940e..965f5cf29ae 100644 --- a/target/s390x/cpu-system.c +++ b/target/s390x/cpu-system.c @@ -186,6 +186,7 @@ static const struct SysemuCPUOps s390_sysemu_ops =3D { .get_phys_addr_debug =3D s390_cpu_get_phys_addr_debug, .get_crash_info =3D s390_cpu_get_crash_info, .write_elf64_note =3D s390_cpu_write_elf64_note, + .get_dump_info =3D s390_get_dump_info, .legacy_vmsd =3D &vmstate_s390_cpu, }; =20 diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h index da60b2b1fd4..a70bab270c9 100644 --- a/target/s390x/s390x-internal.h +++ b/target/s390x/s390x-internal.h @@ -14,6 +14,7 @@ #include "exec/vaddr.h" #include "cpu.h" #include "fpu/softfloat.h" +#include "system/dump-arch.h" =20 #ifndef CONFIG_USER_ONLY typedef struct LowCore { @@ -249,6 +250,9 @@ 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); + +int s390_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks); #endif /* CONFIG_USER_ONLY */ =20 =20 --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100043; cv=none; d=zohomail.com; s=zohoarc; b=iC9QxrGzSbhwUYofbSiMP5TZKQ5yGZj3OjFWWoPf08655iGMnRgNk4zUuSqn3OGfLFDZelRHl/5QYLAPuM22ClqDt4ZV3Sy7mIk3bjAD0mxQOpsAQXxuGnJs6CmmNFsjGbj/an6cTUH5RoDxN4oWyy53lx9xCDjKpWhtVZQU4e0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100043; 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=l7vWUR2NBQzTYrEo7G1rdYbbb4av3psrS4iU7yCmtKI=; b=fWp8PweksGI1CnR22JKgQxPQCUmepKnK4s36O7VHbdTDWUPmUWiNBD8SzDzLvyMCY2bNBJv+sdOO6aDv48SKv+N4X/lOuyTsPhhf9svXCQIGF0VmquDXa8MKU0GkPBx7FjKcte6MpozB+s0GZMWCdCUPVY6caG8QnOxoaTmNwHc= 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 179210004373783.41958988056695; Thu, 15 Oct 2026 14:34:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5G-0005Tv-Fy; Thu, 15 Oct 2026 17:33: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 1xHT4I-0005Ag-RS for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:04 -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 1xHT4H-0002RP-8o for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32: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 69FKW95M3462792 for ; Thu, 15 Oct 2026 21:32:52 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hayu69v4w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:52 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3abfcf726dcso2743304a91.2 for ; Thu, 15 Oct 2026 14:32:52 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:50 -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=l7vWUR2NBQz TYrEo7G1rdYbbb4av3psrS4iU7yCmtKI=; b=lu7htCnAQkb5zAkHd7ZGZqgQ/Fy kY51a2ymipXdQHHRv4KWaHb5j7whNAQXLXN3VzLPSGi3ZjOeBlW841KzVfRSaMwz 7McpLrkEVRbqJ7g00ITn7BYmpSPjlwEELkD1/YDaRvroZULAWBrCamZkxRjJeg7d CDnc4hqbWCZYm6KqCJSqK5EtCkU1xjpmHgFBnKlMdLzSy4IY+xCT5oAamlOZInhy TSSd0FKd4pPvSMEga+GSy2xC2vyDT0CI3LiUZFYugCwE8aI7ISsucBnjxoti13jA Eumv3iU7NjML90ZQlC9eGgFgSl1MWvS39FXGibHgwpv3FhfqK9pa3orIdBQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099971; x=1792704771; 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=l7vWUR2NBQzTYrEo7G1rdYbbb4av3psrS4iU7yCmtKI=; b=Q2b3kkOiPDr94IFhuUOuem3NNCDajTI2sOxstAXIZlyEhvFfTmmhNhqo+rNmPvxfIH AiI65fk0aYZ92ajxnATyrMwYvBF8Gv6btfCmFe/aZWcPlN3KeKbNl+hmUT/1Yz3gYuwC OhY9Uen2RjvIRkNE2iEdQMflprGycVoUY4ueq/eUUGulJZ+6pgkEMQIVLApTDe3fI+G/ tJIzPBlCslLFY3IQ2370JqxZzwoETCkIfwFWM2dClbEYoWtMOJwxL0WMSS8xKflVcw7L rfY4t/2TDYu8VbsYvH8BnhE/tDx4G6opeWDdsO0qyeLzla9qIEQ0+T+fXRr2wBcqWu8q d3/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099971; x=1792704771; 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=l7vWUR2NBQzTYrEo7G1rdYbbb4av3psrS4iU7yCmtKI=; b=nxtQ5qLNSoURNnzGBWIaSGIxVEutFFMMXeXNV9hxrdV5s2rOp1SIXRdAgpCzU7HQVJ qvw0MBPdQwkreERO/dhUt9IxZUYHj8z9ArGh9JmrM6laal3E8j+PCqv/inTz8kpLgBfi iJ51CEJmDfq9U2g9SwGIzjpRSmYyfAfZ9AH/Ry/rpQHktx3v54KfiU9LJFIjikid7O1U 8dSYdVWqxHd9bq035XeQlH42ZLsL3jqFp2XEGiZwK1MkfIqPbsQ47vXDC/iRhy9RMlwH qd9/U5Rep+hSt/ydBhPDcESBiqib8nlwfoYhcIlPbQfXuKB00lsJyQw4N5RyRrY72scD proQ== X-Gm-Message-State: AFq9FYLsQz14bVNlh2GCeH6hr44T0g9L5EaX6YLwmel0FXnEofLUDbUb x219KwQPqUS4g/zXXZK62ZYmWtzSVizQwIc5zrjG3Xf60a19pbkR1mupTnXk1lmJutDXO0hEIVd wSy1z+XRtlXLwh8HnVa746QQSGq0JohKI9MKZlUgXbjeoHTW340fBI9bLSYXwDbXIPQ== X-Gm-Gg: AYBFou3DqFN0f7G/GirWGyqDjAyFIeZtSG9XzeoUsgdk5d2vVJR86xaw8jfD5iPXUEw cEhGOr7CpDnvsUJaCLTP0ReFHCxZ6uvnGeDgqbZrigy5IeBNKVYTpLU7ttaXx4xG0GyJKWoGQyk HDHrSiIq3gOiG78nPtWjz4cI8i8C6OOW2kSNVz66tEngSgN/U31/Bkhfbb7ZuM/92O1ROOwWEYp ml93o0vmgYVvc++Jc3L5pCgy009NNzlvHsCybqtinrKSoNjr8Fm4Pe4SMuvlg7pRRT5OCcbU3Q2 WOItT/0SA61laVoim4dDB1k7iAzDm55vuA/KhMbmVnD8mzIO1P57B/E1fdM38aCDV2MKE28BslW cVreiTUfo1TYQJ/tvtsjbH/mbPssEU3m7rf7mXg+rHUtBO/BNvLqfS125DNVjY5Y= X-Received: by 2002:a17:90b:2645:b0:3a8:10e2:ad08 with SMTP id 98e67ed59e1d1-3ab3ace48edmr17151839a91.48.1792099971371; Thu, 15 Oct 2026 14:32:51 -0700 (PDT) X-Received: by 2002:a17:90b:2645:b0:3a8:10e2:ad08 with SMTP id 98e67ed59e1d1-3ab3ace48edmr17151814a91.48.1792099970778; Thu, 15 Oct 2026 14:32:50 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 08/19] target/loongarch: implement get_dump_info sysemu op Date: Thu, 15 Oct 2026 21:32:25 +0000 Message-ID: <20261015213236.157767-9-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: dT5pGRa-6QLS0mTbpPtj7yn5eUR_lcoJ X-Authority-Analysis: v=2.4 cv=ff04WEQF c=1 sm=1 tr=0 ts=6ad14684 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==: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=FnhWYSpmk11jPv6NQAkA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: dT5pGRa-6QLS0mTbpPtj7yn5eUR_lcoJ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXwQ1eW5fQpfP9 Y5DQm9k6WtZPoXWxtJRMYUuGw9kpHIpdtkXsrLy8y3TkC+cycwjQB6340AxnbM2bvR30ufCzinK +LjTA4HIlhZZn64RLKQpNCZ8MnWcz/EfISKoSOJIL6klXtqRPm/1DGUgoWGC2d864UaeUemklmp 0Pro15TfgFBexUjU6a1Q/0NPHd+SC/RIkrvVRl1QUw4Eb9W8OiNC/2zxtcnDeCaBF3X+ywbkza4 XAmWjohmZOhdyIzmscxY31PBoLipuohvxx7qBg3Ls6TEUg9796W+KKFueL8aQUVwSHcCdAHkZMF WssUUQ0xbY/wMrWY1s4IQILwRrfFNlaZL/G3yTBg/KbyaCoGq17c/EggWM9zEtx43aUVTamSjc3 /8jzLBC0pugwe6JNnAOxfWj9Vr5B6S421LwuBWoMFpiE4u2iI9O2k2reM5oOXq+lVKqpLiSB5eK yan/fEVgnbGrMb+yUvg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXwIL+l0Ht2G/b qgtu8V+F3Qm4RdRT2oR7IT5yKDVSiWgoDWN3sE0SM7HsnH53qwhBqscD+uyqzZJg+StFW45A0OH 4debzLpDy7itGTku0UeWNTX3Y3U746I= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100045946158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/loongarch/arch_dump.c | 10 ++++++++-- target/loongarch/cpu.c | 1 + target/loongarch/internals.h | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 9d84faef969..e216e906414 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -142,8 +142,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) +int loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) { info->d_machine =3D EM_LOONGARCH; info->d_endian =3D ELFDATA2LSB; @@ -152,6 +152,12 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =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/loongarch/cpu.c b/target/loongarch/cpu.c index 54c26998979..65772f30947 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -841,6 +841,7 @@ static void loongarch_cpu_dump_state(CPUState *cs, FILE= *f, int flags) static const struct SysemuCPUOps loongarch_sysemu_ops =3D { .has_work =3D loongarch_cpu_has_work, .write_elf64_note =3D loongarch_cpu_write_elf64_note, + .get_dump_info =3D loongarch_get_dump_info, .get_phys_addr_debug =3D loongarch_cpu_get_phys_addr_debug, }; =20 diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h index ff956823fd7..d4bf30b293e 100644 --- a/target/loongarch/internals.h +++ b/target/loongarch/internals.h @@ -8,6 +8,8 @@ #ifndef LOONGARCH_INTERNALS_H #define LOONGARCH_INTERNALS_H =20 +#include "system/dump-arch.h" + #define FCMP_LT 0b0001 /* fp0 < fp1 */ #define FCMP_EQ 0b0010 /* fp0 =3D fp1 */ #define FCMP_UN 0b0100 /* unordered */ @@ -51,4 +53,7 @@ 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 +int loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_bl= ocks); + #endif --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100029; cv=none; d=zohomail.com; s=zohoarc; b=ZBq5GcMrm8VuWhhRj9tq870dVJOPM3A8Hqr0X+3ifsA1FVyvA0nvIeLP8g3UDXNAIhMuwCjDEOpKQA5Z8IBEqChKzytejIhg3i0qujhKyJm5yGlLdtjOt5VTL1xpX61Hy8kkoc9o8lWe1y44OBfbjHrZKmm/zzVuS07M+He7j3Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100029; 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=m5gsmpoDneZ5vkCRFDDLsspJIW/qHFCUi9G1F3cG2zw=; b=aibjklu8tS7qfMXy7WoYAz8XV9x7ctoKPdsxHZq3nA/UxoPZ+ta29uzIjV+RLktx/LAh9azlXIPI2Gde1Fq5/cN4mWc9Nju+LccAyWfo1XBU5n6Ea6KhEZQqaEBzvxOlYjYPWJIAX+dqk2Aj78mVO+cZ4qF2kEXic2LCUGmOWRM= 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 1792100029375128.26213238523064; Thu, 15 Oct 2026 14:33:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT4w-0005FX-Cf; Thu, 15 Oct 2026 17:33: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 1xHT4J-0005An-Tl for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:06 -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 1xHT4I-0002Rl-Bx for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:32:55 -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 69FKooHG3462711 for ; Thu, 15 Oct 2026 21:32:53 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hayu69v4y-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:53 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3a6d30f66c9so572323a91.0 for ; Thu, 15 Oct 2026 14:32:53 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:51 -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=m5gsmpoDneZ 5vkCRFDDLsspJIW/qHFCUi9G1F3cG2zw=; b=gY0uehQNkcGdKAzY0fInb8Duffo i3tv95gr3UNM8bTkXukhCKx/qxaii4hy6TY5WVjjrHgyubxVWS7dMnkFnWAjD1Dl JqMNEtSJay7tCJu1Lm+qZazydhwFPiAwMzTQNXl4lZRD6WKsMy6S8C5mMAaLubPm ThTPi9ImoDFLFnHdkkYru7qrMi9hUbEw3B4N1ADP8EXjqNdETG4+BoYNvAae0WE8 LCTvwMhyY4eUsRU/baMwB1JtuDGS5BgZgnptNbmJ7Hr1eFUwI71pptRXgE98d29r pAIEPtZXkrJikj5Ou8q2YnGCxThDzrROqjmXeAKoajDiXdwud0vJaGdULMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099972; x=1792704772; 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=m5gsmpoDneZ5vkCRFDDLsspJIW/qHFCUi9G1F3cG2zw=; b=R+U0Q8K8TN+hJwg653Adl+ZX9/LIMkjG9LI1sahCwTLuCFrSRVNbimCXKwBVRbPc+4 rtS9RMW6Tv684rQgM8v2zHi5TfHYkteipZuei9EDfMMYg29L3BgKkztSsH+qMGla0139 5OpKW4KvYh1oIC+naSVWT3vZfllGcdecCAD/8y5Ed/tHTVfsvmVPy3ValjymoQkfvL6J 90vE33baP1AWDR+dF3MClk3nlqLWSRoo2Pi+ljWIk6Ey96o3zD+kWHWepTiQXNETuVD6 4uxrmmqE9So+9sqsNiACu/4xp6pvoWei4HFFMQoN5LXo3GF8evNJySyk8UWztrtQSr3o JZ6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099972; x=1792704772; 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=m5gsmpoDneZ5vkCRFDDLsspJIW/qHFCUi9G1F3cG2zw=; b=VlPPsLzhhq/Bx2ZzaOlw1eTxJrIXwqkRqQqn9bx4GDnwOrMNb0iCO3r+5vEdON34aM pkDUl1I9Qlz87HmTjgp9KS8VVLdB0gEKkcsUmmFDiIoU3zuT2AowLbyuIaspBa09QK84 YWg6a8SgCm3H4NeqICBGG9dWhToXA+rY+Fjl4GfhkLTRi5u7If9sLPZ8E8OHbIEFZiK3 TVg8mRxOz1IjRQTg/X8RasQEspH3cq5K+RXgvByH6ifX6OhSlQrfJfH+nTPOIYp8N+A1 wMNWLU3zyJYlmm0YY2Ej8X1KlqrGqWKnX+n50DIvaq9TYJg0GULF3BMd1ecrQp/r1EO3 k+pA== X-Gm-Message-State: AFq9FYIM1t5MMXeFO3nwbI20c4xhpEpY++hOIPN+GOhqEk4I9hRk/KIz iJDeu92rKdjcKayHIBJQcWuO9LLjeCEfQgLPbH8Ft7YqQp074Jj52U7OsZVU4I7mTVzNYcg70bs PUk+NG7ZhtL44TubQpOtXXW3qCXcl68Fv/cHh0hDPHEHvQmBllm6SAx679NhQgA4mKg== X-Gm-Gg: AYBFou0aLP56XBF6sjc2XntNd2Z02E4QRzJ2pcALJaZ1dGRaNkC+jzCfK8ftO60u1ok 5INpgF6SnmA5dZahO96qw1FcKIvXKYtuBwO7iexeOTWRlSVz0etFU1q7el4J5MbcoACNP+Xbvvb 7hrSS3cOwJHT/L2Z/raYM4JdwwPym9yHihUViG/FMcyE2RPQgdhn5662fFbXCFe9EFrFRWGZxOm sNAGm63aQpoIG7/ZT2LfQCQjYy3iArZpdvQMtdJRrzbxR2jXObsyt3vQwmRMBN6V2GJuYevotqu mvvraywNIMg0QUuD++9lFrpfUK3RD4Z8+lCMqz1MzLgQF+Sv/nw/2OVwHIGl3Q8oNQ+6xu94fT/ xROuc1vaXIsnTde5L5LuaFI5UPCaQIcAPUORGhULJ7jvQR+7oDehVlfVUTZ6i78U= X-Received: by 2002:a17:90b:17d1:b0:3a7:a3c8:8f4a with SMTP id 98e67ed59e1d1-3acbb7ffa6emr768697a91.18.1792099972281; Thu, 15 Oct 2026 14:32:52 -0700 (PDT) X-Received: by 2002:a17:90b:17d1:b0:3a7:a3c8:8f4a with SMTP id 98e67ed59e1d1-3acbb7ffa6emr768686a91.18.1792099971810; Thu, 15 Oct 2026 14:32:51 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 09/19] dump: use get_dump_info sysemu op Date: Thu, 15 Oct 2026 21:32:26 +0000 Message-ID: <20261015213236.157767-10-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: SJbsq2oEv4dPEv3igZGBNZP89EpdAgZY X-Authority-Analysis: v=2.4 cv=ff04WEQF c=1 sm=1 tr=0 ts=6ad14685 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==: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=VElpqANncUZJAANGsKUA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: SJbsq2oEv4dPEv3igZGBNZP89EpdAgZY X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX1fp3tsLXm1Ij sX99n9xJfavk9QgUdIt8a/5C/0RzPkjun7n0ZkiuGaVY0xJMU8h7yNHuBmPPqntU7MezRX30h+3 bmhz2RlaChSI2+kiSGMSG0asMsaFxepuDI8hd83ZrSpl7vep27Z2KdZuvP31ax42igY8Sce8n2G V4ZvqOosJrlRdEagEYmvOJ3j7xjBjvGgT4t2snPyO6GJdLlHJKosPDbiEFaJfXbMz8XfuO+AKAc U+HZ4oD72deg3PCPYExMDEBW0ujR1Tq/xlz3fWtDtK7iMVwAYiP1R0cysXqNRy1dZBCSSysHaGz fjYB0leHqqxUfsFTz7WJEEGeTnsNG6eHUKgNJK3b2b130ucSSXUsts7xcLUAuZK+BM5JFx2seEp UocOiU45k1fiSz9yAwoDiMlYqxV30CRJYHq90sm3swijrr5dkmVYjPz8iLZn3kdn/r+uySHtC9U Fcoem+xYdmX2o79OcAQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX9Lyh6Qi6Bz8D 3qAqZwaBss+o//kN3dtJp8zD1X2D9hv1Wh86b1IQCH9eWVIphNU7/3xXWqEyPyrbqIsAlg+syV4 sBlNddw05ZOraNVyiSDg47cI1RlI1Sg= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100031544158500 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 Reviewed-by: Anton Johansson --- dump/dump.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index 52be7258a5d..e43e41838fa 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/sysemu-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 SysemuCPUOps *sysemu_ops =3D + first_cpu ? CPU_GET_CLASS(first_cpu)->sysemu_ops : NULL; + if (!sysemu_ops || !sysemu_ops->get_dump_info || + sysemu_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 Sat Oct 24 15:41:30 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=1792100071; cv=none; d=zohomail.com; s=zohoarc; b=kb3w/9bxsAEBUBgGrseLQDyQx1sR2acSLrx8OzjWTOa5T7X+vlKwcWDeZs4JHLzDB+I0jv1odR2IkFAj4+Pz4eBXkR/5HmKu8zHw2s3rbKsSDxnUgnvXj9FLMkl/LYxTbNOQUqSKR+lH2ca9/Hi/jFi1gLfJf0GHLFbxKOmfVKc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100071; 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=hJk2Ls8ygjztvGBrUfFmOeozBamKoF86GoVW2VCYsHU=; b=cqbA/qUX0vee7fdsKGRv6SzhZoqdu/Bj4FAyk1ItoNtwRxzyRw5vuGAJUPac8j3bgJy9It1BJei5MGHjkd4SQie+4vz6+tHIlBRqBnrlUM3gxWOIpIXK4QZP213BqWh8vSuliVEr4sQwLU9Q0e474+fwEIqVXx6CNEJEMVBGrjU= 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 1792100071753545.379522974552; Thu, 15 Oct 2026 14:34:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT54-0005GE-8c; Thu, 15 Oct 2026 17:33:44 -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 1xHT4V-0005CF-Vo for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:08 -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 1xHT4T-0002S1-QI for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:07 -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 69FFDP1w4126286 for ; Thu, 15 Oct 2026 21:32:55 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb19m1cxr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:54 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab926c236aso4621505a91.0 for ; Thu, 15 Oct 2026 14:32:54 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:52 -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=hJk2Ls8ygjz tvGBrUfFmOeozBamKoF86GoVW2VCYsHU=; b=RRbquBL1BKP628+KZ9PrRFDJsM1 kIQ0I1r0cthHJvsAq1A17WrxV7QlIeMCpD2rTBF8ET/rpWRi2bSO3fagusom3J2c LK1PymCGqFZ0yogTGlOVril9DLr/t7V30eL4mGeDXhPpH3kkRDr9GiEYCOGbQxdI zz8kgKPT44XFFl78mahGzJfJA2kfV3krviNrz446Y9JpwP7EGCCk3Bs0AH4PK0Hv wRzQwx9mGrJSqsHuZfOH5aN8EkJz+/KtzpmvjN5quyk7CT6i0jbUw4aoZ048i0eS +vrcL/tqwc5z9Pet+2+iJkxloIhXbplyoh9DbJ2BnGrs9I0bszIYOOWKKJQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099974; x=1792704774; 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=hJk2Ls8ygjztvGBrUfFmOeozBamKoF86GoVW2VCYsHU=; b=edFAYHnVtc4Q6SU/UK89RE3JVZzp/KKX547gbi2EtI4x+VbzINDL17L7dtszpDBiCn L7qtlTl0PYCLsqLMgB0b7uDjMZVdoNDwnh1AZWJkbxRZNiLfxTJk6hhVt+EEgtalYoC/ FavGg3uVLC4vcWJdWuxNVvBc1nilCXPqMELlETmciJ8qEel2Ab4XSz3+zqQDvDLIrG22 pgqdRI3R1u6ywxmz2UUKe8Ozl5FFF3K7l4oIrLvLpyjSV56wGlPRY/p7d7tENkl90fCp 9nogDX14i8yLeiorpCm3f1ZEwYHb3vpm2LElTL9L8/kJjuMhqQ2cnasFS/mwGuiNhcDU oWbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099974; x=1792704774; 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=hJk2Ls8ygjztvGBrUfFmOeozBamKoF86GoVW2VCYsHU=; b=NYatsQnVswzke/nYSxLi9x99K2xskTbyr2jwOoFTJ9F7/NegCtVKW1txJ5+eCxtj+k 2jQFRcXr04pjMNIyFbuWy5TL8dsjp9D2VOB64yHPPTwYilgLo+sWZRwBXBJCljMhsXVT hVbyLD9LtWdL7gYXqbB9A8dmYICtEjuycVkXxz3Cv/V2oOYulDtvzPfg7JLN+lzd51qR pb+DsM0GmLcuWKqMACbN5AIRO8km5mnf27aYcHDXCvQ7r5NMQgBnhBp+kHk7i9VDOHc6 CJrjukMkYgiTrtUbislxD1AgifWYt+uAJG7hEUItJ3inKU82MbUOowVfveRDLLXP4q6o gjDg== X-Gm-Message-State: AFq9FYLft9BwxiCddlla825y6yvIgiWzCdE4HuyE+k4nOHDYuwFy+Uxe qZqVPjEn4nh7eoUE1/0NiF/x+fSHG3c2xHtT5h1lVSLG1bBzE5cOR1mful5A4MqxJjmiParu7ZW TBOtC05QiqbxgEAPvTjtnQDs5wb0mQDNoapQqUZPaFpkao8ssS8lwKP3TWg3eOpcIbw== X-Gm-Gg: AYBFou3plClV+LD9y1CuInktW/2MDJ6LoUUB9V16Elr7ehRRofxchYlZQmWKbh5coRN sg89Ci5Zhl2wvijf3pymvHcG4TvAjQnFw6bJTy9Y8XtvF3WOSGAg6+nbQSBr7/9Kd69ZEKEov11 QFSPNewKrntmUoUyeGPviElUIAQg8NtP13rM5Z2dLYf6D6QoZYq5xH2uLm6XjfxQzOvsf2Cf/Ps 4FfbcdZXt3+bLxpuj91iMUXY449wGym2ho3B9gAyIxtPPFe4ynag/3NxWeUI1i9eDeTNf97PWxc 1aurc6vUCqq+XpJCdSrVaC0wqZrfSH6EXdIE5D1WRv1NjTzFTpc5vYQGmeZ3ALsfC0CrAsGtVK/ ldwe5qwf5t/PxEX7S8NloZaGTCFmdAIY6VyirjsLNUTf0BEJsC2c8+WsmQNAx2Vs= X-Received: by 2002:a17:90b:2e08:b0:3a7:a463:54c2 with SMTP id 98e67ed59e1d1-3ab3ad1ffa2mr17805824a91.35.1792099973779; Thu, 15 Oct 2026 14:32:53 -0700 (PDT) X-Received: by 2002:a17:90b:2e08:b0:3a7:a463:54c2 with SMTP id 98e67ed59e1d1-3ab3ad1ffa2mr17805803a91.35.1792099973243; Thu, 15 Oct 2026 14:32:53 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 10/19] dump: remove cpu_get_dump_info Date: Thu, 15 Oct 2026 21:32:27 +0000 Message-ID: <20261015213236.157767-11-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=aLdlOr9m c=1 sm=1 tr=0 ts=6ad14686 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==: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=5zY7TNBH-1z3wV7SeYEA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: QMOQd_yKs95OM27FZbgPNR4boAWuo79O X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX0hpp1F/zNP2A y1Wgfx9tdBPr1Rj/lM2HTUgXQusC9hyf9UIzQ4OozX3GmAqXnSzzyqgN3nkhIHxDNiimnVMfgOO TcMZRQ8vTWHcFf1HfaxOUBCv+pPGfRo= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX3pvkbbEpBkr6 4L5amCldL1Ge+BvRm4zQKEQO+Ywufs+HvPalIzbj022Rftm0Z2d6osOnhi0E0PslDJVbmIogOUf g9tVaNXkbXcpD9jaYsfMy+OWCJT3/tl8GEM7P45x0ybQ/F+24LRstcaeMpkbjhjqqZg3FHCBqUY FoqtmL8QVScrm3LWDRWGjl9o4TnYiWuaPNYhLESe1XzOjsr3v6uhsRb27oxjtjwnnRNeZxbkSza +75wCeGptsZ4HW5RDbQzA6ebauYmtNgwMlK0zo64FTooarzNTuLH3YNEFNdF//tG8WYlmeqEQK9 IazNDLQHVrxejGNy9qZwc21eOZVReSoZy2mfwEmfXq12g4ix2a8P2HaWkJ/uT/+qJ8hL8VxYP/S SyFrvGM4hRsb5RQbx3Hrfnhl4Ss4J610u5QKiR2kGGqrAG3gNnn6VszsJciTGTcqQfU94CUOK/S 9beVwy6eYf3WtOaomiw== X-Proofpoint-GUID: QMOQd_yKs95OM27FZbgPNR4boAWuo79O 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 bulkscore=0 clxscore=1015 malwarescore=0 adultscore=0 suspectscore=0 spamscore=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-2610150085 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: 1792100072378158500 Content-Type: text/plain; charset="utf-8" Now that both cpu and the dump implementation use the SysemuCPUOps interface, we can remove cpu_get_dump_info, including its stub. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- include/system/dump-arch.h | 2 -- stubs/dump.c | 6 ------ 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 ------ 8 files changed, 60 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/target/arm/arch_dump.c b/target/arm/arch_dump.c index 98eecf3d26d..181691b81c6 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -432,16 +432,6 @@ int arm_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =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 d5016c198cb..004a639030e 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -430,16 +430,6 @@ int x86_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =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 e216e906414..5a0e1742242 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -152,12 +152,6 @@ int loongarch_get_dump_info(const CPUState *cs, ArchDu= mpInfo *info, return 0; } =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 b8d0bc8462b..46030ba684a 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -252,16 +252,6 @@ int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =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 ac9e4964660..b2138ada1ec 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -182,16 +182,6 @@ int riscv_get_dump_info(const CPUState *cs, ArchDumpIn= fo *info, return 0; } =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 9a92efd249a..4301cf400e4 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -469,12 +469,6 @@ int s390_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, return 0; } =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 Sat Oct 24 15:41:30 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=1792100101; cv=none; d=zohomail.com; s=zohoarc; b=Hf8tpWPsqsHPmjYDHw3ZiOkimT8gg4R/WbqBqTK16k4gteS7tdhAIAquSHeVMcQbbWqJRRdMYUG5DA7AU4lz/8spcaHWWKvBRYj9RtwtGOqoxg1sV2PFmfT6dQ6KaMQVXJTwd6vKVO4C+1CWutWHjM3GCJOSZ6ywcezSVsAqd78= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100101; 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=ubg2q5durFOuHAvaecXamJe8O1hKc6jSgrt8tiNEdAI=; b=jCEtwwhLS+g8qqTOyrEaPuf91aH2zeaVxNKSvaBt3CZBrGDQbRnuDDZPYrv3v23049XK3o0icuqZ54Y1bWAiV4TY040YY7YP8bHgjv6xJTKB9dcAwPpQo3yFCFfYEdAn8gu2q/5HIhD1uevt/BYR8F7NA/nkN8z1/JyDVt8i2SM= 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 1792100101788844.9657361078011; Thu, 15 Oct 2026 14:35:01 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5C-0005Qz-PM; Thu, 15 Oct 2026 17:33:50 -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 1xHT4X-0005CY-5x for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:09 -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 1xHT4U-0002SG-Op for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:08 -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 69FKNhu63462811 for ; Thu, 15 Oct 2026 21:32:56 GMT Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hayu69v53-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:55 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cd0cf3b1c70so2080324a12.3 for ; Thu, 15 Oct 2026 14:32:55 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:53 -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=ubg2q5durFO uHAvaecXamJe8O1hKc6jSgrt8tiNEdAI=; b=ZTlEGBspgx0tvSycPgn+VxOHo62 ElJRkOfn9iJRb/oCVnsODNd9NUEflwBniZ4YDjYzFtT6AJ/zw1vTpvwb59mdHYNp XOnuE5gEzzrEFOtJpx6i0ja/TL84R3WPtYvrAJPR5OHRr1s9+dKHPf/y+oA4i1zT ke7Ae+wIqZI5eK0UecYUV6me0qmwQszV8uTALXjvhsdmNt+JORhcEA/3ZrzCrjPM 0nMZn/QExdUWqs+NLUi4WMlCB3RUIzUDAS1n0zET47eUzd9V7UYifWVePAdkaH9q jSoxOgCUwGa8VlEOH65e6cPhogTCmqvHnVYKeFGYvoYP+sjFmDe5Pj9OeFQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099975; x=1792704775; 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=ubg2q5durFOuHAvaecXamJe8O1hKc6jSgrt8tiNEdAI=; b=JLwqreHwd55kjQE98X5BeyLqNoqMP7AxKGirR/HJgvrJzaVkNfEmP72qVw1Z3fupON MW5DSZiBq3pnkzpkc0DSMMUTmALSz4INE+6SVX8EyiPbxTljkDmCOXVkhD0BHOp9XeRr r2169YyYwGMrJdgounFRFgfU5QIJoVj9nt3+Q4hQEdm9o3d1JHq+DdWP2id/MUUSOgfC GNbUWviuQUC1Ts/kNG/tQ5ko5z9OqLwJAejOEqTvNMMWR/3Q8FOwFUGw3g/J7jvPz6tu 4ohO4fSgT3di7eLxgwbikBOo73nvE0OrdEesCWCDlkE6oJtcEtGeePbHv+3IRVF8+mOB amyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099975; x=1792704775; 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=ubg2q5durFOuHAvaecXamJe8O1hKc6jSgrt8tiNEdAI=; b=vMCgobXkO16q7i0h9Npbk8CwxyBwgx/AOzCzsd8KKn/IcZYoxqT85MNRUHFN7R1MIW 8HC8mcdu6py/L75qHF3u9so2If3DOcAq0stBYgU/Xu8kSyTgDUpgUmQd3mHStHY/uUKf MnvT+Pe4LPGfoVp5f+VFgkPx8gyta/DU3jNHWA4K4IQrHbdYv4OoSY0KKGIL+myW1mBJ d2UYGvQqky8apfzmE3EJD0waBJDDtdZywybmCGxFCFmQ0HVl/zLnsF5eXTtipA5CW56L V8nQN2ajD9jR+NYBr3+V6VnDp7IPXVHPc2wXBlkvN2rCGeWNVP9XDw9W66ARSa/Z4Kld BQRg== X-Gm-Message-State: AFq9FYLG2XDDdEPEQQYbjoI/8FMFHWPVPsGyVpPdsvZ69nmb92lA+X6D BcpHPaH+IF3xh8W82jiTCBjT+AXjpaw+DUZZGroVDv9b2XhG4WBFKw3s0HOErDoT2kONwWxOmRc iCnTihBSMJpus47bt0QxP9O5EVrUYA54HXH+tONKiNW/yc8sZA5xNtqqu6bONF6tS/w== X-Gm-Gg: AYBFou2ZXpWtOgcjSnzev15aVRF6yAtcFWuvc5gVbxbbUBXJyN0SwOXOIOVrFe9VDhX drGIYFw0dSLEZPQjdHfHVS0ZUhjsL/Uq1lKNaa9K7AnEEWOPKpy/zY2eN0PgVjsWt44q7CPZ8zn BXlkR+LoyTdW8rnUYXB6S5MT/KfCBGuwwhovuu2W6wOi4IysOay48QSp8t0OtblCK5xOwtoMqTD c7hnCnyLiTEaz2KRrrmS5AfrLNr4tFw3j60FeP7uDf4lKRqsz6khu+7rNM7i8quu72fEFt0zhuO Vk1kdQa9gRAGk/StIFJ6R1fxX4ccvx8g1aXgoTyh2SUd9vTFyxT0aiZKtN2pGeLqmvGYjZviAj0 2RkoUc8oi6MQN+6ohVpVx2S9bDTgD6bHiuPMYhxO5L0+GelalDPRYVR1WJf+B1gw= X-Received: by 2002:a17:90b:4ac9:b0:3ac:c005:cf07 with SMTP id 98e67ed59e1d1-3acc005d046mr945102a91.42.1792099974747; Thu, 15 Oct 2026 14:32:54 -0700 (PDT) X-Received: by 2002:a17:90b:4ac9:b0:3ac:c005:cf07 with SMTP id 98e67ed59e1d1-3acc005d046mr945076a91.42.1792099974263; Thu, 15 Oct 2026 14:32:54 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 11/19] hw/core/sysemu-cpu-ops: add get_note_size Date: Thu, 15 Oct 2026 21:32:28 +0000 Message-ID: <20261015213236.157767-12-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: PPWb7vwcya6SnVlTPjLGKzxzn6MkHdio X-Authority-Analysis: v=2.4 cv=ff04WEQF c=1 sm=1 tr=0 ts=6ad14687 cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==: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=s0xbLSvG6KTaNPbiVawA:9 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-GUID: PPWb7vwcya6SnVlTPjLGKzxzn6MkHdio X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXyH7zQER1G7Ya KiIq7hQgcYCdG+b1nt2eMFgIXH0YqMdF8JFM0/Q5XbNrjmxN0JOwa7rS5inAjfpqNN3CSd4sic6 QT3rl6suoRUMfpuKv1i4i/2p/by9iUKVB8Ehi/q+GQle839jmzVCRJEyjebcKA618uH2nw+AtpA 4/EomnNdwB5SE+JRXVqyJYUzUlss0Pv1Bx/5sjCQy4OhBEamyzJx1j7uZR00OAO/p07oyR3X5pP zGDZ/CJyH0eu+3lmqY7dAnTtqiVa4aIthYTuvkYOwLivKV7L7kaMkmfkoIncRmGKpbdCvX8D79x uq905WL8fSoeauyLLoYmhROGqHS2L9XgUzBsnilOwPDHchdZBEu8/YNiEUCmyNaVj/4ifJSvrGo mjqOgv1fXXIll1oKtr81634UN5blCyg+eqd9nv7jMaaFT7/BtvxP3yJfJ6IrMqKJXnpd7JgZVmN YW/PdICsP8afr3we0vw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXwMsthzT2YXaA vlmmX6wRW0ZHFgt2+5/9ERzWvrQrEa821e+YCK4QrP09c3e6S4ZFAZhJIXrSL+TNU7T2em7x4l+ UKX1xmlTXDLVCixlltdz+vAQCZ7YKwU= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100102844158500 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 Reviewed-by: Anton Johansson --- include/hw/core/sysemu-cpu-ops.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-= ops.h index 0b6bb42dc2c..31f1674d324 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -101,6 +101,13 @@ typedef struct SysemuCPUOps { */ int (*get_dump_info)(const CPUState *cpu, 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 *cpu, int class, int machine, + int nr_cpus); /** * @internal_is_big_endian: Callback to return %true if a CPU which su= pports * runtime configurable endianness is currently big-endian. --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100109; cv=none; d=zohomail.com; s=zohoarc; b=QE+LteEUHGuj0Fz3VypavBy8nviSSoWivZtUdlfcJbEucSiJJl3vyHThDRbMMBzgCMBchZ9fa7GDfIANlw1y5e5JMv1N8Y3dZuUCMJdv9PiRqNWfj4k5uJP++S7T0fEJyv3rQ1euNmJ2ysLvHOmlB6R9veB/VRhFUAjBsEaZof8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100109; 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=Hx0EUtBc7dvXA3AGksgltf6SzhPv85okwXe51BzfITk=; b=IeJn8n2GZYGRKXNJxwqY789hYIzBv+3G0VEKHb4J3WKE0ZblixjU8BdjZpBWEHdKouP/z1bPS/Lh39xlMi39RsQjmOK/8dzzX/+VvgpOnt2S7TizWvmNBJKjThudmw9MBO3Ih3RQ+3PUFG4JIv2MRFYVjrInukypJLLOU1GAEY0= 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 1792100109118117.13283615784883; Thu, 15 Oct 2026 14:35:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5C-0005R7-RE; Thu, 15 Oct 2026 17:33:50 -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 1xHT4X-0005CZ-90 for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:09 -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 1xHT4V-0002SO-Ix for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:09 -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 69FKDTmP3462814 for ; Thu, 15 Oct 2026 21:32:56 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hayu69v54-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:56 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ac77c3ff6aso2984305a91.0 for ; Thu, 15 Oct 2026 14:32:56 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:54 -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=Hx0EUtBc7dv XA3AGksgltf6SzhPv85okwXe51BzfITk=; b=ZomGKGjV7jBvXZMMxVXPaDz2hk4 JMcdfUwlkDgSNgbLkE44/WN2E1slZTx10hMtk9JVxLA75RKnLWlztstd/hrt59fJ 6rPTL5ztssYFKvcoUXO3aps6MfjjJ8xlH81N5NL0MwMHNb9d96LjKN1vjy3+tJky iKpTyIYr1b10zhTYHAdQk165fF0viTJc43VuhIjsTm2Rw9/6ziFRvVPa0hc9Ypx3 xbMeAHmm8q5hjOBCocJnLzIG2qszegtJfARZRye/ej58T6YD8flRbbPguc0VVpRi 2yd+5OIfx9oFL5hcNN7R0EKRubaBYjkKrUW/cbj7SI6DrBW87hzruTpfg/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099975; x=1792704775; 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=Hx0EUtBc7dvXA3AGksgltf6SzhPv85okwXe51BzfITk=; b=fuZqPd8EP9TkM/VkaXcl8eMTnfQr73QHbtcOee1IaQNg75Wpc5kUPgNhYLoYTzfzmG XwkxHVd7e3mNzq5uKLCP4YhQmhzj4W2Xb9kjCC8BN34/wfM/9ePJ9VNVdb7jhcl0mJTA 9WM843sAOiTIuJ2iS3T2nIQA9Cx315aaoSv6KRLyYDX6P3oer1qnXm3i/mwMZnnILn+8 SaZpdlLG9mU51iBdSa0OQKkWnbdTSjgyuhAdX1NZCqxzRfQ/hTjg9PRcc/q0jLgrXjSG a0OXyQUGk+/T7h3UoLcj0wbh7hqqbMNHOKoNCZJ3kRS1MjNwbSZLJXCwvYXJbXaq5KR1 rfCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099975; x=1792704775; 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=Hx0EUtBc7dvXA3AGksgltf6SzhPv85okwXe51BzfITk=; b=ZqA4A0C9X3m8Ld4BFqwWsEzU7qBt1wtul4M3A4SkUki1qwP44Q68Bx9/UDxIDSC0kr bsZTdI3uNP98jHZSbFl+1i5wXvGmX+UQqVjhrX8TKkKTlma+10J5MXASnSMN4AlsTxJW kR2GuC25/9+twRM9EZ/Hy83GZ1m4UAjCkezcu/v2cn21dccjwcXiiZbsv/jPQCwBH4m0 i7xOiQtU2aIG5iuhggvqirqZa5bvEndM+mO856wQsP1oJJQMsS5ZdkiXwzoy1uGSHH4a hmBjJzhnXXz/FoH522NNEq4MGeDJhaysbHNs+YdvYs+8CL/461Pi22CFNiBUK0KsmeBV GuRA== X-Gm-Message-State: AFq9FYLqRkXE/8NkWA8tDYx9XXGeyB5S/WYyHEcdf0RaE9iAFVD84ium x1DOK4yVwQSLPy4IMFYKBbBsZXrYi6Ag/eGxLgYmM4L36H3J/whBdw/tbErMr1nijmKxEmAJiS0 zsxxUuQiPPsI5BUDfiEjlRrx1UqN4FkQDNPgDSwrqIoWgBSKc+DAZTi6iwodnHY7ncQ== X-Gm-Gg: AYBFou0I45kzlRm0A2hbl0fq6WgNWHQp4MQp1LWitEOJoebITwwc8pNyOWsanK+EcCC /IwYz6+0Qw7cEnkhlQ1GcBMnrcjsljUNhnkazcqta0MLdkJZAEquaAK51uiHO+jhJ+KmrY6waBd C8vw2OX6Iivnwy0EUFUBdVjy9k+zsuE6U+M8lgM7HOQ/XIdAfBoyJTWtNEgjF7UECmNeufIcis/ WUftur/Izp1CWP4YaLhJm+YggGSHwsv7G9+8VEIh82kSoU/NOExC7Z27Qlu9tESc7VuF9iiMDwu fTVCrT6xLtgc91YRFMt8wVHc4yM/w+k7GW7fJwG0Z/79SAG7QRl1rDI4IMDs8lisPhGyl2bM4yS Ajt40g1KGdQ/LJ/Y/k9ifp66WwWGbEGUNl022Rwnvjzy993ffVdxZQ8PgirTnkxE= X-Received: by 2002:a17:90b:5823:b0:3a7:9413:cfae with SMTP id 98e67ed59e1d1-3ab3ab1d561mr17607903a91.42.1792099975397; Thu, 15 Oct 2026 14:32:55 -0700 (PDT) X-Received: by 2002:a17:90b:5823:b0:3a7:9413:cfae with SMTP id 98e67ed59e1d1-3ab3ab1d561mr17607884a91.42.1792099974927; Thu, 15 Oct 2026 14:32:54 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 12/19] target/arm: implement get_note_size sysemu op Date: Thu, 15 Oct 2026 21:32:29 +0000 Message-ID: <20261015213236.157767-13-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: E5iCjxZxsrtHl9EVVDqo2v2msAbA66bl X-Authority-Analysis: v=2.4 cv=ff04WEQF c=1 sm=1 tr=0 ts=6ad14688 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==: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=Vcmh8FhFDDEcUw5d5KwA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: E5iCjxZxsrtHl9EVVDqo2v2msAbA66bl X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXzv/hBkHVMaOI OXWhv8lDS3v6tqmSUEbjTBcH6wJerde7hOfQdwGGJXVXIoM1HgrbX7rMMYcc4oa8B9OdwtfYQ6H gusgnfNCGh+flcsJuDRGBRCIGBZRkdMCPQZ+UeML8r+hKIDd2QnrUreufTYNSJmQx8TlVwa9nPZ 4UR4wdG40ZSKmuN639tiBZapC/vEQlzwsV2HGgvbTqbRqFUAUYgKzCXgl77tMLa32B5ltCjOb9j ZVgHyjgisyEkSum965wGhAwvZhxVuDpJLZERofvj2+eERDda47xGxoweU0r+23b+YvjXOt547WO Ltc8Qf21W5SmDmT2tX4l06N6Hgii2lnUfJINsa9KQrZG7d/HonDFziJvciHXkLHgdkxTi+gSNhZ 46/XoQTun+aeYo0S8GMYaHyqf097aUc8eUAHb9DTtszBcyz2+xjus5TWFIQYkFfN23e1AIgc27h XfNUqEuoX/iLtw7nBeA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXyA99Rhf5Z7ja FHrRn00g2EH8nstDwUCqsT6zbFog9a4sDAR/X7Ko1rp+HLd77t0hFx3ZhMfiDGyISG/QfViF91D Ob/8NJ+aRrs/68PpRCw6ZfSlOkayf/4= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100111023158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/arm/arch_dump.c | 10 ++++++++-- target/arm/cpu.c | 1 + target/arm/internals.h | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 181691b81c6..60456e81bf8 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -432,9 +432,10 @@ int arm_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t arm_get_note_size(const CPUState *cs, int class, int machine, + 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) { @@ -452,3 +453,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return note_size * nr_cpus; } + +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/arm/cpu.c b/target/arm/cpu.c index 7bf0c5e74f8..73fdc6e460f 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2570,6 +2570,7 @@ static const struct SysemuCPUOps arm_sysemu_ops =3D { .write_elf32_note =3D arm_cpu_write_elf32_note, .write_elf64_note =3D arm_cpu_write_elf64_note, .get_dump_info =3D arm_get_dump_info, + .get_note_size =3D arm_get_note_size, .internal_is_big_endian =3D arm_cpu_internal_is_big_endian, .legacy_vmsd =3D &vmstate_arm_cpu, }; diff --git a/target/arm/internals.h b/target/arm/internals.h index 086d9574ced..242165f5649 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -441,6 +441,8 @@ int arm_cpu_mmu_index(CPUState *cs, bool ifetch); extern const struct SemihostingCPUOps arm_semihosting_ops; int arm_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_blocks); +ssize_t arm_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); =20 typedef enum ARMFPRounding { FPROUNDING_TIEEVEN, --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100126; cv=none; d=zohomail.com; s=zohoarc; b=LQhQTkc0gLBkBziLroIur9j/dw+E5hOLwGDHv1T4F+LmevCEuKCCpqUFtVvSbX19E2QQiu276TCu400J6WiHiaUu+QON5O4vc6q8bFF/rgAaeylvgU9gBWDi9xSzgZ2UPqoz/s9WC1Mm3gHbMxK0JHshlcIjX6TpQgP8pocicNk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100126; 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=6gXP1UJIWt0ontxxK1KuiUet2I0wX5ybB8XqrNjGa/0=; b=WnzVjlG32dRJAryu+oQxTrcwJj64vrz1ZFk2EcCgAJbxypFxG6cNyApYKhvKSOkUSIGJc3EFQ11jsn3J/C/TEvAhVuMbBOKp8mwUt68yWxC7TgyTTtBqT3BTkmhekMz+2Hep4KWXyzeR7aqvZ411+/REkBwBzpJMHnh9rRyhkp8= 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 1792100126641364.6031537699356; Thu, 15 Oct 2026 14:35:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5I-0005Ur-4t; Thu, 15 Oct 2026 17:33: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 1xHT4Y-0005Co-Fd for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:12 -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 1xHT4V-0002SR-Ua for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:10 -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 69FG5aiR3493055 for ; Thu, 15 Oct 2026 21:32:57 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb21ws6c7-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:56 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3a4aa263a4aso1792728a91.1 for ; Thu, 15 Oct 2026 14:32:56 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:55 -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=6gXP1UJIWt0 ontxxK1KuiUet2I0wX5ybB8XqrNjGa/0=; b=S7pm4dZwPSgJ641aMlxeUmdjgdg OjkKllkwP4eaOomgeCB0VEjgl3Do9sf+wyjQfrQ5RuqZK59Gtf5mWqG4cdRmKS19 ML2S402WVdpJmNCv1WeWVZS/pdAKRye2kfd4oDstLlTdVLYCltVfkTyc3l5BHz2x GGvYTcSNaPH6xJA9fmSh8WsyjtbdzOxOzdZ03vTdX+5AHg6lvD65FdgWb+rcu43C xsW4nyIDRIKPcqho9KxfFeNnQGXpegtGKsaC7Rx6Zn1iWRTvHjVRbVeTfugWU86B XxDM/vvyoK8XB5ByBcmh2GMZp1wWFI1bhIzRmleiYEKFcbRbt1su6uz1tjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099976; x=1792704776; 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=6gXP1UJIWt0ontxxK1KuiUet2I0wX5ybB8XqrNjGa/0=; b=S+Q2hRucIDrfEnZl/RSbGxBZaaoo1wwZS5Cjxy7wxSry7QIiGvov4Y1rGyCJNL/G3t svwh+MWAkqqurHPHbxXt71Vpvd+qUlucL7Cb/d7HDw6u710E4iYG2Mb4qXhIOLE9mSPJ v36xBZizdG7WHPpebxbogl0LnKLTZYJPWuJCGtaJKSDAVOmIWDi/AgBa/Vtaw5s5PQPR qFOug3wJ7ou2eknu4cRPZw5EtNPdm5vFOGVgEvnHPGpxbbwJKST6HrdvbN0A3c5eKcpU bB83rSRJUuSmBpaYC1JQaUM5nwEWXbK97eFvBSfr+foCVm09GBl8DbW/Goc2sUVSo2DQ R9Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099976; x=1792704776; 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=6gXP1UJIWt0ontxxK1KuiUet2I0wX5ybB8XqrNjGa/0=; b=tXswD7YSvIMnHJhbY5KA44AQcBolzeOFW4M0WOrAAGqtS5qWWSuqux8t1JQlTEFjUv jBBK0tZW24W136bbd/SClXPYUBHXG0Pp6Gr4h8iFXDNfL6gt/sfosvRiEMSweqWL95rd Y9kzAv4mc8COVh+YPc17Ed3ZVUoZ8x/8dkqMjwcGoKCz6ugIkmjVIvPStcGBwrNO7xct pIfp4IbF0Ol8UxaqYo3s1UGowMqMSMGOif6wxA2JI6LrfMcs6sdHJ79hev518Bxwt932 WKQh2IaCYM5muxsktb+YrTNcGUMnoY5JuMExZxEKSgCRXVuJurE7aNP12wVuUK24xAe1 Pv1Q== X-Gm-Message-State: AFq9FYLh7bIH7AJattQorq94edppXXrgJKgOVRzLUTtPVad7pKeZtNku kTu+VY4Cwiwiv8C2m2WXvGQ4oqeofhfBa1guRbSYwpKxbLbLfFu1ck3Eq/m45PkVW06XzoJWpfR FftZw1PJ9Lu2iKG3epnJk9vlZctSACCio07AjR077VazWZXTi+F5ALxwcAv57GqKyFg== X-Gm-Gg: AYBFou0xdq9DpLe4Veea4Z0ZWNgyX0j3fPdidNMDe3RQ/Rfe/1d3SP+sp1f9xJF1y81 4Q7vaAQg4HEHCWqPmxrusQr/c7k0d9hynlaHOoDPmyyivNonZOqHpC5aDEcSSN3lT4l7Kyhrl2l d7qBeHE1yzLGZ8oLKNRirC4a2LZHOOrGOhLT5jXDrzfKqejyCSE0OT0MGFCkPuLD4lipZcLbksE P8cA+0a7AI+Nj5oKLOTX4+PAKtDJROdQ9fwwHVSMGOFzQCFbnEfPn5QU8Aum/753/tHaromGyP1 XnnFLKjIVrbhJGlZ52kfuGRzO/oOO4Q155zwFI/c/Hm72juR/eXmJVd1Izk+MmKlLwdQB1VvMjg t1u9ea+7hlSGzV2HBtJMwHekCu8lIOVyC3u90m9t9k2RxNyNeMLKF4CFXh1JBRoQ= X-Received: by 2002:a17:90b:518f:b0:3ab:1481:69e5 with SMTP id 98e67ed59e1d1-3ab3a912263mr16829071a91.11.1792099976028; Thu, 15 Oct 2026 14:32:56 -0700 (PDT) X-Received: by 2002:a17:90b:518f:b0:3ab:1481:69e5 with SMTP id 98e67ed59e1d1-3ab3a912263mr16829059a91.11.1792099975531; Thu, 15 Oct 2026 14:32:55 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 13/19] target/i386: implement get_note_size sysemu op Date: Thu, 15 Oct 2026 21:32:30 +0000 Message-ID: <20261015213236.157767-14-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: DmZSyBcKGe40LaisE0wg6T6Cn-qQELDJ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX8xSAKL631N19 poJDv45HdLBFj5AnzX7ZhyhCVqRheFKb0UYcVaCTBV8W7YCGcKc1is+g59txPZ4Ws4lguC3pBC9 lEOJpyhztIqmSQgZI+xv3Wcqf562tQ0I4DhwYKAZRZeEnZVeij04KrESA2h2qhlbjrJKEOE57JX rYVA305imwxR7Vut5JaIyymzJ7nK0aH6b6G+9jmCkYY7xafpN6WdOZyfeGZPH+fJkmogb7Pe4DU beuvr/HNOil9aI7/XgXrrGWEmoMOltVeszxh11C8Qr/dI+wlxWlSDIgN8p29PZTGCuFzPO72JP1 w8VFDhZbyixez9oYH+5WH7LOh9YZaacWJ3u3faBugooxo1cwym1qoxQCqPxFAy6w6wC+oULab3I YT+OnfMefvyJ8J3tsc1FqJkOONFzRvs6hA26AKxtSmT4Di7y3MHZsNYA1np6LPtlA51bOVgFBNa 40DScHf0rvSB4yw+95Q== X-Proofpoint-GUID: DmZSyBcKGe40LaisE0wg6T6Cn-qQELDJ X-Authority-Analysis: v=2.4 cv=R5qWitRX c=1 sm=1 tr=0 ts=6ad14688 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==: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=VkRzHO9NBAn2Hx42XgYA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX0CR5/6e9px34 mt+3RVQLCTfDQ337h7XLCDpB9ZhG++Yg7AbJ6N0z7gK/ZqpcTbLjHDruMV2PgfwPYDwBRbHgctG sfeWTKJW5Gokcf4tp7goaxUy3SzOmgg= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 suspectscore=0 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100127295158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/i386/arch_dump.c | 8 +++++++- target/i386/cpu-internal.h | 2 ++ target/i386/cpu.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index 004a639030e..4d8e9374cd1 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -430,7 +430,8 @@ int x86_get_dump_info(const CPUState *cs, ArchDumpInfo = *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t x86_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { int name_size =3D 5; /* "CORE" or "QEMU" */ size_t elf_note_size =3D 0; @@ -460,3 +461,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return (elf_note_size + qemu_note_size) * nr_cpus; } + +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/i386/cpu-internal.h b/target/i386/cpu-internal.h index 9407b01d415..a01ddaf9254 100644 --- a/target/i386/cpu-internal.h +++ b/target/i386/cpu-internal.h @@ -70,6 +70,8 @@ void x86_cpu_machine_reset_cb(void *opaque); =20 int x86_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_blocks); +ssize_t x86_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); #endif /* !CONFIG_USER_ONLY */ =20 #endif /* I386_CPU_INTERNAL_H */ diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 03efc411ab3..c23c504c5b0 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -10920,6 +10920,7 @@ static const struct SysemuCPUOps i386_sysemu_ops = =3D { .write_elf32_qemunote =3D x86_cpu_write_elf32_qemunote, .write_elf64_qemunote =3D x86_cpu_write_elf64_qemunote, .get_dump_info =3D x86_get_dump_info, + .get_note_size =3D x86_get_note_size, #ifdef CONFIG_HMP .monitor_defs =3D x86_monitor_defs, #endif --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100031; cv=none; d=zohomail.com; s=zohoarc; b=FyZdGTrlzVj8Uyjla6h+ylP4/Yzf2rAdMsZ0Oo/Xp7v0k6ipTvJq34XdYBuzHIskoFWAnuzKfvcixRVVvn0qDNsQJBrXBG4qEI55Dpxdd0+40OakRAG3JMbZKypKHo5n/4kpfSW+EgGZHDtm86cNsV2M4pBSq1Gv6qdMgHjiUgY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100031; 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=tUtcqmP6sL/twqqbKOZG+sRPnxVivxbz0lnHW4PlX9E=; b=G/kFsVXa6Xu4Wk4f23Mvlevy5ZUdq9sNibsEdNypG00rMArlIoKU9ZW4HY/2NzkN/W/+r3OJeuK/Q10PsyMCpwBh7BunpEn0rxUvUKC7ckB6yAApCEp4qp51IsiEwJw1hoUsmHgGHhKqPRH/mBX+iD9JbBJ1EMAvk6KRknzBo8k= 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 1792100030937876.9442286261377; Thu, 15 Oct 2026 14:33:50 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT4w-0005FW-CU; Thu, 15 Oct 2026 17:33: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 1xHT4a-0005D3-QB for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:15 -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 1xHT4Z-0002SY-1i for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:12 -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 69FI3XP3406220 for ; Thu, 15 Oct 2026 21:32:59 GMT Received: from mail-pj1-f71.google.com (mail-pj1-f71.google.com [209.85.216.71]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb3sa0q1n-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:59 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ac8f449d1bso1731451a91.3 for ; Thu, 15 Oct 2026 14:32:59 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:55 -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=tUtcqmP6sL/ twqqbKOZG+sRPnxVivxbz0lnHW4PlX9E=; b=UYvFDrtjT5n56yiDGIwpXtj5Vc8 IPTCTtWJe1yCyfj3SFpvFEyzEutmmY6fIodyxLRe4ayhaqA2Z8GjZnSm80xv24eU I7/gDlluPz9NIjBd3JmWj/m6Ux24LjDmJqQUgNMQDLSkzQJ+iNj8+KMUTtdhm5FY fEMp93mnm9fpX5a6qp637X4nauxglGy3dB193k9Lg8BDHoq/l7JkAaT2batssZUN YzhnNY/jI/HHWbfpTBg/9vl0vqr56QZxB8A3ylP4nobJoTBlvApdnrRM6w1y1IF8 81yq/UfYRwlxR9HPaGZDiArpDpXZvu1aYDY+wUdmujXVE5Ad98jlKbMBdhA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099978; x=1792704778; 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=tUtcqmP6sL/twqqbKOZG+sRPnxVivxbz0lnHW4PlX9E=; b=YXhWtGxszSC+awIB8ZRpsv9NgDWcY8I7j8eYQ1Y8qX/55kLX5wE64uY6igkek9uT2P S+hCnlPUYsZ8kKUx6AwqAi9pcfn0vBUAoDyN3pDxhuA8fZ4MWCM4CvQdPnX1cI9WGtUv AcwxdvivMNX8KR61HAa3h+xy8Fb2qY3ro7GcJSiKZ7ZP0H5Qgs6u9psu5OR3B4PvDncu Yybx8B0NjMpTi9KBZQC7xw8VzAMOmiPXcLtuPTabszoe0irfl80hb6WEUuztcFmebyhX WiPep9x4Ui4UUQPnTvUt64JqVFQAI8rNJ0QXvPWcSO7N/qj0oC2wZb+spu8kSoZBUaqF qOzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099978; x=1792704778; 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=tUtcqmP6sL/twqqbKOZG+sRPnxVivxbz0lnHW4PlX9E=; b=xGsIoJcGxgoPExqzq88dyaTUYDB0LGdMNPF9TTj817UGSrPcBVofOBF/2Iimp41XqS F2QDWFPRjn4Ij62adDdhfPl6S9y3/KiZL1TtWrUul+WK+E87LZiEZtlsGekYbyBYvBy1 Vyfi0V5EK8MBI38VLiyyZpZUVW3Fy1BtZ+KJ1mY3TinDbyHywilhTyN2HnXziTU18Ff+ Hvg6qXgOX+qjVnPMtxPusj5McNJ1jlNG5O3qDHLj8sTwLrzr/dh1lD8PxtFq1nMA32FX hNhN9XoTrnaPeSjS/YSt1V7KbGdAB3a3BUoC7BrxxnFVvQ3lfXYXYqWAwaAGNYeHfJ71 Gb6g== X-Gm-Message-State: AFq9FYLG7GVX0S3DhMhia+Hw0uSi0gEeXGQzJKPmhnhCZ+pweuugkvzE h6/PNMLFMo4Pv2UFaV0wO8JRBRYGgwE9Oy8yDT217Rh+g9Swh/tFu0hpPaobS9e5uR7MuAcjjR6 l/tYsme+IsE5vIRXsrVFL5UG2qbb/9imN0awQsWGejtTYkicWaRpIitzo2/QBU6dRkg== X-Gm-Gg: AYBFou2JDicwt8gfplLAzKErXir7OWWsjIBTAmVzeWfb3q3IFWGlfu4/l0aE4M/3W4v h+2W5vf1MIKozxTlytg5novRNg62l7Kq6NBgxxcCL0FVUJOlCRU3cOvUKlVu8LdnZ+cQfKCFSkI 4s1hAbEo3bhehAD8P4E8iPN7SFtfQZxKbQoJ/LxAUzRMM0iDJQEFGOy3cQFU7szm5wAFWlvwKg0 B2W99E9vLXbbtseZ9QXPUmh6tzCt/nsUYqm6DU7N1tgSUqcN0dJevopiLYGFVH416S3Htb5yC8l PoRyxL0O+IStvNCIUJKpFga4wqE9gpBdBvsz/xePmmHD18Z76s0SNo8RR/9lytto/H3q0aitw+j lY7nXnoOv1s6+s/QhaJj7yeKy8QZ8uwRjYo6nAGe9Bu3B7fYf4tvmvAK2ulJ77RI= X-Received: by 2002:a17:90b:2886:b0:3ac:a7ee:6760 with SMTP id 98e67ed59e1d1-3aca7ef2de8mr2161364a91.23.1792099978188; Thu, 15 Oct 2026 14:32:58 -0700 (PDT) X-Received: by 2002:a17:90b:2886:b0:3ac:a7ee:6760 with SMTP id 98e67ed59e1d1-3aca7ef2de8mr2161349a91.23.1792099977635; Thu, 15 Oct 2026 14:32:57 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 14/19] target/ppc: implement get_note_size sysemu op Date: Thu, 15 Oct 2026 21:32:31 +0000 Message-ID: <20261015213236.157767-15-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX9UcxGHUJrsSR K+/lx1efpuuA0ijAvBIQvB5i/DxzlPFwT0Z02+fHAiAZxseAFYd3J0t87rSnwqNBkz03l4B6ZCR pkRIP7XF5v7AR7sMWw240qo2982N9q0= X-Proofpoint-ORIG-GUID: hn02Feg9s5xyjWiEc1uL2CtbDk77yeLR X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX/G4kEUAaa9OZ suLChm80IwZiFiYFCMkwvHkRHVDRw4EL/NknOCBvdnNG92QHAReD0QKTuDwIYRY3QQ49d4ZjnK+ 4Z6CgKyn8SKkiAqcq6dKO6R83ZOPl21sMZoVBxa267NvSjORQDaCzKIKpd8l3QXVneOegdmQ2U8 T5wtJxBpwk3tV0g+J/lEVsaP3n6hTJana1TF0JjkBWzySMsaegP5gK68XoOxHmQ53BMRFXFIsfH SKlxFKYFarDIYFEwL+B1x43wmjSpnCl3CG3Lfv9JhTL+m+tgNS4Rptzg4p8p+cNny2jy1a35dNj p6knpeU7vYX9mvWvQtqZyM94f1xyXGTBCYVIUB4pu0WbeIsYcNGCrPJH94f97fn1VQ9v7O9jnsz aGvDXd3uMLKWThHDJnGptzyyS4VMAQou0QCbwUSoEWiWUhaJzIa+xFmHSi7Z7i3YTME7b1fp6wb H6nTCMUPwSUCDAYX0Ww== X-Proofpoint-GUID: hn02Feg9s5xyjWiEc1uL2CtbDk77yeLR X-Authority-Analysis: v=2.4 cv=AN0XGc5Z c=1 sm=1 tr=0 ts=6ad1468b cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==: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=Lumvk8zKUu4O7nVSwh0A:9 a=uKXjsCUrEbL0IQVhDsJ9: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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 phishscore=0 malwarescore=0 spamscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 adultscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100033647158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/ppc/arch_dump.c | 8 +++++++- target/ppc/cpu_init.c | 1 + target/ppc/internal.h | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 46030ba684a..585306ccf7b 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -252,7 +252,8 @@ int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo = *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t ppc_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { int name_size =3D 8; /* "CORE" or "QEMU" rounded */ size_t elf_note_size =3D 0; @@ -268,6 +269,11 @@ ssize_t cpu_get_note_size(int class, int machine, int = nr_cpus) return (elf_note_size) * nr_cpus; } =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/ppc/cpu_init.c b/target/ppc/cpu_init.c index 5853a92bffd..578dd9194eb 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7474,6 +7474,7 @@ static const struct SysemuCPUOps ppc_sysemu_ops =3D { .write_elf32_note =3D ppc32_cpu_write_elf32_note, .write_elf64_note =3D ppc64_cpu_write_elf64_note, .get_dump_info =3D ppc_get_dump_info, + .get_note_size =3D ppc_get_note_size, .internal_is_big_endian =3D ppc_cpu_is_big_endian, .legacy_vmsd =3D &vmstate_ppc_cpu, }; diff --git a/target/ppc/internal.h b/target/ppc/internal.h index ad01421ffb2..719fdd2f625 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -328,6 +328,8 @@ TCGTBCPUState ppc_get_tb_cpu_state(CPUState *cs); #ifndef CONFIG_USER_ONLY int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_blocks); +ssize_t ppc_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); #endif =20 #endif /* PPC_INTERNAL_H */ --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100220; cv=none; d=zohomail.com; s=zohoarc; b=CjCleumO3ItJaoTm4XAO+sf1BEoxsI5HdYwpobr+6fBAboSUVBZjG93U7utT09cyYPvyKWQhgVO8527rj2qPNB+Us8GdzLpogOmgRNy/i1v5HwsBERKxz80/fKVeBtcuvIqHoi8Y0G3lTAgRzYc67U5g+2SVC8ZLYS1gqTmhxx0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100220; 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=6HLvaAlUVPByVR+Y40fMkyXdIzksCs4/HkcBtIZ5IU4=; b=MVAtKxE1hgXiwAhcOebABjVv3OgdgUIO5i4ZX8SlnUFPJpiuYi285QF9ZDWLjp/pM9Gy80lc++lgNUqkZmGUK+ORvOxgCoYZ0thOTwHfRH3uiT48iRRV7eZGQWxn8eTnwQxnUEi1V2SVyTLx5HFfP4i6m59QBQDlQ4MUNHQpuTA= 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 1792100220624402.03207588793634; Thu, 15 Oct 2026 14:37:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5K-0005Vi-3p; Thu, 15 Oct 2026 17:33: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 1xHT4a-0005D4-TI for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:15 -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 1xHT4Z-0002Sc-1j for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:12 -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 69FFE2LO2678271 for ; Thu, 15 Oct 2026 21:32:59 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb19t9ee6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:32:59 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3a46f0f158dso541623a91.1 for ; Thu, 15 Oct 2026 14:32:59 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:57 -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=6HLvaAlUVPB yVR+Y40fMkyXdIzksCs4/HkcBtIZ5IU4=; b=iaarwkuttSyI3O4OMVjbkdmLCQ0 IuW/z6/GMMshV2AyyOxl3DatZu4myfS5n9UwwKITsmBUje1QF4Ivy0l8eVAjx+s9 k4Z3qE6G2e402zXqx/H42/X/+tNfZqnqxC7yp2tTieYFgvsC8qVC2Qt8uSlghsup cRCneuOLJlCnUDhJsQWr3syXaBBnjOTH7mXlXlkfgvutRe7SNG+TJY5Ss00VvXvx Hy8S2JJ2WKPbt1EQO/CMJaRw2QHbCrpu9BZP8B1iRC6+zwMG2zFzUcjkmj4QKJv5 MVnBJnDklnquH0yDAaEBdJVgpEm6GnJSQFHqrxxlqb4ymSFFm32PNwjg0Gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099979; x=1792704779; 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=6HLvaAlUVPByVR+Y40fMkyXdIzksCs4/HkcBtIZ5IU4=; b=C58QWk62FuyKPHqRCkzBVsHWdnVEF4FvDPrsWFR9Ep0raw6xI6rZ7lDFcphR42NFRc rDsPFDGVKUk0V94PRXAO5POlvYPjutzlIv+LtaWjGVmgFgxEmvQ5j5TFzxK+Qy7LZEkJ LT5WONtnq3Y7uKQBlR9Dxda1b2bW4ykTFm1zmEq0g9/HEq3cQ1b+72LGjBMMY7AA5FMD CYCZZiMMm271FJNrnK6yxvmijNd74vCmSJzYLTK+rfFGEUYvdRMvCVzExYrZ7TlVgR3m h9XtEepIHESPokUm22gwMq/ekasSwt25ALjbM4cSTJD6tx2FaTEIMEqs/BVZMQP9v+Fx e5zw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099979; x=1792704779; 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=6HLvaAlUVPByVR+Y40fMkyXdIzksCs4/HkcBtIZ5IU4=; b=y0tYnURDAa1NZ2ypSgHkholR7CyeK7+AtutEQ49njKgETjbAgNVtKiMTnV9IBv+PXi z0L6FSkA2HrhqdENixIVxSvjhGgJRd7NgScBxIlywVYysIH3v65wgiOk8C1AOq46pB6D rtbpIp0xeQ7uIiD3N1/y0tlTR2ukqjGAQTFD9iuKIJHCq/BZVbk0YDnbrSxkC8Jhjr5V cRevisOCVL5GwKxojw1N9puuh5BFg1HS3Ev3YHFFxdsALUNShOdr6z4kLXayPqQxIkpf 0s1ZESl8PYCPN7hViWtAfg+0i28OAQf0pCmNzOHn/ot276y77gw/iOd+eCpBd6fEXQRB eJcw== X-Gm-Message-State: AFq9FYJHJDZ7d3mJjtETr1YAgs8+Ru7z2NGhzBdoVKo+ypMYP4H053ju bO76YbrMgSp7rDmPvUWO8MLddQvlGvv0WZbx3AfljqBl6UiiTx44+IjS1mAXz0v0CH9jZNigT9j FO7LYTvB3YfDBB2AYjMBKsEvic7QXHFr4P0hmsEKzghL7LGVjaNKlspw+29XdPJ4Rig== X-Gm-Gg: AYBFou16iLxZhMf5IXW39Doe+Iz6Alige8RIAyP7Ei3wLkGQgjjJskU9CrfCnqA0OEi iPgahXo4oGBVhM+eXaXaVdbdKjCT9T66RgB2KVo1B/N/YpckkGluhai2ZqWnBNzQFAj0Jo3Js5+ zGkEhvSgZ+PFydVLe2nIS7kYbZSPtvX36iPIxQph9X6OKQywdT5iQTIqozBm92xXACqcxl/q+NC NmAlJtgxEAP1rybcx8E6Wd2ylkzR1Egmc3vfoauFho2Dvw6ocWfhfunThzXc990gcMuwkTihCvt z1J6nMAKjH8tis3wN6+cH4AcDskFj+i3bAmXSKi3Qii6GcYOZUi9C6b66t/uK8mZRw42NePmB58 aBoS/cjq29aRBdksuQtxqiq8UEPplImupE9a0SNu2MH3v5XnbrNG1dwcqAaCRNzg= X-Received: by 2002:a17:90b:4f41:b0:3a6:f6b0:30ce with SMTP id 98e67ed59e1d1-3acbb8a8b96mr820093a91.36.1792099978762; Thu, 15 Oct 2026 14:32:58 -0700 (PDT) X-Received: by 2002:a17:90b:4f41:b0:3a6:f6b0:30ce with SMTP id 98e67ed59e1d1-3acbb8a8b96mr820076a91.36.1792099978293; Thu, 15 Oct 2026 14:32:58 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 15/19] target/riscv: implement get_note_size sysemu op Date: Thu, 15 Oct 2026 21:32:32 +0000 Message-ID: <20261015213236.157767-16-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: V9SNhilfTCYnu9xjzUxTI0NtC5VwEq3d X-Proofpoint-ORIG-GUID: V9SNhilfTCYnu9xjzUxTI0NtC5VwEq3d X-Authority-Analysis: v=2.4 cv=NqZE4MdJ c=1 sm=1 tr=0 ts=6ad1468b cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==: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=WHTxxU84TY79vzyxHH8A:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX3Mtf/Hvdqy+i 3ETSGmk+2z1cgFByHgaNC9xQarJARhqlhUo0R52lWlNxoHYaT5NYbq4HZxWB2vNWFpOzNqtlALK bso5yxZINNV9QrasKAdznSAuPwt2pXX3sBwLya2JfBPM1jEoVj731CAubWRqaUzpEjLji8CXVyC hrWWkCNJocb/BMGjHv0qC4Diiw3AhnwzUsQXsFvwX8K6SQKlCsnpGaf1S3mn7Q2QU4E2P/taDhh I9Ks5YlNFKiYre9K/oaYQJKJiHt6q1/vaHXMttT+FTJ73yrnvC7wLjzqiZtLCpCAgf7MEYDzlbj HnbMJnXAKfZxLnY3Xh+Gsqrf5sDlN9sQ6F1zu6lYlADf45mmY2YfoMiq13jEU/MU4pLDjqK6FCE vjsfhXNgta4YVDyIBif5QRhH6OSQp3Dbhwy8iLeE6/gNUd1N3GSe29ZE583UCRnCh/P1BYgi1Ks gzQaSR1sfr3keDSPjDQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXxbUdskOrDCiq SItuPGDmi2/awBmkiM0YJoPxU4huimErWZBr/6La7vdDKED1+w0J4FD+KEickdREmSubwQANG64 q+E5o4m8Qz7PqvvpS/f+UQ+93pDwhQM= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 clxscore=1015 adultscore=0 spamscore=0 bulkscore=0 impostorscore=0 malwarescore=0 suspectscore=0 priorityscore=1501 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100221150158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/riscv/arch_dump.c | 8 +++++++- target/riscv/cpu.c | 1 + target/riscv/internals.h | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index b2138ada1ec..e6c18518314 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -182,7 +182,8 @@ int riscv_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t riscv_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { size_t note_size; =20 @@ -194,3 +195,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return note_size * nr_cpus; } + +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/riscv/cpu.c b/target/riscv/cpu.c index bfaaea94824..93a3f4ad8dd 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -3016,6 +3016,7 @@ static const struct SysemuCPUOps riscv_sysemu_ops =3D= { .write_elf64_note =3D riscv_cpu_write_elf64_note, .write_elf32_note =3D riscv_cpu_write_elf32_note, .get_dump_info =3D riscv_get_dump_info, + .get_note_size =3D riscv_get_note_size, .legacy_vmsd =3D &vmstate_riscv_cpu, #ifdef CONFIG_TCG .translate_for_debug =3D riscv_cpu_translate_for_debug, diff --git a/target/riscv/internals.h b/target/riscv/internals.h index 8a94aa0900f..03be7e32405 100644 --- a/target/riscv/internals.h +++ b/target/riscv/internals.h @@ -210,6 +210,8 @@ bool riscv_cpu_has_work(CPUState *cs); extern const struct SemihostingCPUOps riscv_semihosting_ops; int riscv_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_blocks= ); +ssize_t riscv_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); =20 /* Zjpm addr masking routine */ static inline target_ulong adjust_addr_body(CPURISCVState *env, --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100110; cv=none; d=zohomail.com; s=zohoarc; b=YwW4++RFU3Np0Tfm/PFgtmpuYpShM20mCMOLOtJxtEGs8XALf+A+EH+tizdu6fL0oM9mnjSk4gTQ3aN3nXZ3wP977wtvpvTb/3hRvr96cUezGSuKtwFbLiP/+clZ0GaHnloXTWmIY8eMPSXp1APS6Qodroo1yIj4CunTwulbEV8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100110; 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=rugzwJl0gQcFNLEQfZTbze/QkSoVCJ85QVb1/nLSXEs=; b=m+lgls2cunNCA4n1nWV9wU/ME8S+hPHd5GEqGDKhnxsorWvod6EOy68MoXFGHKIFfaGyAupP45/OjOdNCleEOI248r4Porb6EwY05T8uXBztOQ1b5n+L4NVJtziU43aCmz1Sj4gLlrg4gaCddtRg0axb/Jce9yyJoOLBxWzncMM= 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 1792100110690990.8841475808596; Thu, 15 Oct 2026 14:35:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT58-0005K6-Fy; Thu, 15 Oct 2026 17:33:48 -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 1xHT4f-0005Dd-QN for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:19 -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 1xHT4c-0002Sg-4b for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:17 -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 69FKDTmR3462814 for ; Thu, 15 Oct 2026 21:33:01 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hayu69v5b-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:33:01 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3abfcf726dcso2743720a91.2 for ; Thu, 15 Oct 2026 14:33:01 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.32.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:32:58 -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=rugzwJl0gQc FNLEQfZTbze/QkSoVCJ85QVb1/nLSXEs=; b=P6TW6LAtNUOxsc0wv234VoUZtno ZiQOq8gL+tMTvodG3HcyLZPBAVmMHfAsMSjhdH2L5ru6P6yVR4zGv0B2WuHGONuU C1fvBlQdvb+/uscdUJwqt0vRznnWEamC6WnjJNuPkekM7cqF6j17b8VYOUgmk0gY 4lEXgwAvFYgLfzfrYTWq7A6825GskJFvBf3rJ5QDglqKKJhN+1Rp2qxUo5x+lq32 +/v312I3W5oQHIYQUYDITQGCHbtDpB1GadCk4Q2PVts2m5lJ6xx2Mly95aPKgi78 ufiU0xRDuWtq5YRUHPFK1gYOiDq8EO7Ffo8dTqu/F/49ik/7hcLw08BUrGQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099981; x=1792704781; 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=rugzwJl0gQcFNLEQfZTbze/QkSoVCJ85QVb1/nLSXEs=; b=Bmk72UeYK//kT0Z4sGvKK/2n8lBJPxl/Lmksm7kdMuwBXhOJYZWAxG9TCkBNLa1CUJ t/xbMmD2+ZK674rKdlTZ4Pb70B0nVLR5lC+zgaZ4101v2L2T6WImjsh2UK8N4Ux++Re3 nGHIS6pW6mBLk961X3EbKeZ6Etnf6YwxzVevMRhzIUA8iE4M4UwNnRtRuHCxGGApl6A4 Lyf7S2RjMUX3HLnJaV3Y8uyjCFL7OconwlNHUGAp9qjAXqBWfAuoFvNXjQjvNGfIMYXH FxXDblTc+VmR6AzQagfzeLJd9DzqjLG90pucwtg/KgR6pE65bU4ihsPLX7VlU7uFVnsm SrQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099981; x=1792704781; 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=rugzwJl0gQcFNLEQfZTbze/QkSoVCJ85QVb1/nLSXEs=; b=d+o6vLwWVjTHY7HfFtJeb/UXyaSHQq+Pjtk1RTHcU+ePM33rQ0Wc742dUeT6TgUOxj O9I3Xg/+VtY3Y2P6L6J+hV54qnBs8jgHzsKjSgeho7ek+FNesnPn6UKJB6pxXQwI37dq AW2AmlGBllZJxslHFJB/U2zYkrF+9KpEuJjD1qR++PbNIiJ9tVegl572QYkb9CvmzsLP 9Zge3NpagrtIufnF5H2Sxqbcp+9Q9WcihjFQh0vDUI+J+SY0r7JQCg6iKPN8VzTVKqPg UCpWuW5rpSp4RxqXF+8WhNLnZAVTNmVve14NnybEg7bAhc7nds7BiqgO+ghQdPHR9PDl tWUw== X-Gm-Message-State: AFq9FYKen6QhfBaa1xIKAIqElHni8m9qW4CuZhWxewcAuF2FlI4ooUfs TEd4+8eXSLJd1sgkn+f+8DmkLceZZd6SNr/5RhHB0JWC+HtOXx8caa793xEeD/lV7Hx2kiYz/t/ UcDDbSOYdqB/RikLCW1gif/Bdg5mP86b64bYRTUOkHvTeUhTFhHhwBlSyapZD0QFDBA== X-Gm-Gg: AYBFou3ZD6bBhFx7LU9Uz+4z/wDUHvLJhhrXI298aLzcLK720U8HpBgduJF+SCIzWhk IoWnvKCDS/ms07NOAa+j/tNmbzNsbNy+jT8HBSCcuqrvClTeo1alFejpPiQjFeCa5sAHubs4/hk yE4Dy6mEnJeWcQYXUsC3L8oruBFugmO51gRvibrS89KMBZZ3kC75xHeU8E93ipkDRnJTibUvNc0 RiwNAV6UKZMBGsDmXgoIVZLZOoXJ47ON84b2Ysd545p26CDK87SEGxJ3ibv0FhmJVuEdBC8zhN7 SlL+Q3wZP7Wsu1nweYl7lsKtFXmDArJ5B2pumW4S1m1IEBgm2Pw3rb708PhXUk0/he9VKLoOnN5 5qG0VKlXEmvZbtZF3GMCFZvmWMpxfASpYRxnFLdKzh9b5fpPdUS6MtBNrtgcvvys= X-Received: by 2002:a17:90a:ec87:b0:3a8:c0cd:57fb with SMTP id 98e67ed59e1d1-3ab3ac9a1b0mr17041217a91.42.1792099980622; Thu, 15 Oct 2026 14:33:00 -0700 (PDT) X-Received: by 2002:a17:90a:ec87:b0:3a8:c0cd:57fb with SMTP id 98e67ed59e1d1-3ab3ac9a1b0mr17041150a91.42.1792099978897; Thu, 15 Oct 2026 14:32:58 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 16/19] target/s390x: implement get_note_size sysemu op Date: Thu, 15 Oct 2026 21:32:33 +0000 Message-ID: <20261015213236.157767-17-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: CsgGuYxuYmJ6wmEZUJhxS10sDvY2ablQ X-Authority-Analysis: v=2.4 cv=ff04WEQF c=1 sm=1 tr=0 ts=6ad1468d cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==: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=EDlH-CkopuZvdY7HuOYA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-GUID: CsgGuYxuYmJ6wmEZUJhxS10sDvY2ablQ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX8imo8nx+15ZY EyZTXyK3RPenx4Y2byA27m3KvSKp11VYS7/0RzS9mfLHSaShTF7e8AwOQHiEJzxvMJ1U90crgla a3g/61O69hKRuVYzPpuT9gZQ2F5I5Blq0KzV2X2ioG3UI4KBIP8h+rs+/dg4OnmTaz8Z5Mk7Q+Q BFo7RnsE3tFXRYYiRQm+fpsVomIMWpOUu4RnpU2Zyt/LzoSxj833x38+14ZufiOvgUJtptIqYPL wMCTxnDV4BnH150gqoXwBkTovCesq/ZuoEZd4H04nDVWynAueNCi7+tSCklOecH6mChfsztLgsM Fj7mowVZjeA8ovwHj6ZWimDenXXk2/+PcKOL/ciGatkBJsb4odcCgpMz8sHNle4WLCBLNXYsWiP FlWGkLIoOip75mCGsKWY/t+ebpi4IhYTfZB6AhmqwEbsX1tdzi6JVOT0dUujp0t9jLF09euHymS T1vhDmxoyKKdS+Eh1lA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX0pT/vi7cXLEx U6lyETjSGKUWgQyP4b30tRls1SqAv7WVohL+mYDius9Xruf0GRKRVk7cI8QwTX2x0BKF5wqhqzn Z3TU3xRhcvJLYrEYJWgAr+nbEOucBSk= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100111022158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/s390x/arch_dump.c | 8 +++++++- target/s390x/cpu-system.c | 1 + target/s390x/s390x-internal.h | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 4301cf400e4..3ca85e6b64b 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -469,7 +469,8 @@ int s390_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t s390_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { int name_size =3D 8; /* "LINUX" or "CORE" + pad */ size_t elf_note_size =3D 0; @@ -495,3 +496,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return (elf_note_size) * nr_cpus; } + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return s390_get_note_size(first_cpu, class, machine, nr_cpus); +} diff --git a/target/s390x/cpu-system.c b/target/s390x/cpu-system.c index 965f5cf29ae..784bf4e90b9 100644 --- a/target/s390x/cpu-system.c +++ b/target/s390x/cpu-system.c @@ -187,6 +187,7 @@ static const struct SysemuCPUOps s390_sysemu_ops =3D { .get_crash_info =3D s390_cpu_get_crash_info, .write_elf64_note =3D s390_cpu_write_elf64_note, .get_dump_info =3D s390_get_dump_info, + .get_note_size =3D s390_get_note_size, .legacy_vmsd =3D &vmstate_s390_cpu, }; =20 diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h index a70bab270c9..b02d976fd81 100644 --- a/target/s390x/s390x-internal.h +++ b/target/s390x/s390x-internal.h @@ -253,6 +253,8 @@ bool s390_cpu_has_work(CPUState *cs); =20 int s390_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_blocks); +ssize_t s390_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); #endif /* CONFIG_USER_ONLY */ =20 =20 --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100095; cv=none; d=zohomail.com; s=zohoarc; b=EB/5dsA4pNFxRT6vAllfvxJEertcvSJTeVZQv3BVNlvumO+HBy8Jmch7O3CGi6c+oBoVCzMnIDjA3AYOlmML+qUtnHvz8+rF3D+vKJ+RZsApKDvz8HWJWboirAUuGU1QUPKNQGuYiFj9Re/NFTJXQ8gvWZZ2I9se6fDAhrJTcEo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100095; 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=ON9T3X6hzCSRZPGNM61Z2uy3wugCadY3z2Fe+rrOewQ=; b=bJ1fFHJAd93XYqwd0YcukLXs8GArw5ymmgvYUdN+rJB/cDgXIuKtUWQ0WqW3RiajHpM2rc/SvnFDUrt3btS88UDXC60f0SHvtXKMm0PZS5DH/eTrdZJuJiAq2R5eIkXkXuN6AsgwmBmyyzcz4G8mt+9smOxR0dtLAnNO9ZGUjDo= 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 179210009580314.945572711540422; Thu, 15 Oct 2026 14:34:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5H-0005Tw-1U; Thu, 15 Oct 2026 17:33:55 -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 1xHT4h-0005Dv-N5 for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:21 -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 1xHT4c-0002Sk-5w for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:18 -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 69FI3MRc405915 for ; Thu, 15 Oct 2026 21:33:02 GMT Received: from mail-pg1-f199.google.com (mail-pg1-f199.google.com [209.85.215.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb3sa0q1x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:33:02 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cb11535e6a1so4649890a12.0 for ; Thu, 15 Oct 2026 14:33:02 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:33:00 -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=ON9T3X6hzCS RZPGNM61Z2uy3wugCadY3z2Fe+rrOewQ=; b=n2ZE9FbOdFBQ/a1CrVohkLFous9 JiyMxNP+eHgjsiTirPyNBi/4ZHxk/TVlVvVXjrwnKfhCD7j4rD41CDaftH+Q3pgn ljnOl0AK3cLb4QcvnHtrFS/p7A0gi98H9dDdkDJ8YpScDsoVQ23WqzwKiFxi5yL3 +y34qAhRBgSlFPXeDEinTy9IdMzoTdM8LcXqbya4Z6fhAwnEQUu7MzrJtqRWyhyT 6WKPFwQNE3ZwkcbM/+Z/Ulx5J1Ql/qjncgujbI+HGhLhRqGNttpA+2VZu2pVnpeA mgLcim+Va4Q8gOrNAhxNOxTbPoualWhAiFx4mKakBt0+cZbrNJLUqxlUwNQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099982; x=1792704782; 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=ON9T3X6hzCSRZPGNM61Z2uy3wugCadY3z2Fe+rrOewQ=; b=VuZsekwaXqE/9IQg10uR8TqS/N6rpzU37yrcqvdm6pGfbyhUPTj41V5NetXZ3ex0nL duHaZhCVYPpTWgknGRQXP/6ylZaonApJINhS77+t6vPj4aWhlQImcj3e4rRTkQfgSz1k Ee1Qku5yCfhiDu+dET4QgXc1BVQLtQk0uGl0zw9R5M9BHHs1dVpwrbxlKDx8F6f9nGcG Pub5DQba3+66CtMO8xoZEKtTFj3nogwj5rs9NI1m/kPe77ovyPbOxkijNuLF0GuJyqoZ D9XNA+jRmshWGY12F2YUlSjVU658yPZbgl/HmXMXInyrkoS2pmLqrdCmZCPlN8Zv77MB co1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099982; x=1792704782; 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=ON9T3X6hzCSRZPGNM61Z2uy3wugCadY3z2Fe+rrOewQ=; b=YKjDlTzjRBI157dyS5mJSdtRvvYp8+b7LmXoxih2PP7JDiaHNEfBz2w38oCnKL9U2b CFOT174fhtt0L8hyzJZVCOamYrXH234uJQZiC3UlmUrm14n6gQNhwVxmhx+taSCnKyY3 g8rpV41jP4HoEMBago7n+kgKfoKNlIZsAeJu7ZpmWUHuTWzrfJySxKgBmGMfZ+a3HyA6 7ZsmgF9XuerJhe3fel04k9YpKtYVtdh48aKxvPsDUHOA0wpHpJ94FilqNG3P9/WpxVTL ExBR5NgixJ4DOtNKmZ7+u+Bll7tkbdffWvatD6oz1psHnWWkJjnaVcH3SBeyUNWrFDcj vYzg== X-Gm-Message-State: AFq9FYIDprqssEkWw+zjvF/48BFVfDU2dx6WAmzTVgHombgRM0Jzb0w1 qcXG3i/tUnBsuw1eMoc/Ijf6obOZDCrJIieVkZK4/MmNryRzmyDp5OruYbfd2c3887w8bKzjneU d1NBo8jJmrI63zm4+7ZiLAw0qXjLLtbf0V6BwWL98lyoQeKmTVrxwpFfwWfghh61Ang== X-Gm-Gg: AYBFou0La50F4xMM0jkq2DL1EMQ4AeWMeJXMHJS8TULB9ZYKpeHYSSnk3SBWKddgHsx 14GPlcaFRjbitta9X4go1J4Lcn/EMhPC1uyKVbtBFXu/i3e+C9OBceD7nzJs4yrlpM/luvNmj6e bFMbkUdoNugJfHr/XQ8X4Ivmdz2weOWHQDOHqPA70/0M+Z0jkaQw5LIou8v7UT0yhrPXWuHuD3E nIVpFdbpLYPLxYjuF997J94jQ59w6DRgjeFR/fwYoV4XqWa11QXrtc2l+6UGmWagh4PRAY8oeA3 tS9VvmnYgoVG7AyUcWRfXH0qPsnOpHB1IxaOPmQCz1yGtFvRo+YpznLRoWfnD/LhzwSpCNDRWFD cfzqxSyWx0wi/1mQlNjiHhPbTuMulvZnMT9KqAexmXXfbKyyB2v6vPjos9/byDTA= X-Received: by 2002:a17:90b:1e47:b0:3a4:ee64:b82c with SMTP id 98e67ed59e1d1-3ab3b06bb4bmr16369255a91.66.1792099981416; Thu, 15 Oct 2026 14:33:01 -0700 (PDT) X-Received: by 2002:a17:90b:1e47:b0:3a4:ee64:b82c with SMTP id 98e67ed59e1d1-3ab3b06bb4bmr16369234a91.66.1792099980787; Thu, 15 Oct 2026 14:33:00 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 17/19] target/loongarch: implement get_note_size sysemu op Date: Thu, 15 Oct 2026 21:32:34 +0000 Message-ID: <20261015213236.157767-18-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX2mhSoQKwEaCw EDc5JsIwLNDgYtRgA3upW7gnD/J45sIP413UkNuo5akYN00xobrrtEGoj7jhO1+3nclSfct0Ke9 aZyH5V5fD89KyuhqWKfRArLjCP5cV0M= X-Proofpoint-ORIG-GUID: 7qCc9l-ku-pzp5RYmRnjDhRbZxVZoWDQ X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX9S6hsq503fHu aAPVCWHtt1TKqYz/7wULjS0KIwNhC2zL37aAD3M5FpQKgUZutG/2kV9nRhtqT5BXdx1KGaoecSZ Q6utQzobBFwWhatZQhi7HGZN18Diq6cEKgLhN6ZUI1ztr6XwnktoSVnPC1L4p/Fyegf4xTF7sNo PKBYvvu1QOAvwOIPTbdx8oaYR9/8So8jhx2bfAPzJ2/EnM1cFs0+4aXGrAXyIPYLYGPKA+/0yz6 2VS8qADiI55NaNqjGVpAzouZui9NVIt27N/fGU482c/pUbBZJIBIhQpH8S+SytODLIkCdjPR8Xw GKdggfIQL24oiiIk5OBg2x0udZvnrsCBMOlKWDzPPqnfLZ/5JWCgMWwl1Qb/BrKkeVtI7yGNi0x O82Qc6RZCgxv14k6CMvWC6N0Rrje1WCx2mFS6fMycHrGC6d3WI4zqh0NDSVf0mdbUVWXuvshsaG J/yp9ptwArXd8bWR/qw== X-Proofpoint-GUID: 7qCc9l-ku-pzp5RYmRnjDhRbZxVZoWDQ X-Authority-Analysis: v=2.4 cv=AN0XGc5Z c=1 sm=1 tr=0 ts=6ad1468e cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==: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=VoVa20T_UCIUsInyF4AA:9 a=_Vgx9l1VpLgwpw_dHYaR: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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 suspectscore=0 phishscore=0 malwarescore=0 spamscore=0 clxscore=1015 bulkscore=0 priorityscore=1501 adultscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100096732158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- target/loongarch/arch_dump.c | 8 +++++++- target/loongarch/cpu.c | 1 + target/loongarch/internals.h | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 5a0e1742242..e27bd0f6497 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -152,7 +152,8 @@ int loongarch_get_dump_info(const CPUState *cs, ArchDum= pInfo *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t loongarch_get_note_size(const CPUState *cs, int class, + int machine, int nr_cpus) { size_t note_size =3D 0; =20 @@ -162,3 +163,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return note_size * nr_cpus; } + +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/loongarch/cpu.c b/target/loongarch/cpu.c index 65772f30947..5e182922b7d 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -842,6 +842,7 @@ static const struct SysemuCPUOps loongarch_sysemu_ops = =3D { .has_work =3D loongarch_cpu_has_work, .write_elf64_note =3D loongarch_cpu_write_elf64_note, .get_dump_info =3D loongarch_get_dump_info, + .get_note_size =3D loongarch_get_note_size, .get_phys_addr_debug =3D loongarch_cpu_get_phys_addr_debug, }; =20 diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h index d4bf30b293e..8625529c328 100644 --- a/target/loongarch/internals.h +++ b/target/loongarch/internals.h @@ -55,5 +55,7 @@ int loongarch_cpu_write_elf64_note(WriteCoreDumpFunction = f, CPUState *cpu, =20 int loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const struct GuestPhysBlockList *guest_phys_bl= ocks); +ssize_t loongarch_get_note_size(const CPUState *cs, int class, + int machine, int nr_cpus); =20 #endif --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100109; cv=none; d=zohomail.com; s=zohoarc; b=UT169JpSYtR3gHm39R190bCYWk7OxhL22zTGjKoXIBFodaijDYu8LYo9LHb7/+Zfk+nG2tOzjVrHz1syREOpBVy53TQOFhZgHyvWO/UwPkr2gsIQV1gxIzoCTJwSJGiZZPIhF39hJU0lFtKD9qaoKP1C2C5m5bEPCzuX12zCQnE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100109; 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=TIR3fO0hLFg7fsLO9DezdUDRH3V5oT18JogvbWYievI=; b=U9+KkHOepe9WTCD3LTh2Ao9rTDPe8u2RFuYS8vv+t45bmbSLKTyON/r2Bl1IiSVJmhXlTWaq2tw+JwIb4fjVVKzKciAA+kkjbTp04w7sxbFECzjn9Ki2zx73/2Taz4kUuJvXCuQpBsxtDTSmyjkXz40MJXY9AFRkn3R5Y54rySI= 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 179210010905074.38721463940806; Thu, 15 Oct 2026 14:35:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5K-0005Wi-Kv; Thu, 15 Oct 2026 17:33: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 1xHT4f-0005De-Qi for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:19 -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 1xHT4c-0002Sn-6m for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:17 -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 69FKW95O3462792 for ; Thu, 15 Oct 2026 21:33:03 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hayu69v5d-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:33:02 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ac77c3ff6aso2984399a91.0 for ; Thu, 15 Oct 2026 14:33:02 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.33.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:33:01 -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=TIR3fO0hLFg 7fsLO9DezdUDRH3V5oT18JogvbWYievI=; b=Vi9HPYaArYiHhc3rQgolqccj7JZ nv4axEnLh3AraDM3x4TM2OLWI04AyOld6Idf4YFdYEKvn1e4d7gBZRxtW/WgXWoU I9XneelT3dsEmyACs1Tdycn5IcfEIIFCDER6N4Pavr1Viffdl3WW7I9frVyNKH7T 3CKUPVT0nWsh/KryaE0yXsTLb7LBFMTLBUK4FSyFt5BC6bm6vlL/YsqY5jwK43n3 HR4hTLJZAVEzPPHs8BQAI9UFKvVd5C8DRWn9x1ua8UTF/JRx19FpO3h1PiDDQQDC nd+gtEN3rgVIKBhUiMkDXDieGPVDHWnwwvsEwOZrHXOs7WtBsurZHozj1gA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099982; x=1792704782; 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=TIR3fO0hLFg7fsLO9DezdUDRH3V5oT18JogvbWYievI=; b=Vpg1DPlOI7FxO11cUung8NzLRvV9FI8LbWtbQ6veSW2GwoD3EM/4zuy76svcj7M5ol FWsaaECzUcKCdZhoha9sgFfs8UpNoVodkD+lbPbXqvpPQMekSJg/jH8B4QvIFqqer2QI fRh7/OdkaG9uHumc1TiIILL1WIbaaNl0Zvyf8i6/PbeQ3VKcuFE4cquG8XoLEcTh8Jzj jFSD5m0UjxFRAHfqt5WD05gSDCLfwXOGixchx/UeaHUGCOnwCmL4cAuUGQ1Xm4JZQZNX T9O1Hv7CPWSW4KxErw5pDskZ3G/rQAK6CdDM7YfS8qNxEJyZXpwODH92w4FmWtvO2YbM idyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099982; x=1792704782; 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=TIR3fO0hLFg7fsLO9DezdUDRH3V5oT18JogvbWYievI=; b=RH4btk+MchnRR+4HLLUcBWqYqMtpv7bM38d4cSf1AKeiUMzTED1XkbPG0DEyWWuzYl //20AtFMIxFPOP5L2cE0jhtabB6xvXU/prn5SxKtBFFLYszdht83k7pszWS219HMUzyW G4GSju1xq9iS8JOpO2S2KrDD+vQefWLQYU69isKFyzZ3S1FUCd6Kd++E0SANCY27TnVm N54QXZhzIb6Pxp4XyM74Dv6CRw7v/CgblRN7Y1xFXCkfeV2RFnl+4L3p8ctuW5UDegfI D8UFoHYEkIDTbSk/po97LetXiy7RpC9RSzVlmGcQ38kzzmlzK7JOgFvAd9a4TYI7j9Ab pN8g== X-Gm-Message-State: AFq9FYILALXDueFgAVHDVmD4+NdfVsOFXH9gb+gapd3O7mgMfewdHmgB gts079J1i6N3n3yq2lkEQ6Ore5GApoaMxBu0YcBBb5UdADbSOrQXcZroCVYaiEDrRlbEuKckof/ 2ZH+husdA6pY8FHAMQLewm7G069QpFOEFpxJ1UP50ujQLJlRdnX9T86jWVvBH4B/k/g== X-Gm-Gg: AYBFou3USJNv63d2Jcn0yRGVr5wtJK3wcZ1ihxW8IZHhEk1CcQWnJHbMIwutqj2bk5d pogoo7dSCeSEemW6x+fK4a87N/h7AdXYcMKCzFNYVxo+/WoPGpMPOBtbr1Pp72E+Q6tnSpUiEsj FshxJ9nJN13i/z+KJyq99cmnFsFT9zHgzXXC68xuXKMEPH9TQ6/bCfBKbCm7QexCudX/bNRCZrc r0kKdMTXzNiam2mady7sgEkEG7K1KflhZnaJEJzelUtVxZ0nkRamAUSW6U9I+WTAZ01txtQzJ5n +QNNsFhEXY7WSjR+Dyfoaa/5iw5Ccmak3PRoaNqvbGutlW7ua3AmxyZ+q/Fktpu9+h8XT1ZBMWJ Yv3TyS8Td7pIPABO01zmWhkS4VANikZTCu6bp6lUkzITZZhsRG2idQzVB3ZbcNv4= X-Received: by 2002:a17:90b:2889:b0:3ac:eeb:e0ed with SMTP id 98e67ed59e1d1-3ac0eebecf5mr10687195a91.36.1792099981908; Thu, 15 Oct 2026 14:33:01 -0700 (PDT) X-Received: by 2002:a17:90b:2889:b0:3ac:eeb:e0ed with SMTP id 98e67ed59e1d1-3ac0eebecf5mr10687179a91.36.1792099981457; Thu, 15 Oct 2026 14:33:01 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 18/19] dump: use get_note_size sysemu op Date: Thu, 15 Oct 2026 21:32:35 +0000 Message-ID: <20261015213236.157767-19-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: FErL0aiNMRvByoR7JPm2HkAwT1wv0yxw X-Authority-Analysis: v=2.4 cv=ff04WEQF c=1 sm=1 tr=0 ts=6ad1468e cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==: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=4q89r5wyS8jGYcIIz-oA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: FErL0aiNMRvByoR7JPm2HkAwT1wv0yxw X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXysgKTjJtXqx7 tmSo5hLOnjxYevQhxCKWqHQKlqWCbeUkk6sYwLbwttI1xUfchTFnTyTYDZICw211nNTCojoRRcH FpB6Vh+HatbebPAVlRw5WaR3GEBwJXJ+hJ3MHwgwjUJFGY06dff7ffzUXAoEJNsEAdwUc/sEq+9 yzLVyGQ59GujtO3sst3I02oOkJJSk/yDnzjFEVgC5cB8TUmViTPbC2fP9maJnUODHd0KP+8WVjV F80x10BSR5UhGIKHBi1W34NdANIl0qln7cerN7+j22rg4w90ykILUtm0yCZE5VOc1Dc25G5h2aU jD22/25ij7IwjEHbbSFblTz9hOYB0ZlJlH/EZo5qbyE5aX5bI35EWVDdmxrxS+9Bvd/mn9XMbJ/ kthThgrseJIfe9hotNVhYVaVIu0Q/BqkLIs8kr6jPtpSgot8Am/b86+g/XJFsSDXGk/KA2AjA/9 oNprGC0tv1Km5cS64zA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfXyIua0VY/VC2R OaQjPwzmhY19z1B4TaHrC+YrE13a7/iv1alx7WlG1MgMt0bzVBxsax02XyKiU5I3X+ne5SiJ1pX 5aTbRnHKLofLsglQPkcHKORv4m+pKcU= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 clxscore=1015 lowpriorityscore=0 malwarescore=0 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100111018158500 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 Reviewed-by: Anton Johansson --- dump/dump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index e43e41838fa..6c3bfe6bf5c 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 SysemuCPUOps *sysemu_ops =3D first_cpu ? CPU_GET_CLASS(first_cpu)->sysemu_ops : NULL; if (!sysemu_ops || !sysemu_ops->get_dump_info || + !sysemu_ops->get_note_size || sysemu_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 sysemu_ops->get_note_size(first_cpu, s->dump_info.d_c= lass, + s->dump_info.d_machine, nr_cp= us); assert(s->note_size >=3D 0); =20 /* --=20 2.43.0 From nobody Sat Oct 24 15:41:30 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=1792100114; cv=none; d=zohomail.com; s=zohoarc; b=ZR0Po7y6EcTo6Fes2Mvaa3PPeEkiD1G4h+d+SZg/+NNINcFaXNRaLdVD5mbCHT+3cpbh7YWaR8ioeDBeecDX4/As0T95UOrHk5FdYVnNgYw3eOa9KIXIv7fDZ2YRebr/SRKacuplCM7Lp4dyZnf0DsNN0JDw5Afw4VEmiGr/2o8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792100114; 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=TLNeeWwkDFUK3LYGtj00AVqEnhgYmZHbCFwv82ekeQg=; b=mSwcznupP7Svb6gx7FnVE3DxkAGC7V95Z86X+mqqThQ8Jnc/DsrNXWU7d/plQJv/ocI6AD0gnaJL1qtWRhJzzsLqDMwqowwtfNUx322mkCwxjT2Q45YdBoai0OrV3ik+nqMWme5FZB5iW2Rd97O3uW1jx2zShwAhJaE8Ft1WCHk= 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 179210011487777.1253599929546; Thu, 15 Oct 2026 14:35:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHT5I-0005UV-1I; Thu, 15 Oct 2026 17:33: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 1xHT4h-0005Dw-Nk for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:21 -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 1xHT4e-0002TJ-5a for qemu-devel@nongnu.org; Thu, 15 Oct 2026 17:33:18 -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 69FG5fhh3493223 for ; Thu, 15 Oct 2026 21:33:05 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hb21ws6cn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 15 Oct 2026 21:33:05 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ab868fe362so7586468a91.2 for ; Thu, 15 Oct 2026 14:33:05 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ac940055f5sm5989362a91.0.2026.10.15.14.33.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Oct 2026 14:33:01 -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=TLNeeWwkDFU K3LYGtj00AVqEnhgYmZHbCFwv82ekeQg=; b=eqNOD7AK4Cu1FZk/gZ9yS2eemy+ QLEmEEH5gdsELbyroxP97wb2SxGgtKrUjrF4giNM2q3PTbnKysZAchXilcnfRXll G4Ayt1T1jcdIXcGcUbpCfDkQCd0pYIuEZ5zdfduusUVv/XRQJ4nVDkQPiM5NnK3v SQ2v/W7Vr1JikNY4Zoundm2NsiLDCmY0ahcaLq8e7e91L+imfDkiHTFOBIkQP8d4 F8xSmqiQnWLbRT9eei/3wcBoAHBUuDWsPwtKso1DLXNDeOTbERuErVvpiFXkQInL STB2UHfa+sH0OMftmCcJ5vgHSdbiokQypsiD6aF+fQMNbiJBvfSF0PCLWpA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792099984; x=1792704784; 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=TLNeeWwkDFUK3LYGtj00AVqEnhgYmZHbCFwv82ekeQg=; b=H0qfz1T9K/ex9Vz0NRNGNt9L28Lo7EqxX4Es4Uxfz9TOxAOvP0gGdg3uLn/MfXbLw2 t78i0WKq7IyReHwXxgQ9M5GIopqezwOKvAR+Dk+ZuaY+yFjl9+67IFM/T/wSP3pz+93o hxU7t12AJrO3K0JCMyXsyUfCJhqFtswNH6zD4SigqqB6MXHaGcZweSqXFeae3mC2bqVh nCGrFny4wCsAr4ykaE7F4S+yf58KJz/kODkaprifBZQlGu4DDb0Ft/lmjdeP1ZeIhEcS Iwc/iP3URD+Y2+2JjvkRqlb0f7wRNkO3BLb68g5Y/LWZ4wVMkzKeDzaVQRXV5WbLaCwu fhCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792099984; x=1792704784; 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=TLNeeWwkDFUK3LYGtj00AVqEnhgYmZHbCFwv82ekeQg=; b=CdzKTVz3kKDtTZIN/oOLa0vkRfa8apoORli0NjOtdVP939GH1MrTqQxg/Fp5tmvOUN pcRPruG6Wq3af7ZFjbdHkVxUI7hVscWpjZhciiHwbzeSdcOlAkHKmVch1e9cz6PpAztk n8KaLz6U3gGJ4PEbcFV2SiPW4wL5HYoDRglk0nmOrtFl0S++kinyRDfWG/jZxUcXRiQX f7oyUmRdxlolB+Cx6TM5kfoJjlb4EStrChS0Y4FBjgYhYIuufpZlhmsE6QDcSxdHgHHH 5Cij8W8bhvDcdgOEyw31YSfRNESirUcl+iSIDCBuGEG3iBLkhBpL1aAgQfsVv/BqpeOE wktA== X-Gm-Message-State: AFq9FYIM88buUuf0rdHezc7+7uQxQy18RkRl1txP/X/qEkyL3zr5Z1Tt NTMCBhep1Lzd/SobhgVJ1EcfTKEXksUB6FbFp9MtbyxLIyNQVxnEMkmbSR2Nzd7owbIhkesxtD2 u8C7jMNOQERr1F8BaQnUQpJ1UPJbHxdOGB7IOFukbb3To/r1gJfGW2DzDRyrGPDzr5A== X-Gm-Gg: AYBFou2L1mbJuQPAywKGJ6JN67iCc+pfr7bLXlXo74bpwYF2gqwvOeWDeB0Iy7AkGVp m77/YPeYk9y6v1d0LoaNMcn5k2HJ2PSDPit6GGOFUg92GCxsC7ZTwOoCzV69jGtn72PYXSVlZTL U5qVPcYxg6CVzAfh1g6pyKC+6ImPobspi29y77JPjz8CxzWEuyHkXapIg8k+Nw0vFvgINnPZi8Y DAyJupl8/gYFy3xQGgoRKcYEMEKu5vGEcT2J/12ySsfdqlOzeHPs8sLTN4Hf50rY3ejr2t/Uybb 0UhkYTj+Sr1FLz2olo0DBwx+9SngObmpWAYgclx4rR5ilwiTx54KgS0j4h6bWXpF1A80DeiFasm DSGDe7jmLIVAtmlNzHukKUuX+d4TPAe9RWAM3SHnUIZ/BRN+l6GYQgjVNHh/2L5c= X-Received: by 2002:a17:90b:1a82:b0:39d:f08e:e6e7 with SMTP id 98e67ed59e1d1-3ab3a35a068mr17696951a91.9.1792099984117; Thu, 15 Oct 2026 14:33:04 -0700 (PDT) X-Received: by 2002:a17:90b:1a82:b0:39d:f08e:e6e7 with SMTP id 98e67ed59e1d1-3ab3a35a068mr17696935a91.9.1792099983622; Thu, 15 Oct 2026 14:33:03 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier , anjo@rev.ng Subject: [PATCH v2 19/19] dump: remove cpu_get_note_size Date: Thu, 15 Oct 2026 21:32:36 +0000 Message-ID: <20261015213236.157767-20-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> References: <20261015213236.157767-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: FMYkWSVjk9spBlh6AXg47kfLP6qpIwVq X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX0Q3KRWmt5DTV sa7dKlgjkbxlveiXd6CWqeTWO5hjhPrOZPcbRGhOHXbz/O+ekT4lBhUqH472snMFBiD2ebpEEZI Gb6hucm1wa1QULPDEm6C90yeZbHCR1tGAj2Y38s+ojsjbjjUG/m3APAnSK8DXrn89NWGOUD11nf NQ+8DxFSCHoG2x0LWMAV6WJ/n5VYE8i1v2YphXuqeU9ilvIlMPYMum6BGEBEc4VEHkp+qH8PvIi m1SweBHgLadQOFnvRfXSWgYHy4JQWBGf+lPvCBDZtkk0+KAdeykerNGmSsJT91O7poe2qLTW9uZ PfD/nWhqOxZR9CyDlL6Qqhdo3SgAFCxs3qLkAh/rwdWSzPxWODqQQrUYOTECVDMLZz6RIjTWbCZ H6g3/DItTwViHXkMlNdNgChBB6YHsr5LTP1v8ohHk9cushtVcd/Q1KQ3StUBhLg9EkOwpp293Ru z7xjTk0OaWPl+GlDd8w== X-Proofpoint-GUID: FMYkWSVjk9spBlh6AXg47kfLP6qpIwVq X-Authority-Analysis: v=2.4 cv=R5qWitRX c=1 sm=1 tr=0 ts=6ad14691 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==: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=omOdbC7AAAAA:8 a=CyLEvaaXfOEYD9uW4qMA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE1MDA4NSBTYWx0ZWRfX+rZYyXCXFTG9 b/PKhFq3xliks2KOGm4Sefa0kAgf6E9TywocSYWuaUCCY5g80tf51fg5/bsJgnTi0Qu3axaDgz+ d1BfFoprROYdzeCygJ8lIH8lWeFBzgI= 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-14_01,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 impostorscore=0 suspectscore=0 phishscore=0 adultscore=0 malwarescore=0 clxscore=1015 bulkscore=0 priorityscore=1501 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610150085 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: 1792100115158158500 Content-Type: text/plain; charset="utf-8" Now that both cpu and the dump implementation use the SysemuCPUOps interface, we can remove cpu_get_note_size, including its stub. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson --- 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 29b6644b254..c6d96959d24 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -71,7 +71,6 @@ 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() diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 60456e81bf8..986ce3d7884 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -453,8 +453,3 @@ ssize_t arm_get_note_size(const CPUState *cs, int class= , int machine, =20 return note_size * nr_cpus; } - -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 4d8e9374cd1..4a375f5cbe0 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -461,8 +461,3 @@ ssize_t x86_get_note_size(const CPUState *cs, int class= , int machine, =20 return (elf_note_size + qemu_note_size) * nr_cpus; } - -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 e27bd0f6497..0b39fc73c12 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -163,8 +163,3 @@ ssize_t loongarch_get_note_size(const CPUState *cs, int= class, =20 return note_size * nr_cpus; } - -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 585306ccf7b..965599368f7 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -269,11 +269,6 @@ ssize_t ppc_get_note_size(const CPUState *cs, int clas= s, int machine, return (elf_note_size) * nr_cpus; } =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 e6c18518314..bdf411ad454 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -195,8 +195,3 @@ ssize_t riscv_get_note_size(const CPUState *cs, int cla= ss, int machine, =20 return note_size * nr_cpus; } - -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 3ca85e6b64b..5048fbaf982 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -496,8 +496,3 @@ ssize_t s390_get_note_size(const CPUState *cs, int clas= s, int machine, =20 return (elf_note_size) * nr_cpus; } - -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