From nobody Mon Nov 23 04:36:04 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=1792706288; cv=none; d=zohomail.com; s=zohoarc; b=LcTLb2hmaI/iGjfVrWf51+2OgMUGsnHYt109LukGmah9mhA5QwGxn1hPVwB2o5G7tVYVYBZBX7Lz3LIO9mA6ijaICgZpqHeiZ6xbwwDRqPbYy369oTRUK/9YAdeZfWy2YRFjbBNIiyUdZwzMqSSYCphmD4wrB9SjFEany23nLXo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706288; h=Content-Type: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=I7Axch5Ih1Zx7ZYX88b8RUp9GnB62drecR4kX6OmOTc=; b=IKMUG70aPudSfSVVazXk2H/qkpgE1BsMEm8dby8EvkFuEHTyC/zgFbr9myb+4ZvMkhrbMn6X/YBBqE2QdgmYviyOFW+/6U2SO9mbvr3CykJqXu2buFAw0+a/IyoFDMwJ4Ky/Jd4/PAyTCjMklI8Li8qsxMlXE+9VYl9+AFq32h8= 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 1792706288813679.2336475720936; Thu, 22 Oct 2026 14:58:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nL-0001jn-JX; Thu, 22 Oct 2026 17:57: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 1xK0nJ-0001j4-Vr for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:54 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nI-0000FS-Cb for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:53 -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 69MLa8lg828637 for ; Thu, 22 Oct 2026 21:57:51 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 4hfnyw184v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:51 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ad7030e886so318347a91.0 for ; Thu, 22 Oct 2026 14:57: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-3adca62e477sm648061a91.2.2026.10.22.14.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= I7Axch5Ih1Zx7ZYX88b8RUp9GnB62drecR4kX6OmOTc=; b=UQ0lVwTQjqWB3EYD mZ4+ZnktvYPFTRcEGjfR4DgDJxBGI2smsyic5i9Ph+VAASBujfFLOB58SUWx5ucR EWuW4OpGUEycqL7Xvj9TYPAtkjd7VBEDYpzc0rIu7szhXRMQVppgIRYofdfpr/DM A+6tNAgg/epeJv11pmEYwHx0VPv0ciNMKrheefwLse3lUPMxY9ImCzLEMTG9fWdM FK4iN2UeAqo7WsoCLaYR1w3sl1Sp7k/a9kxaO2B7J9r9IxtZLBZrQC05k3tS621D 1p7zbhoTNffbO5F0MwecvER+mRSNSXXr1rCUjVDwu+25PNc5WJlWH/3Gnahfw7JI xx1QJA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706270; x=1793311070; darn=nongnu.org; h=content-transfer-encoding:content-type: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=I7Axch5Ih1Zx7ZYX88b8RUp9GnB62drecR4kX6OmOTc=; b=Fd8VRBhNcOSiZXTSZqyMbJq47rO+4h2kb1etsQ3Nr+eIXz937Dlbfdpfd0OrPKzuwI icwkqc8ohFrdp1ygZboWBtuMdMrt9DL5zX8DhYe4uIrniZJFD4DoSa9Ikeu5P/N6Hkte cnUubCd3D9DOoaGyavh0NVtPYc0YYVQiukNZtNcSKXhj7LdBsUEd6dccTTfg7rivCXtp h2jcO+/be3t3DhMguNqc4xIJ+XNniVBeqnZfJ9TE5lZ1bXooSsb/ULvEqCBHQy7tL5Zp TGBg885PurARfTFUs/zX0KBhx3v/OpKNqIvxO+5BOb3lUf3MWkxojsyCcMnNIe0VqlaO 0NKQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706270; x=1793311070; h=content-transfer-encoding:content-type: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=I7Axch5Ih1Zx7ZYX88b8RUp9GnB62drecR4kX6OmOTc=; b=crWa/C0Q8DgcfBeWuOEjQsR88svCGqaGLg2M+FD1cprnTXx2aTum48Iz95xAP5rL5K 6vKscELCF8L/aLurL7gISYP88JIgVZ1i9WJfk85Sk4IRs6VBtVGP7CIzoV+syMP8TDOQ SF6wuLHtPfbX9j+2FAJ2qdpDIimCcOYPmfvtx37NPpfVwwkyGhdCdyD+HFOAWzwob+Jn 09sucBN/xOPEORA2bBMFDOgipgwGAuoCOli3t3MffGrPsVscAf5itR4LV/bnuonw16kH St2qvBSZEhqYvJYixfQI5LOqc+Dao0WAGTT+fQeQZHxgEkz0d9sRqEt2RdQ5uqcvUcxZ N/Fg== X-Gm-Message-State: AFq9FYI8uG3JH+nlcmt3uQ5DlMxhOyxpTErzh2OPtkPmKrctYbBofVEd YEVmsYaa+abBPiQZ+0pACNsNWV5rGJN0Eanew9rj6ia/895Q2SC/BK3YN8j6JQqco1nw/ZlCV3G ibLXkLcwzmZpMuKC7TfabQdhY3OOxiW2aRDZ5okwk+laoKS/nGs2z8+6BtcoYsQ3tzA== X-Gm-Gg: AYBFou39mtwjidIChQZvii1DboxkUea2OslRgtAf91J6+kAmEI7169KSzbHu0lwqNMZ XVY2wbIWiI5jgCK4fNtnDwseAwJ4NPdzE//0lTv/quwBAK5RTLKnixKmafIalvPlQUsv43TB+d1 BvVNljqITNrfKM97bPYR1LIL9WlK4uxkIuZrCcwmHpW1O0PkNmfU8P/gtpHMyZ1IyCmgYVbzNZ+ Y1TBThaDGITbbVIeAcggBXR8EkcZf9QRBMcg5dhvbPGu+o41TljMTBFHU1fca50hmz06hs2eUJ0 ukMHSDPIYqnhcGK+Hbfk7Qt+BFsvGdXgfcJtpSxOPP9AU21RH/Z1c9maTuiSMw6XCwLZwnyPQZr ioFAYxPqnHyHqRNhoq68doGpAySvqfW9QwrEaKlqfgnwqf5W1eL2308eWrsikAE0= X-Received: by 2002:a17:90b:3810:b0:3ad:6090:a183 with SMTP id 98e67ed59e1d1-3adce02e00emr231622a91.16.1792706270316; Thu, 22 Oct 2026 14:57:50 -0700 (PDT) X-Received: by 2002:a17:90b:3810:b0:3ad:6090:a183 with SMTP id 98e67ed59e1d1-3adce02e00emr231612a91.16.1792706269841; Thu, 22 Oct 2026 14:57:49 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 01/27] target-info: add target_heterogeneous Date: Thu, 22 Oct 2026 14:57:20 -0700 Message-ID: <20261022215747.2479440-2-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 0q1jvzBMlZxBc5ZwxVQC14KBXWbfsk6s X-Proofpoint-ORIG-GUID: 0q1jvzBMlZxBc5ZwxVQC14KBXWbfsk6s X-Authority-Analysis: v=2.4 cv=dphOmFg4 c=1 sm=1 tr=0 ts=6ada86df cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=3q1FPIo8JGfx5WVhvewA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX10nGA9fDzJFi F+9melscdY5Eo1CCF6WvXHFzmGf4DNFZolsFnZUaHIZuwVoeIw80dGGI1DxzpKgHE8mfAmTYbyA R6Y17lNFJYi/u7pFbE0EoNxFe/XEPE8= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX/v0id9/DljRM NG37qkHK2XpcDGFolC9TcpPZxJDC/XBZf/h6ApPkJh6cHXO0+aXXwo+Mg+no2oO/l5pi7djC2ii cONLJvfrXcWyzGUT6ldUyK8bV+ZeMEgX/+OuWitWORT4BrBrlX69fsmDbmCHX7fXlKBGnfU/S0e xyronY8BPBk0KWS2/CAmZP6+iQMuPfwUU/IPX2KiCcDdRtc9ZU1pTvOg5WrjNiuF4GwDvafCRpA JQhGvMUXoi6v59CDtPUtheEHfh2oq2G37yh0z6fOq7/6BRCVpeE9dfFLHDv4s9H7BvWVbJ96IUn MCOWkRQ3ldDVKTLv2H8LISFl0eaKMmbEJb32JBvSMWaqi12c0H+d1WXL6ltub182mewESsuM7lF u3Ec6bQxuwqdhRYsVUwlG9/0FveGkXHwC88rgIadk5odh5Iv0PlP81DS6B+4a+Wz6i/zCkekMM6 7Qk8xl/nr92VcTCglFg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 clxscore=1015 impostorscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 phishscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706289633158501 For now, this function strictly returns false. We'll turn it to true once heterogeneous emulation in supported. Meanwhile, we can use this to add various checks and asserts over the codebase as reminders about what we'll need to modify. Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Anton Johansson Suggested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-2-pierrick.b= ouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/qemu/target-info.h | 8 ++++++++ target-info.c | 6 ++++++ 2 files changed, 14 insertions(+) diff --git a/include/qemu/target-info.h b/include/qemu/target-info.h index 862097c6c63..923c00c917c 100644 --- a/include/qemu/target-info.h +++ b/include/qemu/target-info.h @@ -42,6 +42,14 @@ const char *target_cpu_type(void); */ bool target_big_endian(void); =20 +/** + * target_heterogeneous: + * + * Returns true if current binary has support for running several target + * architectures at once (heterogeneous emulation). + */ +bool target_heterogeneous(void); + /** * target_base_arm: * diff --git a/target-info.c b/target-info.c index 254530d8ea5..b8a4a7ebf7a 100644 --- a/target-info.c +++ b/target-info.c @@ -42,6 +42,12 @@ bool target_big_endian(void) return target_endian_mode() =3D=3D ENDIAN_MODE_BIG; } =20 +bool target_heterogeneous(void) +{ + /* For now, we only run a single target at a time */ + return false; +} + bool target_base_arm(void) { switch (target_arch()) { --=20 2.47.3 From nobody Mon Nov 23 04:36:04 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=1792706585; cv=none; d=zohomail.com; s=zohoarc; b=mZpytIAkRaGBy7KVao/WDTYp+FzoerB2njB2c/PqkuNCjecsVd2n43hbqaUmAxf53auac4CgchhOFa2JaFseumb5F+ZcNNGiKfZ/CO0Ssl+v7m4jrmPfqd6hopqlll9iEvUapX8LE7MJF5SCa8eNrEvTOjBqOOTI6QqLcMEH3lM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706585; h=Content-Type: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=CW/quX5P9GR6LzLZTAaMRIxrUWntK5WX5NPjgv0izAE=; b=WEOcFFero19tL+f2jSeFWzNQvxK5dRinagatJMKxpglanr46S+QpsdZ0KY3vm0H5huaSULKDD2VMA92WFie7CTfUFpDeMrO+rjlU/bO0dBAzUCG7KWOZeyNXSmeIMihX5B7pJ667JdFo70Fs/PmFwkXmwXzDzRX0pP+u+oyqHUs= 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 1792706585092113.2182310840725; Thu, 22 Oct 2026 15:03:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nO-0001l4-7i; Thu, 22 Oct 2026 17:57: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 1xK0nL-0001je-Dg for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:55 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nJ-0000FY-13 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:54 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MKWnH53413285 for ; Thu, 22 Oct 2026 21:57:51 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 4hfsmar8cs-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:51 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ab67ff8ec3so190816a91.0 for ; Thu, 22 Oct 2026 14:57: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-3adca62e477sm648061a91.2.2026.10.22.14.57.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= CW/quX5P9GR6LzLZTAaMRIxrUWntK5WX5NPjgv0izAE=; b=no8MP4XUyeG1YyOP /surN1VtR0i+yPC6/EFqBSQPoxYFVGg1ja8Ft/AdvdzRdTBY1hl3PJJgKPw+cAMn nQKaRdASEmqMErgJMY1nn9rgI1vwTCcvqmk1cu/BEa5thkyIT4yyTj1nXqAKEaD8 6IHiyXEUx3PPLMKo27UvZzMcJ/OUO8ARlIz57rwGyqE48bbBSgKpu3xwvu0VHiPm CnIo2hi6Rkldr76M6+Y32GMrriE5TmJCV9Zoyz23H8jGXhQhJzjaOphgQn6POzdi p8aNK/Wkac69zSkTjwKqp93fSjOSiYsxmdKsN/NlGaKGhzpUew+FzWN/fhyk5UdA B/sZ/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706271; x=1793311071; darn=nongnu.org; h=content-transfer-encoding:content-type: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=CW/quX5P9GR6LzLZTAaMRIxrUWntK5WX5NPjgv0izAE=; b=Ow8cl40sAetNWMAZx1iQgnFmSRI0cMxT5JDODEJhh9k/Hpl1wguIYXZIMudSibehEi 8WE8HPziS/3TvOtFAzXdpoPLnPJtsh88xiWNAbNsCMPJndTaX4alVgibOMLd+IzN5KIX Cnlqlercrs5nWot3Of3NUAQ99L5YGrRT3obUshn+9dZTIA7/+NANzwrTEji3cvdtCobB 0njz3MgZtR0IGfSCOGmF6Cy1WpEY1SoqrzdgcoD3KC24ZMfIdaVWCPxErYOsZ/ee52cK yGMTKh0o6IoTfpJ72OCNpIIPoKrTTXDvC9hUPARBQZJCFIN0EI3+d4XxSvMezqU+QmTS evLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706271; x=1793311071; h=content-transfer-encoding:content-type: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=CW/quX5P9GR6LzLZTAaMRIxrUWntK5WX5NPjgv0izAE=; b=HMxYHzyO8S1FMT+fDK2jC+3hux0lx+4Fq54QVVzHwrp93v4RMcCkOSoS+l4NWGqK0V ZDJIzxIv3XjAZC4lcO4OzzghaZTz517SWLvxkqM50t0y5pzkibqWWt98hVFGZmFjLH0b 5JMRsxSg3eWLjbsP7vZkIyWeTg5c2Tm+ZAlR4umfbZjPKpgNOVnZPP8GYy58LLnfk/Mk hzzLaCsp8wLhyHoBDzywtQSbk4zAv5JP2Hp7JQFkgCIBwFa0JQtMpKd9fJ1CFgDX6Pzv V8Uk9K5jVUOtskUoCNcZbsZi8yqb4DAirGNTOgIvpT8+Y9QXi27wIlTWmEGBYf8QdqKe RRgg== X-Gm-Message-State: AFq9FYLHptPCJkTjEb50F+99JtjypqRkY1HATHs4rysZ2b4kCjvfyy1V KJ9puhJutyn8rXi73Y2OViF6VbxPhoysZ9pT4XH9uoNHi96Fbv+l3qRyDrDysymNiydLsEHqwix k1En17hgNLquuoXTSNzc0vu5KRdfC89vkkHFJqSqobyrQu9Uo6nS7Xdqk6cCZIGgP+A== X-Gm-Gg: AYBFou0+QkcrXxjeE5wDXOdReUV6Ol/U8bi3/xZQVb1NMugvPjmTp8Z/RHmDINblT/A jmN2o5rIuLGgM9aFeV3O5Q+4fUOONLN4LRa6WqkcsHJaDQsMTucnm745X3TCsyMcxUy/VoyrfAO bdJ5iHQZOmwQHnApm+lSz18CTWI+fLVtMNDebKxFmi/kMlcx0psG2uMj9GeR7T40fY69G1h0aam +9/JRsydJ75exdbWfh2R0AtvvpGRNHRo9Vjlr3GWCMab+UvDgW26ajSkMwskf2bo5sGalnnTCpF n5I1igszlNO03vdceFumF6Mdqzp7lvQ90DF71TuJrLgp+CImQTBfpHMmrcNfXwthBLuvRwNQcNR JxOChQgXL4OE9JW1CxzmHu7a3yG4evQqPwMzC5rVi1fQSykPy0b1Gne1BmqO21hk= X-Received: by 2002:a17:90b:3810:b0:3ac:80dc:f40a with SMTP id 98e67ed59e1d1-3adce5ebc38mr132859a91.16.1792706270906; Thu, 22 Oct 2026 14:57:50 -0700 (PDT) X-Received: by 2002:a17:90b:3810:b0:3ac:80dc:f40a with SMTP id 98e67ed59e1d1-3adce5ebc38mr132847a91.16.1792706270413; Thu, 22 Oct 2026 14:57:50 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 02/27] dump/dump: do not dump machine if doing heterogeneous emulation Date: Thu, 22 Oct 2026 14:57:21 -0700 Message-ID: <20261022215747.2479440-3-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=V7LoQuni c=1 sm=1 tr=0 ts=6ada86df cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=3q1FPIo8JGfx5WVhvewA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX4+Rv02AJ9jvE dGGzX2eDHuf3DBJL2sXDZrgU9VlpYOOuEaBRu+DmtMJZKiMbzkFxJGf9mGVL1kLJedB1ulAZbR9 qPH0suPG82JdlPolE1I6xc/XXYQDtPc= X-Proofpoint-GUID: ayFSVX_Xd__CAvrLsVKRZJJ4Lry4fQDv X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX/2Rwx9rIj7E4 MfOnqLT3ZMDrn5ForUmA/W4O6MMnWGgFcl4G8wMUo9p/IzCquTooUb7+suIyeYoR3Dyz+pgLgyG /8rJK8t6zu1DFgNNJy3vZiNQ8S3muFvhWLf0JF7GtB2isSIvEL4ynCXJ/cxzHCqnVBYVZs83XuT 6c1nkMxNd6zaFsGE1ZLq1LP5HJKUKrSQpOw2v7on00W9acIuUBzzCfsQMMGvogNhLTyZP8Rh8xu pMZPM1WWeXZve6tPN+R69DE65DO0CE0q4xlwhDgxbzgRQyH/26F9LODi7sSc0+b+BMZvc0lzfe7 tAMr7yFkG8Ly9aOKl1vftQsgBBZgCyxZ/S5pqCnyRYs/lL2YWHmmiFZNsAcZ4OA1C+DYKYh2Dof AiErpt8E9vogjdoem+1aqB0y/eR8CyK2JMYhjVc7EfufB88DO0laJO/jRjnyxHDIGKjQ5/5CWG8 BPx9oY6LdEHk3d88Ruw== X-Proofpoint-ORIG-GUID: ayFSVX_Xd__CAvrLsVKRZJJ4Lry4fQDv X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706587068158500 This would need some refactoring to do it correctly over all targets involved. For now, simply prevent this from happening. We do the check at beginning of function, so no need to call cleanup routine. Reviewed-by: Marc-Andr=C3=A9 Lureau Suggested-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-3-pierrick.b= ouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- dump/dump.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dump/dump.c b/dump/dump.c index 52be7258a5d..0ecff682dd4 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -1795,6 +1795,12 @@ static void dump_init(DumpState *s, int fd, bool has= _format, int nr_cpus; int ret; =20 + if (target_heterogeneous()) { + error_setg(errp, + "dumping guest memory is not supported for heterogeneou= s emulation"); + return; + } + s->has_format =3D has_format; s->format =3D format; s->written_size =3D 0; --=20 2.47.3 From nobody Mon Nov 23 04:36:04 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=1792706585; cv=none; d=zohomail.com; s=zohoarc; b=R2MCIT30TrJDGVPWk9KFb7X1+0MFvRz86Hcveuz7iHaBB6mzHjOZ8UtOkg7Iz2iUmxo/bV8/chEHGySdxuSbo9l2+sFsBXmr4hKtvULMKVJlfYR+tj/txcSLwcUbn6tAYCc+aoxR8RzDafFyYndfpGfDBunCT0WNo+vgvBjgt3Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706585; h=Content-Type: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=U2g+1W7PW3UR9TOQfxvua2EkUNe+5fs16xF3q5cN4bI=; b=fmPXtr4VBMvxFRNWucT3TJYq7nN2hasw1Icg71CfqcybwTJm8C6oZgFktM8jCGjsWxwfeU5G996SzUaaHgSnOT6rwIYOtk3KOpgji5cKC9nZ+GatbAdm9Evmr9hpx2h/eDfzLGn8cinrBUs6WHnpyUmQRQBS84jwgOmxG4TDSQ8= 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 1792706585679408.2222108046641; Thu, 22 Oct 2026 15:03:05 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nO-0001kx-4B; Thu, 22 Oct 2026 17:57: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 1xK0nL-0001jt-Jx for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:55 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nJ-0000Fi-PX for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:55 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MIH99E1494700 for ; Thu, 22 Oct 2026 21:57:52 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 4hfqmr8q3g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:52 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3acc98e3b3cso213011a91.3 for ; Thu, 22 Oct 2026 14:57: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-3adca62e477sm648061a91.2.2026.10.22.14.57.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= U2g+1W7PW3UR9TOQfxvua2EkUNe+5fs16xF3q5cN4bI=; b=eYWWooFRAhANaz2m wZMEVlvdvucZppDnJUuYabi+T2fX3C/fy81erhw/C+bZlwMcmz/m9w3mqscq24lq S6xEVhQ1/huiAQfVp8Y0bmKfrOxz/8w/cukgRBXmoGWJBY0bAGt1vREkj2zlWYxF b1Cl4LGBfX7Xs5Nr/SwPEn59gwBvBD9D8vL/oXH6OOYx5Zb58I7S7Jsxx0vqm5kv +F60RVmG9Yf9fZ5U3mnHq+DCBZd57qXlh0C0FPuDor1FPaNQ9fnxbYRwArGD3ar/ DAMn6UoyWOIZIwSsBUWzF9X5qaBGGbEA+rd4TDs8ckf5O+SLD0rrIxrKFYgE0VUN 3xm2qQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706271; x=1793311071; darn=nongnu.org; h=content-transfer-encoding:content-type: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=U2g+1W7PW3UR9TOQfxvua2EkUNe+5fs16xF3q5cN4bI=; b=CEw1H4uoEeyK4PSs2rVphU2Zv8QUNc1FzODAAyyJtWdSnobo1N/Gb4JAp2LGhFtrqx PWbqldp4cYO9TOYbn7wjdWFkEhcqqdGEwOcPo9HyzdP+AAcVykrIYMBCogR8weEppwIq o+95lnGrJuOVM77kDEaV/5N2IpvFhyY474Vg27v09+PZjHIzi700ylQGrHBXNkUvnplI kOS04OpaFPNJmxugCvsK605ro33XSfjdGfhe2qXPfjTWmHyC8emKfzkKPVedTidI1gNI hIncBsbpdNFpsXCMxl0PVLS+CK+Cj4aWaSxlcgVZEa5eCGI3f3CUeitpi5EczgQON9T4 Ke9w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706271; x=1793311071; h=content-transfer-encoding:content-type: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=U2g+1W7PW3UR9TOQfxvua2EkUNe+5fs16xF3q5cN4bI=; b=UIR85pUf8a1Nsnpt6+R1/hMHSP9+4Ygss1LgClsLNfSeyl65JHXi5gRaj6kZ2yY9Xb +hwb+qVTbHYou+xUkevZvLue4lUiPg2z1vdvSzusgABK2VewbKlMx6Fq1CACLx+d1qtU MhxLiSZNey9/LI7JlB9azuPmyr2uYtU+ZyisLZSDKb/ZW1w9KadZ4vj110ySKZSg3+lL Egia8eggDuop8pT1V3LVWdOM4PXr06DU5eoLfRADYn30wUKJ/7X2mIUcs7qVEVSR8kbw RKHyXmYXeJjnuqbMFJliHat/GxrHy+yqsIfizKCn7SApznO0YnMBDwjiVTadcJkztf+U zjyg== X-Gm-Message-State: AFq9FYI4FlQJyzLs2Ldy+bRK/7yb5CAezOaf3aZ9O9DT0XMal2gP7VWs lfDEslcJb3cBEC3NALIp8+A5pmf2O/0ZhAiXFFUC7/irVZ9tEd5N83pJD33xVBFuadB4vCAeG59 8mo1rlwZmWH+UdoE2HtLw/akUSjSyZyQcdiJRg5qkaYlzG2kq4XDsyuTBseFqGj06kQ== X-Gm-Gg: AYBFou3ZC/XhnS4VjWJi4sumV8wuwx+kLmsX/uVqjXW45MnM6ls60QC6bHoPOs9CvBA Bc8zIXefjG4RJeDZZHBnAJfPQ7Y/TfW0c37qERq9gWAL6V0i2i+D3e5q33oRtiXS2F4t4JCvC4L HvWbfd9+Tk2/JtkBH8mgF6IU6cQNBJkP5MGMRXwAieNGUyvM+bBPrzkjgF3Z+e8+c37d5o4Ge/K dDv3edTAK8BlijljUkFmbZdC593GlltqDxd9CzmirDNLY9g/VO0Q6oVMucGUxr3vyCrlbq1pLHn qIxBnzRAdott8+efYElpHeayjy0nrkH8e9K3cHQcVRyxP/aWgxh3QyyxnlxUFaQk8FgTXFLiBdl 7Bh922QbHsCfMskTkE5vYyHg7Br1pvFsv0uwbayPxsktlIdiwrYRuhjIWxKUjniQ= X-Received: by 2002:a17:90b:4a0c:b0:3a4:fe48:d410 with SMTP id 98e67ed59e1d1-3adce629c32mr148354a91.30.1792706271522; Thu, 22 Oct 2026 14:57:51 -0700 (PDT) X-Received: by 2002:a17:90b:4a0c:b0:3a4:fe48:d410 with SMTP id 98e67ed59e1d1-3adce629c32mr148336a91.30.1792706271012; Thu, 22 Oct 2026 14:57:51 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 03/27] include/qemu/typedefs: add ArchDumpInfo Date: Thu, 22 Oct 2026 14:57:22 -0700 Message-ID: <20261022215747.2479440-4-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 2bZBhXI8yiKR_6yGsXxmdXaB707qMwpt X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX6RaYz2c4Ud9r BhWSv1ToVGdEr6Oz1vqQWmPf5YGb8qUDAIv4UrASc4dDB5a6xpNxFsPU3lL4fwdBvjicVS7aPiO uX96sYMzM2vMlXeXdU034IZv18WnOmw= X-Authority-Analysis: v=2.4 cv=VNZIDNPX c=1 sm=1 tr=0 ts=6ada86e0 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=WAb2S511oTjnKBTKeboA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX2ojQFnv7jJYP fmjWyc7bjwPs9qIvXP9H53Ik3Ia2GJOxU1opdP1JburuaZq3wHGCFbpbM5OKfBHjwgNk1aDS+TW VSl+A6px31Lp1M55CxrGXPUziMchqiAYI+bTYoYElVJKNWCYLyE/o/+wzgUrR7aUJyoqo7MmXfp 1dedUQz0am2S0VwE4VlA1CDnUD7Dzpdzu1NIKSI536b8enp+KxF1BSchRvFjkROrjBRn0nU7Wlo O0QgGpa6CVGOccc04MUb5NmwC794IdJqn/NVtF3Lfqn68BOWtK/K+IaJM8Pkrp+xR7XPwkwrIqT TC2GDqgb0Uo+eZfvk2XRilan+5QIht+8nVR14g+WafO+12KVk/grd6RA5cGz8e6jh4s+DrMnMZv 9l3tPqhuXeydnsy6uCjnMYp7ha8qAZi/RWtamibPGgQh3k9UcyHFNn6a4Ir9wJAwTIDepfGdIqI gKxsvAOLxmtDJrpS4YQ== X-Proofpoint-ORIG-GUID: 2bZBhXI8yiKR_6yGsXxmdXaB707qMwpt X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706587083158500 This allows to use a forward declaration instead of including system/dump-arch.h. Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Philippe Mathieu-Daud=C3=A9 Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-4-pierrick.b= ouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/qemu/typedefs.h | 1 + include/system/dump-arch.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 2344c92182e..8fa7f752dac 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -28,6 +28,7 @@ typedef struct AddressSpace AddressSpace; typedef struct AioContext AioContext; typedef struct Aml Aml; typedef struct ArchCPU ArchCPU; +typedef struct ArchDumpInfo ArchDumpInfo; typedef struct BdrvDirtyBitmap BdrvDirtyBitmap; typedef struct BdrvDirtyBitmapIter BdrvDirtyBitmapIter; typedef struct BlockBackend BlockBackend; diff --git a/include/system/dump-arch.h b/include/system/dump-arch.h index 743916e46ca..7165a5bbd03 100644 --- a/include/system/dump-arch.h +++ b/include/system/dump-arch.h @@ -14,7 +14,7 @@ #ifndef DUMP_ARCH_H #define DUMP_ARCH_H =20 -typedef struct ArchDumpInfo { +struct ArchDumpInfo { int d_machine; /* Architecture */ int d_endian; /* ELFDATA2LSB or ELFDATA2MSB */ int d_class; /* ELFCLASS32 or ELFCLASS64 */ @@ -25,7 +25,7 @@ typedef struct ArchDumpInfo { uint64_t (*arch_sections_write_hdr_fn)(DumpState *s, uint8_t *buff); int (*arch_sections_write_fn)(DumpState *s, uint8_t *buff); void (*arch_cleanup_fn)(DumpState *s); -} ArchDumpInfo; +}; =20 struct GuestPhysBlockList; /* memory_mapping.h */ int cpu_get_dump_info(ArchDumpInfo *info, --=20 2.47.3 From nobody Mon Nov 23 04:36:04 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=1792706311; cv=none; d=zohomail.com; s=zohoarc; b=Rwx48Kzq92DUeGlAHgev2Ge5BA2JHFp0El73Eq7oa8+GaR7JP03gR0lkNS9teqLtfbjjQYnP55NgweVMRwnrtz2AIjwI3FW8h0L57IhQeePScVg91fBcZRwEqN4v03N+Z7gIosJB/mcwH+Qrz3d7KOzlaWLhpy+BCk1UCIqabCk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706311; h=Content-Type: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=iEX1My4bxuw6/vX8ei26ACBJhdMBPGHwQDnF9vQDaVs=; b=ga/uA0An7buP8S9Je1AHTSt6OCP87Vb0nxAsz3Y/c/3sAdbfaY3I5zGhIjHfllcidolC4JiB0RYOjOHdigg2eYADr84CFeUNQt6XTCh1i1XsAXizBhdIafkOX6Tc9QqrUpn3958vlwHvkhMI3g1cZtKfQDDmHRxWdXtUk3uBYQU= 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 1792706311851889.7682218631586; Thu, 22 Oct 2026 14:58:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nR-0001mL-7l; Thu, 22 Oct 2026 17:58:01 -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 1xK0nM-0001kI-1o for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:56 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nK-0000Fs-7r for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:55 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MIH1m61509607 for ; Thu, 22 Oct 2026 21:57:53 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 4hfqmp8r40-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:52 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3abb4c24125so175700a91.3 for ; Thu, 22 Oct 2026 14:57: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-3adca62e477sm648061a91.2.2026.10.22.14.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= iEX1My4bxuw6/vX8ei26ACBJhdMBPGHwQDnF9vQDaVs=; b=amUutwLmyXrTWCYf w/eOOQijhcXfnq4BxG3uQVexjSobY/tHlraet1pJobRyAky9ZHxTufepK+/uBLPT a63FAPGBJUmvKhT4cCWj5dsCugYSMhaaMkOLl2dnpOkr6WkZWsNUKzNde5Hf/DLu 9JkB50PWw6kDDDx1e9d/feglwwGOWWuI7g8ObFelxxBZf7keNt0rVlXDRuDmpI1g aTWsknD02iNUjdOAvdZ6SKUQHvD/yz/b1hS5TF2r/oV50BCOV6Cgpt2HcuvIWYae /7T7SbxLmpn3w4VX8nbsxYX2DMhHoEtJRPxjbokqRQ5miuRqv4REEoroCBXNNoUf Db+gaQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706272; x=1793311072; darn=nongnu.org; h=content-transfer-encoding:content-type: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=iEX1My4bxuw6/vX8ei26ACBJhdMBPGHwQDnF9vQDaVs=; b=Ax2JHsTu2DGbkbmywkjt2MyvVhGJV4ZV18+nTvvAlgJToI1LzdttIau24mOlqGVp9C om6+q8rQzN7Ma00e25vpO+3lVJ5T+Bwa5tDih5v3M7EsaXpNcRnVGZwKHHmAfkXkaS3G /VXumDL+56gwKiSMRXTQbFslS+j7oZw5t8FqgFHTENH+HUH7xeEoYwUdZSuipYNTl/mq SOgg/hxyiqJbIpOSjdlI8yUVOOGcLE7K50Gr+V6E7avezfWcyHjadSer7wgZcHUFvN54 l7PE1jnLGYXKL60coyvHAWwiusrjga3oWborMDaX9WsKxwvojQyO/7Ci7qy4npjhBD86 fvHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706272; x=1793311072; h=content-transfer-encoding:content-type: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=iEX1My4bxuw6/vX8ei26ACBJhdMBPGHwQDnF9vQDaVs=; b=QJnSbK1wXTTRpJhlQjZnV1bw+cazz9zHuj3Nk6Q8ILXIS5uxwaNT0R6LE9laiZAXgi mAoYEhp2bxH+5XfqdshzCC7J67NIoiJGKEbEIlgKA8bg67zo9xEGBqtheFQ6lnu0c3Gt wLZXpMa+Bsm7dRTshDWoXULBeG//lqkcrlphnq0ui0a1IxvpOLkQsNfRgzuK6RNSleYw D3pDS8pQ/GQCQKywD5la6TBSR3/nZnMQMNGjuB29mnOrjMuEQT8VTGgwj+p6qTpH6z+q YYcmvq59y8l55pJCOdaRXx94iudxDb6Fs7AVYlyiSeJPqHPEuTGT0GPn7su5JIUxfmm5 o/Og== X-Gm-Message-State: AFq9FYJhECFnO6OkD0p26KzjGrLoQcU6mygFtnzcBHsdiI8wR/GIyG6E iZLg5oSphjS7s3L5QmOfIyWSdF8Rgqaq07/jyI/zwldkF6/hQQV5YX/tjUVVueaIZQufUfvNDFm 0vryvzSPX4BUhwxK79YkFqAQ4zFX5/eQ32u5CcX9NMyL416jFx4deIuWqlr9DSEMfFA== X-Gm-Gg: AYBFou0kccnKyTpl4lBi8xc7XXmfKFuuEFohspv9o6Ds9Ob49B15bWTnwj1FEhD69s5 /O40QfRVtW+XqUvg0FemG3hjBdeacNewfPVtCBE7z/AvLimQdbnv/+O/NlOmB9/G4nZnFc9CrEB 3IU/dSX8YFLVgf+zm3USPmIGAH//bvN3XOAKInJZRRbXxI0Veu1FAmTNbD+5ridaAaYzcoCwNnE 7LDo0MXS9J3AEWMrn43ZEM2gFv1aEWagZjMW4cwrFcQZa4gbNwso14mmJ6c5fXd4e9yqsMmwOml zPc2UzQ92hxM+7ljZ/zC+Eaazymmy+fBL7GE/B5wLz8pud/7/c2xRdY4GmRo+1R4O0FmsXDRDqK 0qqYM2xVwx712EmyqtxTCVsdsv2ls/Y6zXMYnlmsksjAvhKLBCEwhsGq88Ru53YU= X-Received: by 2002:a17:90b:1e46:b0:39d:f08e:e6e7 with SMTP id 98e67ed59e1d1-3adce0ccf4amr158230a91.9.1792706272153; Thu, 22 Oct 2026 14:57:52 -0700 (PDT) X-Received: by 2002:a17:90b:1e46:b0:39d:f08e:e6e7 with SMTP id 98e67ed59e1d1-3adce0ccf4amr158220a91.9.1792706271623; Thu, 22 Oct 2026 14:57:51 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 04/27] include/qemu/typedefs: add GuestPhysBlockList Date: Thu, 22 Oct 2026 14:57:23 -0700 Message-ID: <20261022215747.2479440-5-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXzvD/QLpJCMTy R+IgOtLLRyrTYVBPoivZwV1TaULq/C+ZMeeBPdPWNy53j1RxAowgNzrTd+tw+Jv/4oUWExUxy+g psWODRsHLe1AAqeXANPO/HatF4gSOuw= X-Proofpoint-GUID: 0aqu3M4YlJc30hen7yVGGpPbr6Ea1xDz X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX1uhRFqW67F0R MmGjS772e8Ko/t+sn8QfmNTfEzJNZTERaplynAcTLMy8Gyp9TJFGV49xCoF8Cz5xSmT8DsmtcM/ O+oUXA1vTZCC/6jf0w+JQ1y0wcC9/swWurXsQS/WuBe5JNqQjpSNNWGtIEDw+eWHyqx66HxqTK0 rnkPArOB97ivR7P1G1G1JF5bYvrs94nYTniTKRjItgojlx0knS4hCGBQJNVqdjguukefqiM/Rv0 gdVjXK6AZS8F7gxiOaaF3eEjqIZpUhTtw3WyTfKFZhMPrsXkVrSJ2VwKNLaqh96UTZG0ArGIbmE 5Q45KgbNEO9vLezF4fCLdCW9Nw5uL5x3M1WHfc4uy4zChFzvAMte27TYrQGeywllM4+jFp9JaMs L/sBOY4OcpLge3sYchJlunE+b1p6YxF4r42t7I7BEvhJ0KxMBU8OoNhGTgQ28verUXxjcSTlTca e1lJAG12I3CBjuQWR/w== X-Proofpoint-ORIG-GUID: 0aqu3M4YlJc30hen7yVGGpPbr6Ea1xDz X-Authority-Analysis: v=2.4 cv=BdBNQbt2 c=1 sm=1 tr=0 ts=6ada86e0 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=De2SjmbKK7625g2b_egA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 priorityscore=1501 malwarescore=0 phishscore=0 impostorscore=0 lowpriorityscore=0 suspectscore=0 adultscore=0 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706314101158500 This allows to use a forward declaration instead of including system/memory_mapping.h. Reviewed-by: Marc-Andr=C3=A9 Lureau Reviewed-by: Philippe Mathieu-Daud=C3=A9 Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-5-pierrick.b= ouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/qemu/typedefs.h | 1 + include/system/memory_mapping.h | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/qemu/typedefs.h b/include/qemu/typedefs.h index 8fa7f752dac..488d2556670 100644 --- a/include/qemu/typedefs.h +++ b/include/qemu/typedefs.h @@ -53,6 +53,7 @@ typedef struct Error Error; typedef struct EventNotifier EventNotifier; typedef struct FlatView FlatView; typedef struct FWCfgState FWCfgState; +typedef struct GuestPhysBlockList GuestPhysBlockList; typedef struct HostMemoryBackend HostMemoryBackend; typedef struct I2CBus I2CBus; typedef struct I2SCodec I2SCodec; diff --git a/include/system/memory_mapping.h b/include/system/memory_mappin= g.h index 4c770bf0b83..3bdf9badb5c 100644 --- a/include/system/memory_mapping.h +++ b/include/system/memory_mapping.h @@ -36,10 +36,10 @@ typedef struct GuestPhysBlock { } GuestPhysBlock; =20 /* point-in-time snapshot of guest-visible physical mappings */ -typedef struct GuestPhysBlockList { +struct GuestPhysBlockList { unsigned num; QTAILQ_HEAD(, GuestPhysBlock) head; -} GuestPhysBlockList; +}; =20 /* The physical and virtual address in the memory mapping are contiguous. = */ typedef struct MemoryMapping { --=20 2.47.3 From nobody Mon Nov 23 04:36:04 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=1792706547; cv=none; d=zohomail.com; s=zohoarc; b=GmxKZ0xggTIO0Zv2MfDlfiBDn9Lc56Nc2LkozgiNlnxNAtIRbYqBxLd12eZkzJHimLh/vAfK3TqsgIoi+D93l7A/F1pWLaK9bRSOuKNGotpXtWvpulNEnS1mulmjqvCDxn850MWnqq4k1OIBvng4lK+Bku2EgxZ2fhsEfNamMU4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706547; h=Content-Type: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=e89DOf+hia05bBat6/q1SmjgvPtQMkrFV02e53Pnd4g=; b=fqqe63vrccttfSEriV4gwjnYTcoNLZM7UHq+CGq9DSAYG+RWrHd51mjy0ruFC/sOrjUZST1qqQx2mdc8lfYi6WgEUcT9ArRqa7O6levrivdzyHEU78YbuiWesfz+u/cI6po9BRcGnyMi4BJIFnMyDxMA7TQmtZWTjOiWxMD7u5k= 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 1792706547090201.52112496947746; Thu, 22 Oct 2026 15:02:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nO-0001lJ-L5; Thu, 22 Oct 2026 17:57: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 1xK0nN-0001kV-BO for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:57 -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 1xK0nL-0000GP-K5 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:56 -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 69MHtVLC387736 for ; Thu, 22 Oct 2026 21:57:54 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 4hfewq4rce-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:54 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab2395f104so249208a91.2 for ; Thu, 22 Oct 2026 14:57: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-3adca62e477sm648061a91.2.2026.10.22.14.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= e89DOf+hia05bBat6/q1SmjgvPtQMkrFV02e53Pnd4g=; b=LOpPGdrmHSc+eteP Km2EluwGff5qI4lhTGeVXAWUSP4aDbVYv7ms+4QUoXfQ+uTLediSZ2Bk79OoQemI dkgRou0dFK3hkg0ew0R/aMhi0xUdirOYcklCE/cA4AcrlNyCQepSNRc0N87UQhmo lsYjtqQQlxrK/CIhDXutJVm7fOig44ZqgbIBe4XWjbTJ4kI8I7580IHY68XQDbUY 5ANYI5zsJAcNS2+9ywGPfJDT9ZtRBwyTPZEgpyopodTwES4VeYUl1vG6QsGCkoka OnnbuybMgw6/ncMNgsI5ANTJ7qz9xp4y5w16EDKtIXiauwlrWPR8wz5d1vg0WGgq pX950Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706274; x=1793311074; darn=nongnu.org; h=content-transfer-encoding:content-type: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=e89DOf+hia05bBat6/q1SmjgvPtQMkrFV02e53Pnd4g=; b=W/Gk5VHHFkujpwwb7gX/LVW2Z3dDP233b/beIBPxGRX21rKHRcxnNZZ53Onbu3RyyG pbhWGwhQ3Yt7+uKlRhb73L+YWCrG/H+5PzJxHkm/E9uhWUPBLN4Fm0e0Lbmcec5NpvJr 5ZwXySfRJwSU4D+Jun4/PLWv+VocvwVHgqT6skiLB09xTn+RCfZ5ma0iGurj6TKL8Gr7 8mpPXf4VIj0IR6ekf8ZXoMMKn59oHZMXd0Q1TX5GYCrcUMAjtRRd0FXOCFU8AjYE8ptC EFidhyVvuF1E7TrwMNoqepphe8jEsk7JxZn6B0QYZayrF5yRaDeb/C2406w4nauklKxY 913g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706274; x=1793311074; h=content-transfer-encoding:content-type: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=e89DOf+hia05bBat6/q1SmjgvPtQMkrFV02e53Pnd4g=; b=ZIhDsqXhMQVT2HC+MqIz75JVyRj2IFQn9EfJAzkMy0cmLIXTrKRHPApJvehR/uwYkF KeUXEZgiOCu/jCrSpYErzfNc+w4SWQAjDCuLWMXPKN/5F0y13cbZlzwG4KRJw9+doMa1 9Vupp4ZncyMEu3B65QFH6LnIunlp7oVqtk61ojuST0sWvIPw1G5DMm+ahEJfSBU3YiBu EM6uhdPAdIPPxbSJ9p0PuMmJTUxokPVfcf5AI5GWKVzY0cCaccFnfF52NAnWFsHtRRfs 2vawjEQVaj7czoJm1JEJomI95ezg6XtUoYq0PiMip82CrZ4tq9tf8PtMDEnKRvmLc37i TfiA== X-Gm-Message-State: AFq9FYJVYIBCPCEpENXLn4y1d/DSxSX52vEMDp2l1XFUZq7oSCKjFLW0 Okm7xLdlUhKIWN+l10JgN5elM9tEUejKeGrYmWnC7Zl+xu7nMXycW3ucQ7/1/MU8H3trYSbH/c8 keo9mMOb0epIUpR+/kFLR+WelK6Cu9SlAYgrDnSrXMlpSbCtWpUVIlUVzuVIeX46F+Q== X-Gm-Gg: AYBFou1W+zZMUpVix5P5hsgeYh3hz6RW4LOR7TFuBYfHW6/KLjVrokJAR9Ua/iONaU5 HiuZ4//4gpt/FXV1+Tj67vgQZrsDIrr+MVr3GHNBHjBvNdX3J2+ujeGKcvLckAc/zGzUQTDpp+Q KPC9e04uSWPlITjL0ChON+P4Kal0fi/nifbk57LuwYPy3X8b0nB1/DyCD0L5MRQ8/vRzm3JiDv7 LTGaBjW0jTi1E/A4UMIYvmL/xvxC9qK4cqSoFmP4gNdSXLwldyK67rU1q08VzS79qCmHmyt4xsE 7EHFZbOMDJ1S/dV5AimKRL5iE1hxwIHjwkmSkoTC2GxF4SfBnpWzvNXU9jH6ZGV/J6tiQzf4h9l 685tCMcYi1F04e3SWFA61yymq+C0QPer+2lpKLtKkV9l2YgHwMhMGNr3NfJ5J6o0= X-Received: by 2002:a17:90b:52:b0:3a8:5fd6:cb6 with SMTP id 98e67ed59e1d1-3adcd7fd65dmr213919a91.0.1792706273292; Thu, 22 Oct 2026 14:57:53 -0700 (PDT) X-Received: by 2002:a17:90b:52:b0:3a8:5fd6:cb6 with SMTP id 98e67ed59e1d1-3adcd7fd65dmr213911a91.0.1792706272838; Thu, 22 Oct 2026 14:57:52 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 05/27] hw/core/sysemu-cpu-ops: add get_dump_info Date: Thu, 22 Oct 2026 14:57:24 -0700 Message-ID: <20261022215747.2479440-6-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: fIW58ayGyxM1dRwRvmPTYcqtRV_T6tKL X-Proofpoint-ORIG-GUID: fIW58ayGyxM1dRwRvmPTYcqtRV_T6tKL X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX918mDvk5JSlI qfWzvgC4zJSJRy9pd42Ce8qeKMpVInic+Dt8sFMXwJb/8RdsczDREMQjqEip+FTwZlQoRSpf+Ot 1g4ga1YTHMUvsCsaT8IcrQ8Yq8KSSw8= X-Authority-Analysis: v=2.4 cv=G4OJgNk5 c=1 sm=1 tr=0 ts=6ada86e2 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=7Qd54_oI6N-egMT3aNcA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXy8i0kNm9WrxZ icjfwGpBhoyUCYf8EYUiWkvTdzhdq1T++nkYM+T0nflHYI9J5NK3zfiU/qUWjDikUAW7cJDORKq 7Zcs5hBCH7rRf/B+U8+J1b/MozG+Iam1/XuSNmw1uRetxynLiCeHJ5wR/0piBPUd2zraYgrCr02 Sy/fbSQjejrLCek4AyJ6wP6IGFf4bYzG0BTG4N/VEMcxIPCawowx/QDczIrn2hWjqDkaucm3XzQ ckBavtubHM329E8r4Q8ZiF2Biq9tjIwdCL215Fw03NFxLHwjI3gjBJycCrLnOCJ+d+I9MqfIaGN 7T0+YQOry+YbUBJ38DydbY2KrRljIWvyflEPMgl5FTEXMER1ScqrKA5Y+fwIDXBxpoHFKMqYuJ4 0vvoEeSG9nx3EW58yz3Rc4CHiRrQdmwbwZOnrNy6yKtVxXgqLCF5PQeUWaha6o9cCIIyBDQE9uP B6BhdFvPZKcf7TUYA7g== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706548299158500 This allows a specific cpu to declare its implementation of get_dump_info, needed by dump. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-6-pierrick.b= ouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/hw/core/sysemu-cpu-ops.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-= ops.h index d125540262d..1d4a04ff361 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -94,6 +94,11 @@ 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. + */ + void (*get_dump_info)(const CPUState *cpu, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks); /** * @internal_is_big_endian: Callback to return %true if a CPU which su= pports * runtime configurable endianness is currently big-endian. --=20 2.47.3 From nobody Mon Nov 23 04:36:04 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=1792706288; cv=none; d=zohomail.com; s=zohoarc; b=Vn3Z3+OxnnxXYp1FXnaVLRSM/oXAlMqKl/hbPGIVuNIPyEyBDzwv6rxcn8thG3BB+M9c/xfqbiW7M6LYLSBXjNSVi84/59WjUEPzpoL7iQune9KCtnCf9VKXwWmfjSzwgi2+TQZ6998agsP7r6jImcxlAhThyfKPFSNGZTR83NM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706288; h=Content-Type: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=exw2wlWJfJEmYwWmwWpQZPNkyeMNbNfALRRpmmSogRs=; b=RTpmBX47Gd30jKou2g7F6AEbgWpAsKbxT7AptvkbIzLS3/gyG6JtYghSY3QNrvW/luYJI+n/bjY+HpWB9c3pXh8MKqhrjtR/1dlmT7EB9tlRGk93ojlH4O7K3QWzgX8UVIT3p9IhcW/4skqzVDBrv2FInz0TAazGoXLQ1oGSDL4= 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 1792706288785614.3453853476813; Thu, 22 Oct 2026 14:58:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nQ-0001lz-25; Thu, 22 Oct 2026 17:58:00 -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 1xK0nN-0001ku-W1 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:58 -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 1xK0nM-0000Gb-0P for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:57 -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 69MHtSxw387583 for ; Thu, 22 Oct 2026 21:57:55 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 4hfewq4rcf-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:55 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cd0cf3b1c70so136200a12.3 for ; Thu, 22 Oct 2026 14:57: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-3adca62e477sm648061a91.2.2026.10.22.14.57.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= exw2wlWJfJEmYwWmwWpQZPNkyeMNbNfALRRpmmSogRs=; b=gCjQZn3qFrgxQGp9 1jvmdWMOyRtxLMEAf6h0z2YXtoKUbuxSXDu7CFmqVpkH5oD8XaBKHDIYTDpzuiL4 KnPwSFgUrPAjcTx892SfkRyqqMByr7k9e5jzvmrtjCw8tY5nFCgsnPEdcm0iJEDp d52YjcJUBILWX1u5E0rHKNrtFf+BLWWL0gdLDsYGSeaMTD72+VuQ7lCZmB2B1R9Z U3klPUZDB7to0jbqqZPNmpNqVXF/VjIAwsPaWTnYJr1swP7lyeO1jUqSzXwFjCE/ UfDV1yK3jnybuH5CIRWhmHJSBW09tMC7tcp0fr+Uy88teRR+18SCt4XgmeNFGAfO JpTE+A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706274; x=1793311074; darn=nongnu.org; h=content-transfer-encoding:content-type: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=exw2wlWJfJEmYwWmwWpQZPNkyeMNbNfALRRpmmSogRs=; b=E3egQfI9tlOKTxg2comoB6qF3pyomuZChr5m4EM4At0EYT+K5QPuUYH2Jw02M7gZUC ooZAJGlPXblcfBdcSelmmZXmhWR/p0YDgJatDsYfJlqvEo2qbQNBd3eXrcQkr2gjuXTk oXthxIKtz4dNLhkJ+L2FbGRvpzWtojrKaXSOZ7iMHVK+Nlwgjdtfv1jrv5uw/cDVVGy1 vI20KSpNfXj2I/8E5ZRPUK3yaYLBe4stUh19Jl56szP6dTQqSaGzAiwb9m+lDmeHqgnK nH7Kz0B/JEbUq2vqtpyIlPG0yv/01J++hShxQxP6icKgLjPlT8ImWsAFHDUShsV9pv93 8oFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706274; x=1793311074; h=content-transfer-encoding:content-type: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=exw2wlWJfJEmYwWmwWpQZPNkyeMNbNfALRRpmmSogRs=; b=2BPAdpRV56o+lI/bMO0WEOVJRclYkd5IWXpzuGIo7pXCyoCUldqlqBSXYVCi8XBybo jBgZv2GkHAYCIkxUZwvKvS87PbZcg5bNWbKS6uq6GafZzIy5xiqMsXQqGAG6lAP4G0CX 6pj7xONXuPma8foouQgH4TTW1SeNPZnqiRvCIUXnFR4uSZIz6k7Sb7wHcm16Q5aotHVl LZmWvceOxlhINb3s1LsdapVP1MH5DsAEk3guct7RVu3mYVwSJ7XlxWxoJQ9FnqZSc2GA 10sKxuUFbuxTQEdi5sFgAsHNEhySS8EDj3EmM3auGzarLcBJI31argr/3mP9wyUmAbMx bjCw== X-Gm-Message-State: AFq9FYKUbomvv0u7xdpGsIFHvQbBUcjLjW9Ghz6NRDW7gUNvBCI7c/Cr efpwkbmjdqRgB5WUJKRv35wQbKq+yfcocKBmBhDktg5uxaoSP3s7j9dfWbfIsU04UIb9uy3IPYU EEaEvgcjNJZQrP3T3tBygnN7S29t/ytfPSPwcCLgw+hG/Y3vuB/FSS8jzAYypspnYwQ== X-Gm-Gg: AYBFou1re2jYWb0XK7i2cYuCeiHgWH+fz5045f5U4a8uKYQZXSsYkrg6T/bV7A70hDq rufrox/cVOgs2XKbc+RQ/8WKc5vK0k9yayV26YEqTqxNbzghUR43dk0pdT0MKlcMAYiFtk1cnQD oJTP0odgPc0UDTebQyDsXq6j7q/FI35r9PXf3Vb1mJawNJLIF+ex3i0A7AVcfA79jpt80+N7kN7 6n5NbgcKeSLQlR/T7T739r3OVSVaIRsog8AKkvrlrJmaY80Uzh1c9cVCX6PFOXi8O6fYBVVcPYP ekzkUUJh07fcG/P/vEGgysqQxFqqhlJoPvHuGJ7uZbZtkxrl0p062rViy9vIpIPXIqElpKLnZ2A pqJ4t7mnFn2FK/+XdA8HX7ts10hSBdqKkA9dgEBzAiJCQwn2RMOF8QMrsAq/SG4g= X-Received: by 2002:a17:90b:384a:b0:3a7:b260:9ced with SMTP id 98e67ed59e1d1-3adce0df80cmr214914a91.58.1792706274022; Thu, 22 Oct 2026 14:57:54 -0700 (PDT) X-Received: by 2002:a17:90b:384a:b0:3a7:b260:9ced with SMTP id 98e67ed59e1d1-3adce0df80cmr214909a91.58.1792706273547; Thu, 22 Oct 2026 14:57:53 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 06/27] target/arm: implement get_dump_info sysemu op Date: Thu, 22 Oct 2026 14:57:25 -0700 Message-ID: <20261022215747.2479440-7-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: ywqwQURRLRn625pOwQrdI8CrkheKymPa X-Proofpoint-ORIG-GUID: ywqwQURRLRn625pOwQrdI8CrkheKymPa X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX1Sn6XKqGIBT+ EdzykYSufjdfKYMgSUIWPcOX8xI02ainupI56+YFHzabuoDtKrhReAO2wgcs+WRdgaFyBWb6dxx SjuKExBpUH/admHdTmHRyS6tlyC0KGg= X-Authority-Analysis: v=2.4 cv=G4OJgNk5 c=1 sm=1 tr=0 ts=6ada86e3 cx=c_pps a=Oh5Dbbf/trHjhBongsHeRQ==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=yPRlV_JfklmHwqd3OFsA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX+MbmsZrm8JG4 xdDy41j1sHXuIypbB3oTJaJBOVPn2xcTm+VmmehO1tMjY3lGD/aEZlccxexuV04C2QIAgNyfnN0 j2toyWjB59TXumSa44r3jbyAy9+wvQx0V3a/Lgem/PFyDZonZnFxy5W+oYZ63E/CHspycgKa/xs uffQyTK/xXC5rPk780su8leBGTPWXMYOUMI+hT6AVkDsBLt12fOPO/94Iw6uFfKSTS31msKEpnh dthYkTjc6O9pSQubewtuU4pkigOaF9GZe3v2fqIdDJ42RaafyZ3xFtMDkKV3l1Ynr35RZbL3agH w6VBNdTpIIj5Tg2oTrv8bM8jvTr/4hhqBBtb5/pHaLPOaf12M/mGtWeLdowU9c72vcdoFk3O2y0 D3MdQTVy9HLYr7xHvK4BCsu/vYomE8e/uinUqC4IhDDftsFo1uA2EbCVL+sHMZOi/iQE4a+SbEi 6oIMGxekkuWZdHaIKdg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706289798158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-7-pierrick.b= ouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- target/arm/arch_dump.c | 24 +++++++++++++----------- target/arm/cpu.c | 1 + target/arm/internals.h | 2 ++ 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 1dd79849c13..3ce6ba1d68d 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, - const GuestPhysBlockList *guest_phys_blocks) +void 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 @@ -435,7 +428,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, */ info->d_endian =3D (env->cp15.sctlr_el[1] & SCTLR_EE) !=3D 0 ? ELFDATA2MSB : ELFDATA2LSB; +} =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + arm_get_dump_info(first_cpu, info, guest_phys_blocks); return 0; } =20 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..8c1c6e7c44e 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -438,6 +438,8 @@ int arm_cpu_mmu_index(CPUState *cs, bool ifetch); #endif /* CONFIG_TCG */ =20 extern const struct SemihostingCPUOps arm_semihosting_ops; +void arm_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks); =20 typedef enum ARMFPRounding { FPROUNDING_TIEEVEN, --=20 2.47.3 From nobody Mon Nov 23 04:36:04 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=1792706336; cv=none; d=zohomail.com; s=zohoarc; b=gebMvVx6htGS+pnW/mc/DcHonL8Z9E4IFMD4ieS3Kvq/m3bw89RAsYPLI5SK5Z6S5HsL398Dz3E725a//2od5brKAV27RaB+oPXpdDc5rsGX9i4L1dcYFlEcuXSHs2fWd+bHWMV92ocRQPUajuMH2N/hl+zKUJo/aZp08ALqCPU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706336; h=Content-Type: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=jLMOrNYPQSF49sQNsRBHe+BAzwP9vHmvUbmzXhvfuXc=; b=G8OUBiUoTS6b96lBLGToTf8RvK/tWyqbEEgiShZK0AO993rf5AftYRoYKU4WOaFowiwHUNGCB1y28cJ865Nr9FR2ZmvHEaCo7H5yp5URRbzgbi/0Di6jgTz0g4BL5BCjYiNsTilMLSOlyLCat870o6/lyePzVhboXxMtEORUFRw= 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 1792706336099470.4851204558564; Thu, 22 Oct 2026 14:58:56 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nR-0001mV-MX; Thu, 22 Oct 2026 17:58:01 -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 1xK0nO-0001lO-Uy for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:58 -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 1xK0nN-0000Gz-4W for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:57:58 -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 69MKDenm1230415 for ; Thu, 22 Oct 2026 21:57:56 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 4hfqmj8rbn-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:55 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3acc98e3b3cso213024a91.3 for ; Thu, 22 Oct 2026 14:57: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-3adca62e477sm648061a91.2.2026.10.22.14.57.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= jLMOrNYPQSF49sQNsRBHe+BAzwP9vHmvUbmzXhvfuXc=; b=AITw8uVqTPwVCZLO Me9+OoLBbKZyj8SupM+egujAAMIslYynuI1iaMW4Iz26JrhMP5ut4/ArT7QaRXqU GqIGXLQHvt3JkrZFyBiR4FHaSTegCHW5UpfIp/APobkrITNn+7K0apZOmz1nJhpW Il+Mz+bLTsVA1XHqYg8BWbF+sGZ+hqgf1AM7FoX/SRgFxdokqYCFnh0nynbMrMJW qEP4TJLPZHNNGcXViJZhv5mVa9suAsuP3bfAqnhJOH2XS9YqzXofTsC9zgIxnraa TmNbFy6/ysf9XLBllkYiZ1WxgDbgMG4L9dTPXnQKltMoNImU9zgNm8lrn3w9PDh7 YykpXg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706275; x=1793311075; darn=nongnu.org; h=content-transfer-encoding:content-type: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=jLMOrNYPQSF49sQNsRBHe+BAzwP9vHmvUbmzXhvfuXc=; b=Ibd0xtgyuGpnkQB7aQmpy5wcuXW/x92wLUCGpe/l1+9ssobvOHmmQJ5ko2qcij6EfJ XjSTtSvgm4vVvwcyWSrkrsP0rITNYy/TFpFhW9thtVR1oWEioBwSjArAM36B23DSN/Or lLj+l4tXORzjhGSAO52fE2FbljsfzrwjTRMVLLcelx1ZhIAeSN02BzIs+1ryUy1DxXFb n3FczXiaXFBYUr3oFCkmaJ/0nfXIBvdyfMPF5LiaLEve61OO3ChFK0GOjS82bz+AtkN9 aw43x92jG+NZ2LSawi0tzAfCCuuG2j6t7wBLnOgiLPW6p0PO1090OxVU2TIqr3AO7wSX 11cQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706275; x=1793311075; h=content-transfer-encoding:content-type: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=jLMOrNYPQSF49sQNsRBHe+BAzwP9vHmvUbmzXhvfuXc=; b=UwtilzLI24K7o7dVGr2QqH13ANk+EEl01JP029sDB+1QWAgznmCNv/ToJu0i3iWweG RxPTuhPcsflw/nAPPk5tpdVv+9Zc6QwfDzfSllfqHO37mXcPNWKfSZoMkaTZiiDyyDxv oVbjJZhyGZ9XUR8IJPjyURc86IFWpUBM0WozrOejAyteS9OKB9Ea7RKyzOXA/xkl8Fui XG2IXQQ+muGMAHqldob+uYHHPNuAurjvHz1pf9L+oWQcZDd2h8OAXa9e45BtJI5U1r6Q E/FHAUY4MZ4LZG3UeLPzPcuP1apz+P6W+0z2ePGn4FnFo0r++rhPbgo9ox1jdLEBurXb u4Hw== X-Gm-Message-State: AFq9FYK48yx79lP9cAiH8DhLHUFPH/5lHSD5AlIgVvopOuhyIJehwrQG e7yu1Jnk0Y/9ZmEVWbQiRdzc+6lYtQ7I/IlfLPDPLW9m1rGNCHNwZjPRz173ZjSXOay0RYlVFWW nRqdW56MkLapCJPbR2IGaI8SAvJaoV7DkXxtUKvTdHwJQiq2XFRB7eutARTS4moLrvw== X-Gm-Gg: AYBFou1cOHTch5/q9j/CZG0mwRYOGWNcr8lwG+q/y5tvCkJticWUO6y5GYxoB5DO9gD Ho817zDSf6zBwUuBwzwEvj00iC3GiRzvuDLNGEsAkaOkdGG2UJZpaNHzqW+Wjv11+K48zUxhFgs 0UPjdeG5qaHI+8rM3WJdOCs/Ujf4fJwdQPYyFYzadKaxu6AeAnvdMczB6OeuVwjkDcAXuqD3oqc /p5zVTBtZkrfugr6QVZp2TldPKRhKb/PVQ2V1BCxHdN3jHwBD36YD0RilDvR+2MjiM52mYuzhn6 Ly+hSi0jVASB7TrgM7+tQdHJGvaAFL26V47MT8gN9ag9AnEemZfX/gtN9Qg3BVypTbX64nHw8vG XQ/immDQwXs4iiYz23rPQmL7yXex2Rkd3WNwlD1V3+uOI1Jg/KzzN/5ZpXL+zDCE= X-Received: by 2002:a17:90b:3846:b0:3ac:9ed8:f310 with SMTP id 98e67ed59e1d1-3adce7ab90bmr138229a91.49.1792706274622; Thu, 22 Oct 2026 14:57:54 -0700 (PDT) X-Received: by 2002:a17:90b:3846:b0:3ac:9ed8:f310 with SMTP id 98e67ed59e1d1-3adce7ab90bmr138218a91.49.1792706274164; Thu, 22 Oct 2026 14:57:54 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 07/27] target/i386: implement get_dump_info sysemu op Date: Thu, 22 Oct 2026 14:57:26 -0700 Message-ID: <20261022215747.2479440-8-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 6wTAi5LCiNtAsImZ6wG0IQPzHBGhZb7F X-Authority-Analysis: v=2.4 cv=cPR1IVeN c=1 sm=1 tr=0 ts=6ada86e3 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=KBKSk-pTE1mK2UdVZucA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX6oKwcqpJxYtI Dbr2GYx7DM2WYtBXSRGjFYfeL8Roh0nrjm5rXH768k3CcO+6lnaZuAYAVRmeB1gDOqIwOMYwuBa D7UstFi/yL7NMiyTJxGuR4iefUX3a5s= X-Proofpoint-ORIG-GUID: 6wTAi5LCiNtAsImZ6wG0IQPzHBGhZb7F X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX4f8ZdahhLq03 G3KdjogQicsl6hRcGyr7rpn5dilw1oPfmEsqESIlEoSHQDv/NY2OKhqzhytt0V1x28I+V1UQwAC pzDjVvpMJrGBpIPvOQh0kGwOZD1hIfZ5e+ahizEn2cp5HSjsUa0cL2wKlgXgjaWx1HsfYpW5mLN g+cUEsOh3ZUPVmH4UlZcXFCHiyoYMLio94SgUpH6I1TUXsTkfhm0SghwGDaKvrqM8vSu2PLkLj+ WqBLAh+FLA9609zxERe6LRFQBcK4VEBi+qddHCSIqhIR21WgbYZ9varY/EX/AL9oMswJFLZfbKd voL+epMJjH+IIkkAO19P9FLlal0AD92uXP3vY0h8Gpio7ca33e5YOZh7oEbRqvqSlrdhc24DeSy A4dMn1TPmd5xJw27py0X+fcF2kQb341HoNGu8FwT7jLVp97h3ADb+3Je+nv5L2P2cq5R+Lhz0KC MfjvbQwrDr1Te2wi7Jg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706336487158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-8-pierrick.b= ouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- target/i386/arch_dump.c | 18 ++++++++++++++---- target/i386/cpu-internal.h | 3 +++ target/i386/cpu.c | 1 + 3 files changed, 18 insertions(+), 4 deletions(-) diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index 16e47c4747d..ed273708c60 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, - const GuestPhysBlockList *guest_phys_blocks) +void 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) { @@ -425,7 +426,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, } } } +} =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + x86_get_dump_info(first_cpu, info, guest_phys_blocks); return 0; } =20 diff --git a/target/i386/cpu-internal.h b/target/i386/cpu-internal.h index 37c61a1bc3d..75bbd00bc7a 100644 --- a/target/i386/cpu-internal.h +++ b/target/i386/cpu-internal.h @@ -65,6 +65,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); + +void x86_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const 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 5da80ade70e..49f453bb011 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -10920,6 +10920,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.47.3 From nobody Mon Nov 23 04:36:04 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=1792706301; cv=none; d=zohomail.com; s=zohoarc; b=Tg08OIJifYIKF0a8K1ImUNVrjKIVPF8quupXfGd8MzCVwbmfUcWxk642kbxZ4uw1hfnqCUUISA3Yya9NIVBSb4YYeeHWPjrP7A6JN2KoW82o0wqF6cSAJdp/3KSkYL9ahUm4IOGfuHGFCIuiYalYH4rGjjb1W9XibHndB4GY2eo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706301; h=Content-Type: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=6sHf/w29CdhlhFeXNCUTUDPkVBm0Y9qqEW5yNmdIpGg=; b=E4yp5SKd42RdZ4mNE2ITq2wVerugG4jq6YW+Y4gEPv4fxqM1k02atQaEmu6WPbtxX8x97YKJt2UZLPSc//AD4QtdgTsqFjiwyprF788LgjFtXtA7hq6cTJwa3JWQzqJmP7K82aH9QR76pFoHTW5mxoGJP+ATxnStBzJVYqXTAGs= 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 1792706301771704.5715231022172; Thu, 22 Oct 2026 14:58:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nU-0001nj-5v; Thu, 22 Oct 2026 17:58:04 -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 1xK0nQ-0001mE-Rc for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:00 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nP-0000HV-5E for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:00 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MKvEeH792626 for ; Thu, 22 Oct 2026 21:57:58 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 4hfsyk85vw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:57 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-39de4e72b33so348637a91.2 for ; Thu, 22 Oct 2026 14:57:57 -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-3adca62e477sm648061a91.2.2026.10.22.14.57.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6sHf/w29CdhlhFeXNCUTUDPkVBm0Y9qqEW5yNmdIpGg=; b=U6FD0HpLnmQcrprl PnKiDzXrwMLDgKvxz1srtKQJ6Dxi0n3fNB7HNc6BkyKopCJJDkAFTuPsuH4jeBs5 Fa9ZokdlQjYy+JDzKW3A1ig7H1dK4zy3GWhsEnStHGYwz14b1klWdgYoAwM1e9MY GEQbI2A+xI2cH/XktZumYfjHpyfDa0km1CFu42WZFWPOhKiw+aiL0fasQpei2/cY gYPJEqXSf+W5jJUinrGf7dnaVmybiNAOczqs5oirq0SPg6kXSMkZR4qXWLDMAbGN ERnUoN57YU6T9YC8MQhuAiRtaPhmfrNrInU5C/CcU2jn6CXPU+xRm4ECOELtWrMr 3XehuA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706277; x=1793311077; darn=nongnu.org; h=content-transfer-encoding:content-type: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=6sHf/w29CdhlhFeXNCUTUDPkVBm0Y9qqEW5yNmdIpGg=; b=MrmRYh3yzV/AfT0C+iusO3gdVKf2FJLhQjlBeZCNxsMmrrsGDv81VquOtoRILI6Abp jWBuzFphKJihHtecXvk/r1pI7gSrBywAQoMvyQLSJztoraJWxNg9TBiy+1C7Hr5LwB4V LUqf+E7TyaT6xL6+x/9X6NO+ZDemv3N3pRdC6u4M9q2kP/i4DmePtpe0epKRWbR5oZfU XcMPa+HVxN1IKQRL7z63t//EBa2u98Q3sSxn4Ix/U9ziXkALWfT3VjdoG1end+HVOpnv b9f5g6x15ILRNy0bwEmP7S5zYePb6vsw1IXs9tOITamPRninWLw61ezKEVSMNTcYVzXU YBHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706277; x=1793311077; h=content-transfer-encoding:content-type: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=6sHf/w29CdhlhFeXNCUTUDPkVBm0Y9qqEW5yNmdIpGg=; b=zxeWdPfi40tX4XY5xzomUgbKFnVaIfelx5GKX3ZmviUUEfqh+ucd7HR5HfcbE/DXke ojrmzEV5YDPPSTMGtZnJ9mUIKRD7p+1BhOJdc5XlJ19DtFLU1aY+Rg0PzGLwQQgN27MA T6vSwU36hPDk+jOAp8zvnyKxZ3Kd0EbPN3Kf5oi1jqXmVlkS6lBt2TVd1K0SHx2G+ej0 Mh/YRk8hx32Mky3s5vPjEPTP4hsE15umuqCp6iI8OpdtM0Dd9lTsT1aT8zwbDz5dG/HJ JFmFQElW7OeyU8FGyjW311dgpWE/mrJN/wQq37J6Xw+wjDOdjNTKEGn95Wj7IrakLPRK kT2A== X-Gm-Message-State: AFq9FYJ6I1PO+00hyJvPQudVtbd4ttv6OMG3xPMlhS3mhW8m+trY4rg4 vIju5SbmpIvq1KuH4fdWkxocCstpSn8utNsa08XTiU21VqbWJrf4GsS9aj2bKtNceza8kzp/QfF g9ygLcxZV7tbuuZiy4Dx3CuNRjlw8N3l2cqyWARWqruTzg9Xafvv+oyj0/OM7IfIOtA== X-Gm-Gg: AYBFou0zDmwubeAh2c887ImBTKdy0N/yst4lD4kOro8IL+xgtLE/QNIRQjtxquysnCB hPh2l2VS+ZlPhCiM1+nCr92mmUtCFFl9TJ/R377EKGU+Y5dtLg+hEhahTRtYwruM4Qsf6UPl7Ce ZVW+E9cbkdKvb/zTZ33UfDvuHZ1v8ovFoKwMztNOrYB2lFNhdui6Etipfzqi0L4i6/aKzPGuSKS c5NS/xakPWWW+QtEb7qUVmK1XySVlPAEDa40GY8+/HczJC4B627kEMhI8bcmw/0vPl0qIxs/By+ 5vrvyNVR2b8wPMkN26NFtC8J+idHGukhyBagTcXKtuIrDSO11FRprHbz/4IVl12zlHEOtxOGYTl RPR7Xx+xgcLnWmVTGsFMqxftMpyYSrJGYoM1zfPZBXl8PaaBr5Au94SEoU3HT/Oc= X-Received: by 2002:a17:90a:da8e:b0:3a4:adea:50ad with SMTP id 98e67ed59e1d1-3adce01b033mr176532a91.27.1792706277249; Thu, 22 Oct 2026 14:57:57 -0700 (PDT) X-Received: by 2002:a17:90a:da8e:b0:3a4:adea:50ad with SMTP id 98e67ed59e1d1-3adce01b033mr176515a91.27.1792706276828; Thu, 22 Oct 2026 14:57:56 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 08/27] target/ppc/cpu: constify cpu parameter for ppc_interrupts_little_endian Date: Thu, 22 Oct 2026 14:57:27 -0700 Message-ID: <20261022215747.2479440-9-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX+hIL2nyaJEGF /kqNl8wPjavoIKHAJZ3VF2sHUS8A6kd6vLbPHrbT/2uIZLvEgsO+S5nmkrQIi6b/1z8xyl6RCZo /AZCdX2ZLlH4zYmghlj6vhMkmYXMBVqRfwDodFaCAu/bzCca41VHpwc9xeMGnzgAgn63FVaSAjy t239Ds3Nb648MLKVKreGIRBkiyqUBntG4jBhEUXcpFsoKRxHdH/7pL4r4x+YbklIg1UltFEaTtq j5jtz/ONWpTzXSpfSh3EctHgyf9q+mKhfvwB7DgvSCVn4J72v7zJnsRSrSOZvkQS6Zu7M+Jlzqs eEQPtn5M1u3hrgBFN3toUO/CS+LG35DASyr5JhkBFnQ7+CLX140jAQpIGxDLqcB4i1L3x/5+hQi tpB9mzgd565IgRuSCgn6aC3UaeJn24dmXpgIxYaXYy9gCb2LOYziey80//PgPlZ6scavje80Clr 9f89I+44KceZ8Wjq6EQ== X-Proofpoint-ORIG-GUID: ItRElRA3OvdLOb0e9NTicKwcgvCWLXFe X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX1j+ODbCR2sFW Kq0d9jZSLQgMCcw9zeAaKOnPz/+gqB3W6DXv0IVQzsj/tbvUHZBO3LV3zG1kRps/X6kD2rEYvuM +nWvX7CqHhdNa5kE/sFYqz2HnTtTbRs= X-Proofpoint-GUID: ItRElRA3OvdLOb0e9NTicKwcgvCWLXFe X-Authority-Analysis: v=2.4 cv=GLKdgeNK c=1 sm=1 tr=0 ts=6ada86e5 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yOCtJkima9RkubShWh1s:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=KOFfYGMdUDr6h6J8HrYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706303845158500 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-9-pierrick.b= ouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- target/ppc/cpu.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/target/ppc/cpu.h b/target/ppc/cpu.h index 3fb51bbeb82..fbffc9b3005 100644 --- a/target/ppc/cpu.h +++ b/target/ppc/cpu.h @@ -3048,10 +3048,10 @@ static inline bool ppc_has_spr(PowerPCCPU *cpu, int= spr) =20 #if !defined(CONFIG_USER_ONLY) /* Sort out endianness of interrupt. Depends on the CPU, HV mode, etc. */ -static inline bool ppc_interrupts_little_endian(PowerPCCPU *cpu, bool hv) +static inline bool ppc_interrupts_little_endian(const PowerPCCPU *cpu, boo= l hv) { - PowerPCCPUClass *pcc =3D POWERPC_CPU_GET_CLASS(cpu); - CPUPPCState *env =3D &cpu->env; + const PowerPCCPUClass *pcc =3D POWERPC_CPU_GET_CLASS(cpu); + const CPUPPCState *env =3D &cpu->env; bool ile; =20 if (hv && env->has_hv_mode) { --=20 2.47.3 From nobody Mon Nov 23 04:36:04 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=1792706547; cv=none; d=zohomail.com; s=zohoarc; b=QxLwG3KRj+0ftTbXcNYRqI+zIjG+DzX6qobsqnWbn8OOdq4RDRoNltgulGYe47t3nSKW6tpHd0YaI8IHXsNbC/ngezi13cNJlc2tHXTNBE42lpTdOVKDml+1nGK/qPrTm2ZoAJfDrZ6l4TqInXVKqF3MYxrUZo7BsDcpqyW6PRM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706547; h=Content-Type: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=6Dn8qMlDwc/a6OIUdd/27QLER9l8IWjdE2dfohtDrZQ=; b=LBwpSuo+IN/Tv/poLpGLXM9jc1i2m44I922+UGpzfejC9JznSEhOb2PZdUyjow4rWHRfamGTnsrNTra6ohTvjKFs/pPpq7W4LqJb7R5SqRuxzwNkwTpgVr7cYHF8EXBIyhqDqVdU/yfG+eiK1qtbskUcA7UzWbMbwvmNhTPEXq0= 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 1792706547228916.023732597674; Thu, 22 Oct 2026 15:02:27 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nV-0001o8-4T; Thu, 22 Oct 2026 17:58:05 -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 1xK0nR-0001mQ-Ez for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:01 -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 1xK0nP-0000Hx-P3 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:01 -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 69MLf4na839068 for ; Thu, 22 Oct 2026 21:57: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 4hfnyw185d-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:58 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ab2395f104so249222a91.2 for ; Thu, 22 Oct 2026 14:57:58 -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-3adca62e477sm648061a91.2.2026.10.22.14.57.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6Dn8qMlDwc/a6OIUdd/27QLER9l8IWjdE2dfohtDrZQ=; b=B0wxz0XSJ7NkX0nZ x4Ddy1Udo9Oq4+V/hYltwbQfCONXwBEk2VIymt53WU9vAbl53E8U6hgF1qJ68ASJ 29WMIXj1xSlFo4e4Oc5GScemQPcErjKnTU25aRB6drhXqVI3EkznG1tj/dsinFGA k0Zw5b7t3m2tMrS9vjBPQDJa2T0VFkP9KGeRT/ZXWH5ejOqMJsRpcKJFik7WZ98V TVXy5bKizfPfJf0YGvW1fC0melQZxjgoorwrYTNaGLFa0jhAknrrTvkCgYaFatGW TiHQIJrS0OHb/SZgSnY9BpCvxBfY8oXFtjEfxPaSG3Ho1Sa/oKqT+n/DjHDk27vX zzgGpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706278; x=1793311078; darn=nongnu.org; h=content-transfer-encoding:content-type: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=6Dn8qMlDwc/a6OIUdd/27QLER9l8IWjdE2dfohtDrZQ=; b=i4pyBTH8kbIjfsvF9f4xAJgYW6BkYS/lqc2m1lJcaMeka50P6Xy27Xs30+BnxVA4yY KgpEeMkS8sd7f5X8dCoKd00Z6mLlXS7EglgmabGhls/nNRpf6v5an91GRBFV8xozYOcm qJw/yV0J6ZWvQHD5/oKnCP6ttIVgtrab+AYlserwkeVo+uBKFYrORSritR/BIWmdtpxc C1m/gQeT0gOsXZHdM/AE1dzeGDYyBMJi40TLyH/3tU6fVZJoiiuMVNNotJL2z7/58C/W y/FRcMY8UAvdEAsyfrlmW/2zVW7yZm1yRRSjCM2+XN/t1MGbJpnvJhD2dQqSkTRTh27e fjDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706278; x=1793311078; h=content-transfer-encoding:content-type: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=6Dn8qMlDwc/a6OIUdd/27QLER9l8IWjdE2dfohtDrZQ=; b=Ukb8nV/WZwanD1i7wq2W9ku0U5+l1vFMPhiVUxJMXtwCVZcTPAls8B2xDppfPq+eZd CDW6wL3oJFUSroKjqFkgcsulZG+Ty1ezbBplYsno/wE4puZp11xz8hMYocUfiLZwWcZ4 DmR/PJBsBF8pccQGAE1rWjA8GtHxc+ceRfi7OQp9KVnNl6wAgDmPHuQJ3YlZgk8qu8lO +FxclYCV092D6fvYSDp8wWLaKTzvdax2k8qw7PBomIaEgDeBVjiyFwU+xPjI2eTVLL/9 GmqjPBbM684Dgzwpm0Wl9Df3ZeqhS4B9tOQ6Y+kTmstLLyH3hQH8ZJ8/M50ZRBUufIgm jI4g== X-Gm-Message-State: AFq9FYJFv07LUDSJLT9ZGbP9nDNHwYATCbfcP6ofxF4fRBPydHfm1S8j j/ojmrJvRRd2N0vp39iiEFXfYh4PXF1xV4Uv9ID+sYAzJLby77Myr2NNpdW5ooKKJwsin23Hts0 +CtrRbx5OgyFAqZfwpKuId/8fX43OyDHBfPb3bUoCXe1HqyLQ2GaYnothw5F5TDVz0A== X-Gm-Gg: AYBFou0wKP0c7P5yazZU4LOz0bB3vIoBf8DW53mdKRYfekKe0EFa8qZEsromyWVME0f WDsPW+5wsEibMGPi7puvHBc9klg+Z0oKjX7NGoKrGmiYzouYPVSFQD/tKjowg5IgMySajOxLxBW WBwg/O9KnuuwqBtlFADwlfPI7Fekf+/9yqDN4l0bVLYT233zuv3S64VWXT1nNBXZuCDcLn2GLpb WKROCsYuI0FBeVX9UVPtMMS3diVHgo5TibbM4nY7T1DSzCXSNhCUSV/BIn1JoVSwNVewtlgioKX dWK1AiB9YYI+jK9EqAFrQb3SK2NJj4pwwN78pdOkPS0ty88og3c/ROFj7NDnYtQ/9yngHyfwAIH ochjpNunayr+mnRbYCu5kaJVhJY22legrtFZGeJ23cwTz9IJQqN09YJ0ljo+pjow= X-Received: by 2002:a17:90b:268a:b0:3ab:f38:2b3b with SMTP id 98e67ed59e1d1-3adce5e9355mr127670a91.21.1792706277881; Thu, 22 Oct 2026 14:57:57 -0700 (PDT) X-Received: by 2002:a17:90b:268a:b0:3ab:f38:2b3b with SMTP id 98e67ed59e1d1-3adce5e9355mr127661a91.21.1792706277446; Thu, 22 Oct 2026 14:57:57 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 09/27] target/ppc: implement get_dump_info sysemu op Date: Thu, 22 Oct 2026 14:57:28 -0700 Message-ID: <20261022215747.2479440-10-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: LIdNlGwFimH5r-PoiHQ4ddY2hfJyp9Vh X-Proofpoint-ORIG-GUID: LIdNlGwFimH5r-PoiHQ4ddY2hfJyp9Vh X-Authority-Analysis: v=2.4 cv=dphOmFg4 c=1 sm=1 tr=0 ts=6ada86e6 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=HC5FQ_MKihgnNVCgyfIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX1EF9jYxYuAJF /Xlmnq/jO0l0w/TaowPmOO6ePg/oxIhHtOPK4L+5zoGovs3qQNv/VjCx7ocq3UNw3O0GWGEpvpg kBQEhwP7eAQ455CQjDS95Esv3PhT8oE= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXxd+IJsUNFzv3 wEju67wWvHyW8epu0utuPync+y5cmK/ltOmZUG9iYmCByrqUuW76K7DsGpVs8WwktYxQK5folEO /RGdipPgH6+kpVIJeYcZtKf+SOG/tZ3X5PXE9SLLFGQbCGIKUkP0U8ZkT3JloFsrPQPLn9flKn2 wTWz5RJUhQIIG+E+6yBbqMl4KrajJljrecRS3Qtzi3x49Bsnxq6PB/MezkBjMst2CnRR4T3klwj dburvlwfDIa3eWOsixxzudO6LBt3A0c2D+tq638p7GVn9kY+M/pDi8YapqHTc12/MVTOXiDcmRs trX6HmCoY5FL7jMZbAwbtP2sElzOoCklgj+HOQTTYgxrAJVyygmW9bRJ4+5wbDfm6yU/eoHJFR7 UD3zKwE63Bd+ir2XQVxhDrvSIB4XYE0iDUNE1mrYoLQkeKbHOhLBHVKO/dRRVDTnUziuEZZBgjX QKk4s1FBFw8P0mPqlrg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 clxscore=1015 impostorscore=0 adultscore=0 lowpriorityscore=0 priorityscore=1501 suspectscore=0 phishscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706548309158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-10-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- target/ppc/arch_dump.c | 22 +++++++++++++--------- target/ppc/cpu_init.c | 1 + target/ppc/internal.h | 5 +++++ 3 files changed, 19 insertions(+), 9 deletions(-) diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 80ac6c3e320..2296a0c9e8a 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, - const struct GuestPhysBlockList *guest_phys_blocks) +void ppc_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const 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; @@ -253,7 +248,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, "pseries-", 8) =3D=3D 0) { info->page_size =3D (1U << 16); } +} =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + ppc_get_dump_info(first_cpu, info, guest_phys_blocks); return 0; } =20 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..02dc68fe2c9 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -324,4 +324,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 +void ppc_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks); +#endif + #endif /* PPC_INTERNAL_H */ --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706321; cv=none; d=zohomail.com; s=zohoarc; b=b5Xdv/MlmbaaTMwSlYYYdsrAmcNH5WAcGiVBTc7W7D+FbRPazNuyj8A8/ybaec7N3kkae96z8QPPfddiBbDvgV+vZ5BuftAvol1tk39q7cpP3GaA1DsJXfHPamgIBIG3/+D5NrG2cfNdHKCbzZ8OgMTmrg9uaS5OL5eSA4FTeRE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706321; h=Content-Type: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=TQxOJD9sdXe4P3cse9nrS6RZEtdZudlSJOZsX1XjkkQ=; b=iXbwm5nZvgU70hFkdLwk0CwEV7r2Q8Dn5Wjv0vPkmqFGGxsDg17Wq63JouQxRSn5ZnUSTBqXiHny2XgmngmcEQcUIw72guZzegJD88HaKXB4aBMQi5Qyx97e8XpP1Zejxj5j9crqniW0Mr9khwombT4+aStQIlPywMV4vu+fIW8= 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 1792706321615571.0969539645732; Thu, 22 Oct 2026 14:58:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nU-0001o4-VX; Thu, 22 Oct 2026 17:58:04 -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 1xK0nS-0001n9-D9 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:02 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nQ-0000I4-Jt for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:02 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MIHlq14087410 for ; Thu, 22 Oct 2026 21:57:59 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 4hfqmtrq56-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:57:59 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ad30487d55so362331a91.2 for ; Thu, 22 Oct 2026 14:57: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-3adca62e477sm648061a91.2.2026.10.22.14.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= TQxOJD9sdXe4P3cse9nrS6RZEtdZudlSJOZsX1XjkkQ=; b=CdZjuyo8+VW+xflv Bb+MQ8lFxROm1QY8Ek0I7DLlJ9clviygd5Fe/ZUEH8Y6QPz0+fhofyeBoNkdfcIO 7vTHEEAAZu6OeLj/5tkpZf9c85esfZhBzXHovyQwyT3C93jAA6FrzcY+gFWcYEDB hhFhfYKQYMox1PMpVYoan5Yr1rLAtJlYk53nDOtdX/274yJc/eaw4WSk/5x/2vpU H9LY+A4vlDPWER8BvR0WGHo3PKo/ybqHItdCpjwX2CAu0chAGtpCEX0N9cFJki+U Zy29QAQb4jR4lSHC8SHw8Bakw+ZqZWHaO4uZR9thbcBw6/hKU+YtzTNvx9DIS4WW ujD7XA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706278; x=1793311078; darn=nongnu.org; h=content-transfer-encoding:content-type: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=TQxOJD9sdXe4P3cse9nrS6RZEtdZudlSJOZsX1XjkkQ=; b=H8o+cmFxkm9iiCfqUqJAPHTwdY8lMa/pJfqwsmhXXpcgGx6s6noTiZYoIGmHXDGsgT QP/fciHWZlQP7R8CSez5j0xs1USTTzOi0+R1z7o2/s1esUCY+lSg9+s65Z9GqT7tFh7X aecNuDPuRs5uL0cC6+SHCDxVx2uzzdirCX50EXFKqNaQnBUvpEpvcpQK7qVKyDMF5MMf RNBYqXyccX5VH4Dr1uveTv0ac54tAgsOBpPL+4+xc2gxWsM+hKoeCpNVIv76l7B8p2jo vtsUGaGgg/o9r4Pi4nQkvGIBNOQjwN9tzZjbWli+7Y/5JEWqnG31DE5I3AsFgzVsWtm9 vTow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706278; x=1793311078; h=content-transfer-encoding:content-type: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=TQxOJD9sdXe4P3cse9nrS6RZEtdZudlSJOZsX1XjkkQ=; b=aHlbgzPFY+n+til072UW99TfptOGgKcM8+G0euqmiXZlWUPvwfJi6pJNNa2/BQLopy N2rE2486mri0LWGTb/aIpL5KCWII6gOUZ337/xgl2YZuXwxETfxOX65e74ot29E3ye+E hBzYJxcb3oz3qYb/h9alEIZEkzjX7AELG0xQZXcUxqb7R+5vgWES2KII+qIBVcdrWazC Z+znmEvKwOEXNvzQfOrkLDbSGo8kBF5+vV6TxoHloOqgk8GVEj21JK4siHDPcbraq5Cm nGTHbJt3GmhnWmQh3+bjUxHd4ezqn+ZdXQojYvf3JFIX6j9SSujAiu77JGEhsO1cGA/K qQkw== X-Gm-Message-State: AFq9FYKh2RqE+6dHTfsYlH5yy8mUaaEDO6rmyMBv9PJIJunjVrMyGvJx r9ClX/en6SZeCMPrDRnC9N118LxcUdD6j4ZhsXgYRLHt9RpZyAWVqbrDX+1hF8Th3lzovWIIpgx ARcvd+Wab2fnQwjIprtfwOFMticxERMXuNcsLt0bVfKPZNg4RGfEMiEJiGQHiroBJpg== X-Gm-Gg: AYBFou0FZF7aLOn8jy06lMKrNuRQiIc9iKX5dHMGeQctvKI6AP4oZhTRUHPVmtuNolt a586ux3YrGJQj4+O65E+209S+13FfAG+7bNb4JeMl5r05h/siP9h3CtGvByeBJD1hZF13H+Z1nk /Fy1KxSc8wA/uTcJB85l8MQLK8w4nuAta0RMKsjaLTrtIL3AfM2WM0eSoLTkmwylmDnl8cHKSW5 YkyXt2STVBNuD2U1xNMTZDdBl+rMM92b3OV+P5N1pWntO/JhgadrbXmqq/aE8RrURmbkHuBs1nl H36JByv4yevJ4mPIhzm5kMayBSFX5HfXFpPjNrfF2zglCz+WPXxl0B+/FG/DCNBXwTpSwVABhFe +zZqJol6GfZHgBNOT0wMhMRiSNjmSFokyElYPktoYcFIycqz+zshcF9pKVfbfDjw= X-Received: by 2002:a17:90b:4a12:b0:3a4:b0f3:6597 with SMTP id 98e67ed59e1d1-3adcd7fe438mr249905a91.0.1792706278549; Thu, 22 Oct 2026 14:57:58 -0700 (PDT) X-Received: by 2002:a17:90b:4a12:b0:3a4:b0f3:6597 with SMTP id 98e67ed59e1d1-3adcd7fe438mr249892a91.0.1792706278091; Thu, 22 Oct 2026 14:57:58 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 10/27] target/riscv: implement get_dump_info sysemu op Date: Thu, 22 Oct 2026 14:57:29 -0700 Message-ID: <20261022215747.2479440-11-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=Gt3XaU1C c=1 sm=1 tr=0 ts=6ada86e7 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=4PEAfV7dsZCClPGPoiUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: oKTW4DgcEYJjfFYe9a0NOcumyrBdFzFO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX5yElLMwUEc4+ eANpAwPiHx+g1B4BaoI4SQUbhwBCJK+Q7nvUtHqpbDbX2w21QrUBkTJe4iHtj6g5Rvf+OKJ6ck7 euItwAFHfBb/KNb4UrlEwv1L3TKiy1OGbWYWbtVOdKYL2TzEVF4VtWkASt9LBadAGwAoB9Dx07N g5ByEWIWw7E219gJVpl6NsP3SJD749ZA0b56Wm/AZ8UqnqqQ7H+D6f6PWiT9QkAbFDn0hIJFo0U cy4As6mpmYMErBgMZCyd6w7HdZ6LJVCw1I2cupOWWtuhneigh093Pz3HTin0p5A/qiVAQtk82uU cgEt56+hY9TK2O1hYOr2wXW2D+GDyqLSwVKQRjzOAqnKyCDL1UD7UsYbrgr6vqttdAi70rvUmm/ EBv/QbDBQ5/G5OANO5fpkPbnnIRJuxMdu9ulOwVMFK/sidS/rAmD4L6yf8M2G1UcAdU/qqXEJRS 6bGaPKOijg19xQE+JyA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX+Iit4J1wV/YA dmMwXMiqIM3qz9CqSyPAhb88WTOOWzYUv5F5+Lgq/B3SRUlw0sQ5kPhU4kz6HL913BOLoG8lBjO sSwG9iplXyCzKfOAIGxsUpRpqGsdBAs= X-Proofpoint-ORIG-GUID: oKTW4DgcEYJjfFYe9a0NOcumyrBdFzFO X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 suspectscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 phishscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706322226158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-11-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- target/riscv/arch_dump.c | 24 ++++++++++++++---------- target/riscv/cpu.c | 1 + target/riscv/internals.h | 2 ++ 3 files changed, 17 insertions(+), 10 deletions(-) diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index 12b68799070..4c442a78312 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) +void 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; + const RISCVCPU *cpu =3D RISCV_CPU(cs); + const CPURISCVState *env =3D &cpu->env; =20 info->d_machine =3D EM_RISCV; =20 @@ -183,7 +178,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, =20 info->d_endian =3D (env->mstatus & MSTATUS_UBE) !=3D 0 ? ELFDATA2MSB : ELFDATA2LSB; +} =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + riscv_get_dump_info(first_cpu, info, guest_phys_blocks); return 0; } =20 diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 08a4d14ea1f..059aee855df 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -3104,6 +3104,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..d2993842a32 100644 --- a/target/riscv/internals.h +++ b/target/riscv/internals.h @@ -207,6 +207,8 @@ bool riscv_cpu_has_work(CPUState *cs); #endif =20 extern const struct SemihostingCPUOps riscv_semihosting_ops; +void riscv_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks); =20 /* Zjpm addr masking routine */ static inline target_ulong adjust_addr_body(CPURISCVState *env, --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706333; cv=none; d=zohomail.com; s=zohoarc; b=HyLWae0bfv+y8zwdLq71p4n3LWdFMPIe/23oA4yH4jv0agMfgNfAJXYq5G6USgcX3tLflOmiW22Sz/0EvIhInWEBFBxWk8FSrXZBkLSw63sQdZLuMIpZrf4tUlP8tsSWCR65GSH9XjmRuUmS1UvM6fdmtVz8ZI7GhACf8dVxukQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706333; h=Content-Type: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=tkalM0EFshmDlV4tPhWDUoFA7umx3kTYMyh4HJ+zAes=; b=UxhyMVZcZiR4DC/usUeA8elyWjp91Of+qQC9sWheFzX/UNjtYaPFxyYaHeTTwtYxyQ3LgyPRD5akTmNLiguyOVFL8pOnBGxfxmcdzt1TORuxunBbQ+WOr3ZOIclePoQ2g8vLkpigZbH4F5A3tYw/jSlCcKeMEL8Px4SDMd/SIn8= 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 1792706333551382.7627737776869; Thu, 22 Oct 2026 14:58:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nW-0001oz-R7; Thu, 22 Oct 2026 17:58:07 -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 1xK0nT-0001nW-2b for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:03 -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 1xK0nR-0000IH-Cr for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:02 -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 69MHtVLE387736 for ; Thu, 22 Oct 2026 21:58:00 GMT Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfewq4rcw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:00 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cbb92868263so129998a12.2 for ; Thu, 22 Oct 2026 14:58:00 -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-3adca62e477sm648061a91.2.2026.10.22.14.57.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= tkalM0EFshmDlV4tPhWDUoFA7umx3kTYMyh4HJ+zAes=; b=I6ViT8yV2v32EuWi royPI8vQc4UVY6e6tZu4VtNzKxY1IvXJ5Isq0SiiL+pcvIUtEtNWlsFoAd4YAGpg zKFleICBmJVhoIprHxvflS4eIy1M2FUKZwwr6ylcOALyzBseUb8uWexNt1AipAYr CjsIDxCa3Uv10Ca5XA+V+6+1ERLx+kT73yhN/wdTYsRmZi6IuYQedFHdukO10hHF W/1UrzjnBBahIejrsocdvEJeWWKz1X/nrwb4hBsjkxXcFIr7eOg4LFx09oBMZKl9 bLKJyQcy024ehbsY2bo8hAwYJ5pGYifhxPVi7r3aF/CG5UDsPCOelMREQ8AMbJiL 92BpzA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706279; x=1793311079; darn=nongnu.org; h=content-transfer-encoding:content-type: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=tkalM0EFshmDlV4tPhWDUoFA7umx3kTYMyh4HJ+zAes=; b=GkSWanu5ixBVxsdVmwfN3RV8sVsUHUd3ledAPebehofUUUFQzPIKv1o/7lhqW6UwRl zpQ9tgkVl3CscCJqOJF9C8jIixqtM+a3xBJf9FYqpImH9lAoIXs2L/WgpVfVKRbcQZnT I9oWgDEIfcUbsA0/eJ3UwfHrMnc1DFqlUrEZVxRUWmQShI0ewVI2980oeI5UzTBK/c8r uA3MbvKm1UfnDgoB0JtGhI/ZUtyFp+2DxZgxXD/6EYYgo7ND612KrRT7WLdEP/iAdb5d urY/tNBfZTjOcZwMVrGKxkGkKiEVMIQnBadJ/8A9X/ugVZwAycLzxcBDXBltM1rKz6il r77g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706279; x=1793311079; h=content-transfer-encoding:content-type: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=tkalM0EFshmDlV4tPhWDUoFA7umx3kTYMyh4HJ+zAes=; b=VJ2AFhdpdhCdsa/x5ez4qRNvweYx11y8hQhZUzxz4IH1T464EL4Mcj3uK9fz12vyfG WZVg9+fKb4kDbvreso/PGWAQyp83BQNM04CAxcx5H9jk8LgKYt7nPvJrxGqLCL3KynRF zVeSgIOxrCbqjWwTHUCUM/RQ47i0o2BUKUzUylwJ8v/YL6kBlxrN8MlzBDUAyv8a/niG sx2wLmDROaZfSspDiQVX/C3JaTz2JFXUXu9PAdIvqu2Ui0579PTs/a+EDqz+Z8R28C0X EyOI57q+ekEjixLNtIiYVZ+L8ZZhHIbtIfuePaLtkif19jaAwhMn9PMO8xx+3ipAg3bK axlA== X-Gm-Message-State: AFq9FYIhecX9QCJMTblA0PIh00Xx4C4n1hper6IeWdQeuuN71uzgBh6m NJecYplIwudUP7L0UkYdhfloCCFjSjRK+hoPGvDopveY2WW53ztxrVX0NGQJdYyimZGV78YcbJI 9rPM7yvXkcwRLs4iNqlF/VuUWxlsDe3RFFHv3z0jGzr2byBUFknNDxEoFrg1YWW9Y9g== X-Gm-Gg: AYBFou1WUAkG1C3jcYibPI5Vd1JxYea0L0NoZerQo1a9Er4XhAYpLN/K+616cQK6ScU zvX2JByVlaTaHYo8the3lbwyXLrt+ODBVhghPVXjNogrZJk+RgCNK+iLHO8vrfWgoPvY1RabWAO vJ1Wg0V8gDSseKZim9uEts15LrN4W2vJ6UoYqNZo1Xa8kVraiENUmaAjDa0rqWvKcyjTkv3cCco DBuX+iENkMRjf3TKw4JxPXWqifoituNFbIM5OsbQ5g90NKo3URyD3F/MH+bTTAi33V0YwzfisNy vBXt+fIEhHNWTXNFMiZyFWF+pjaguUL404o42+OFIMBFfhEBKbcZ4BmR8/6UPUy1tHG0dICi40F x30yeGMd5OUtmln2VSyAgP2qmlXFbi1AhDXZt/ChwvEikRSXh2HN2yuugEcvr6nE= X-Received: by 2002:a17:90b:50:b0:3ab:c674:d83c with SMTP id 98e67ed59e1d1-3adce422683mr149056a91.27.1792706279423; Thu, 22 Oct 2026 14:57:59 -0700 (PDT) X-Received: by 2002:a17:90b:50:b0:3ab:c674:d83c with SMTP id 98e67ed59e1d1-3adce422683mr149049a91.27.1792706279004; Thu, 22 Oct 2026 14:57:59 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 11/27] target/s390x: implement get_dump_info sysemu op Date: Thu, 22 Oct 2026 14:57:30 -0700 Message-ID: <20261022215747.2479440-12-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: Wc7NuJMBNXwNsJBJ14zVcP_LwhFdyGXD X-Proofpoint-ORIG-GUID: Wc7NuJMBNXwNsJBJ14zVcP_LwhFdyGXD X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX45A8WAfyqTF9 nGDeVnjnZFkUVt8/rt5hdQ7ldM/pj0+3EyJxdyVBFFUCV1vFL3Q1Hipf0ikm49OIBR7RBs7+evH vBmzjy/w0jiQZ8xxXjFg4zPgdGBWlgA= X-Authority-Analysis: v=2.4 cv=G4OJgNk5 c=1 sm=1 tr=0 ts=6ada86e8 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=tWNUsTMbvNwxkxjYQD0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXyWIY2x9IsVol yFdM+mE6qDD6chrI1f8tZVuSWlOjKeeqMdStbku32v6wWpAe9ML98gihmotJDHAgUdisQESCf0v S9rUjXpk+x+FHDWV2vWAXpejQB4JGtIOonqpbWZOShxiVlHKwyUKo+sy8uZmAnGxcXV6BVRny0A SBG9gw6CrMvum189RQKFZx5c++SXwPvAyUAqdw5gNvrxM1dPHEUPg3iI7u73zwb0M+gOUHM30Jv gdtWkqz06xWfY/UdX61LlaMDWetjA97F8wHtqo3QUZLmpin9zG6mb0PANZcwuOz6ZY0MWt0kFzO oVBc91+cmzqMAMb2dy1NypmY9QPwBQutb/WQFqm0UmR/HNjL4s1eXxoqo+3zTgAzRzNEotpaJuX j91k/srolsx6f3I8Wgv0lWAh0JN6JGiRXMD18oezf52/NqBPsV9yXQeF1zHFJ44XGphM40Ibciw FI1CpkC8v0cyPnq0v2w== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706334431158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-12-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- target/s390x/arch_dump.c | 10 ++++++++-- target/s390x/cpu-system.c | 1 + target/s390x/s390x-internal.h | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 2c26e992959..b26f0ffe143 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) +void 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; @@ -466,6 +466,12 @@ int cpu_get_dump_info(ArchDumpInfo *info, info->arch_sections_write_fn =3D *arch_sections_write; info->arch_cleanup_fn =3D *arch_cleanup; } +} + +int cpu_get_dump_info(ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks) +{ + s390_get_dump_info(first_cpu, info, guest_phys_blocks); return 0; } =20 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..5bfc37fc46a 100644 --- a/target/s390x/s390x-internal.h +++ b/target/s390x/s390x-internal.h @@ -249,6 +249,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); + +void s390_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks); #endif /* CONFIG_USER_ONLY */ =20 =20 --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706342; cv=none; d=zohomail.com; s=zohoarc; b=ewMv0kajn6MyW75fCgn10iqYWQgYc5DLcyU9PDWHlPKrAbmHFnsVxz9kSNAcSEV3LjFjxGPdPvrMiPCH75kp4Sj9TpBDEZ7yPqYc87W7kc3FeEAelx+tXgzaLUPz9b+BXSSK0baFj79exDpYUxQZcNX4jZaASGLlTWpm5iGvvyM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706342; h=Content-Type: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=VOx5ZwQQwfDpX6oIUswz4nFSPysUM34RdyM0aG3F9lw=; b=c1VHee8XNXEOg2QmeQHSYB5uEBbTc1oiN2LuZ9XoMzLl6vpfCshL/gdBakzp7aV6K34hAZNRGuloX94LEqyfqxkfeDvldykRgPkQPMs8CrPM7jv8qA/anknO1eY8SAS/S8RvAF5tWtc9DGLCfd48c8sVOk0nNbs2YqCgg2LD4SQ= 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 1792706342033135.0964690439722; Thu, 22 Oct 2026 14:59:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nY-0001sZ-N0; Thu, 22 Oct 2026 17:58:08 -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 1xK0nU-0001nv-CJ for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:04 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nS-0000IX-Gh for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:04 -0400 Received: from pps.filterd (m0279866.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MIHMN63741970 for ; Thu, 22 Oct 2026 21:58: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 4hfqms0qby-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:01 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3adad90c894so290067a91.1 for ; Thu, 22 Oct 2026 14:58:00 -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-3adca62e477sm648061a91.2.2026.10.22.14.57.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= VOx5ZwQQwfDpX6oIUswz4nFSPysUM34RdyM0aG3F9lw=; b=gtwe+tKS/VcPOy8k y33Zb4hkYGv2PnEhGDf1HNOtXqXUp+R6cSWNueOGbuJSOHwoCrrGZI3A5I8/dAXp mdHrcO5XSUSYKQtT4lFx7nhlXaZHgxQM7cOFXpSVFBC+G79YOJY7WRoc2AV0rwLF 0R0VXjctZiN+mxwZfsHdKlCMTgrTxZkktSkHHe+ymTXeDjDrUinCHKrH6d2IwQwk xMBOzykJBvF5EQaMzAQsqO7sZTjZDjUNd5muJgVnUViU84eY/oIhf60Hp9otwxw2 kEux5ra4xyMuduAVauBJK/QSUSN8Ad61UqSHrmNzsfZDbFuLxASvhS9dEvXwF2vy Vq9LSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706280; x=1793311080; darn=nongnu.org; h=content-transfer-encoding:content-type: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=VOx5ZwQQwfDpX6oIUswz4nFSPysUM34RdyM0aG3F9lw=; b=S8KHr6QF20KBJGfyx2L8FhjkyRWDgtJgZrCmKZbwOKKJ3S7w3hOdncr71dK8Q8QXsA L73RPA78dxLJiRddgAInxyVCIEjHK6gbIwHu/4/31b7ZBEKDkpqQdpLWULhsrQCeN0Xg 15uGH14v3QgfjuN6GQXxbeNe0Q7DB4AiOAu5541iUIVpJHoLC+pp/I/3BG1ofZHz+Ho1 mPugTV/SnRSXxX0Z4TSf36xdYzFZifUkoBu80EyuYzhyBlBTNM47gLIRDg1UjnhhbqXv A5DGjbfdnN6s16ZhRyi6JsZ75Y8BfN881VMvHsQsn9TqWbOLcWVOPoOG351UyHFC7lMR 7epg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706280; x=1793311080; h=content-transfer-encoding:content-type: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=VOx5ZwQQwfDpX6oIUswz4nFSPysUM34RdyM0aG3F9lw=; b=zsQw9BQ7aGFMEF3aE0gEowurSkCN3AF8tF6Q6LswxeVVZ11bHfbCnHyCBolAnxQfsF KreSjOurwmd/q6UnHXsGDk6KDYzfvg4NBzRpVLabJDRXHnouHq3rwz7n4KlKVF6iXhy+ z6ElrN2m+4W3OkPu3pUuww1uATORYlS9mzBKPSNiv/rBNmxxb3xEp16HOD5eYwaovprZ UkszMly6BNMDgXqk2aMx3/RomlU0wTyzAZ2PCVIXOUs1yGb3q83nYXolIFxb8D+ekD0m cdJStNkT3mrPVeCpQLpnWdcgd98STP9aPI2B5Fy8ejsoJ5M9WmmHPv39eEXg8mTcbi13 C7BA== X-Gm-Message-State: AFq9FYLhxsOY8UdD0oAfxt5BUHFYz4KogzpR+QGm/tOPpylZtPD1eaRp WZgaJQoREeYTD0ECPM1xSIqlTrOpyZDVxdH0fEWxTaOHFiFmoNt9x0DyMFOMaIkwNkRy9YruB9q x9CJAVpyNUp9BAxhELvTbq+uvMllbp0PuiFHAS7JfvPq38/CZoPBFUhz1WU1g+6DtFg== X-Gm-Gg: AYBFou38LSo675QNiXLcE0176mPeC1g1TLOSJhZEpTmXJ8AkLY3AIU+bCNaDxkEGOzK 3kIyq6dyobvbdWDv8erOXELsdGKaHNtz98pvxUfCjE07bJ6/xRPhrgup2ae7xW8CA8JKVHUWSO2 7ckgqeXi9xhj1vBWxLvhsQBgcCWjR/ZDgpBnx/vxk590OaCZibRsM5+C7GpxP+Wobqrtj5szarw XzJlDbokajtR7d91NlLoQe0bYkndr8YPvdW5GijX/JCiKZtcdmvcmCxUZCzIewO86IwYrvpqdLm ocBnBiu9qsjMtbKae6TbOoU5z0j6RvrKvZyORsJucCLxf6N+KDVosDLCpXxbgfR9lCH9FYXMHkv KNevweAeT1wLNCLPqoF8afy4aXxV12qoXHN1Gn1EuARMc+bu0e1OXNCleDhFkLcc= X-Received: by 2002:a17:90b:3dc5:b0:3ab:f2a9:cacd with SMTP id 98e67ed59e1d1-3adce828e7bmr147151a91.49.1792706280419; Thu, 22 Oct 2026 14:58:00 -0700 (PDT) X-Received: by 2002:a17:90b:3dc5:b0:3ab:f2a9:cacd with SMTP id 98e67ed59e1d1-3adce828e7bmr147140a91.49.1792706279973; Thu, 22 Oct 2026 14:57:59 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 12/27] target/loongarch: implement get_dump_info sysemu op Date: Thu, 22 Oct 2026 14:57:31 -0700 Message-ID: <20261022215747.2479440-13-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX2JzcSX7HZ0Lr puik5hZO4iAcqLgXuMTdHyy1mOdxUyyxJgQrVeaKeC9w98dAcsHyf9ilryaM7ZsrN8EmZPYiUBA XCybKUxB4j5gI8Ui+6w9A3VLHj7MIJDN3V4DvSyUHW32hMzG8/usb2gIowpPGzSpiyUpuR1CA+9 bzl3cM6NgwLxNzYYlPNs8BLldxjcEXjVfuwIQz5xsEYiUh3Z2isQfoOwRiB9QlhX3eXGLtik4zq 7NCiFyIuzcZttVwH8j9lYzvUJ0wX5Z+8psgInqfpF+FAj3Xf3lJZQIUslM55AxKMhojS4x/I224 2v4OZtDmJgw8knwcXLGzdRRTT7QJy1cvsOviXs6wF0eEmQzKGDaZhkGiubtTZplbtzgZ/cO7Xvt UFnEmLcDUaRh3CkvUu4JhVDqg4AxhJG90kH5qo6Gto1agxS5ewULBnMpoal6h9fDT+21bxSQIDB h1avkywBXuj210/OGhw== X-Proofpoint-GUID: AQ1TEqaJa76Rl_0uJt3PAzPm1B3THzgb X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX+6/7kVngtHCh yCT3TsyFsyQLR5P3Gj2MbJxnuIqGzjQSLU+08XOm+Q5BiSmaArfLlJzW1ZF0zDv0Kt9x+TY5fIo 8picgA9osvLMVs0Caj42bC9/7zSeMco= X-Authority-Analysis: v=2.4 cv=UdbE26SN c=1 sm=1 tr=0 ts=6ada86e9 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=FnhWYSpmk11jPv6NQAkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-ORIG-GUID: AQ1TEqaJa76Rl_0uJt3PAzPm1B3THzgb X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 phishscore=0 bulkscore=0 clxscore=1015 adultscore=0 priorityscore=1501 suspectscore=0 lowpriorityscore=0 spamscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706342527158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-13-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- target/loongarch/arch_dump.c | 9 +++++++-- target/loongarch/cpu.c | 1 + target/loongarch/internals.h | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 9d84faef969..0ab2df7fabf 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -142,13 +142,18 @@ int loongarch_cpu_write_elf64_note(WriteCoreDumpFunct= ion f, CPUState *cs, return ret; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) +void 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; info->d_class =3D ELFCLASS64; +} =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + loongarch_get_dump_info(first_cpu, info, guest_phys_blocks); return 0; } =20 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..041d07442fd 100644 --- a/target/loongarch/internals.h +++ b/target/loongarch/internals.h @@ -51,4 +51,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 +void loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks); + #endif --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706407; cv=none; d=zohomail.com; s=zohoarc; b=m+LvCD6SYoXzG9vDt6jkCvCQs/hN1fzrnnflKTEbflPA99U5UHbLT2ZeY2RfyWufXPW0FzPL69M2EeSSoOmgMmnU+R4cwShS6aVCR4HWZOADvzTByM+JAlwF4w0DBdO20FMrJQ5D5huuFV/HKmRpgxGxovOAlMTmQWq41FCrFvA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706407; h=Content-Type: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=So3eS3ojTvij1FP3BADDLPesD2MmzaCxOK4Rlhd8KIA=; b=L7np6Avt9P1gbMYfrNtC65Nts7n9yfhSSPNUqccVabcYMO4kDpcYdA2gJc0AIDj8Gj74WZPm80QMuR3V5INh2h4h/1yEjOdTJm2aXcNL++ELU7ckXo0DONuFjwFySMwsgzQHUXzjnoJkSr3WNKy2ZpfsGDxxUh+SoqMe721dKcE= 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 1792706407287668.5582770590819; Thu, 22 Oct 2026 15:00:07 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nY-0001sm-Qx; Thu, 22 Oct 2026 17:58:09 -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 1xK0nV-0001oU-B7 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:05 -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 1xK0nT-0000Im-6D for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:05 -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 69MHtJRr861104 for ; Thu, 22 Oct 2026 21:58:02 GMT Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfnq0ha4n-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:02 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cd60a365440so135932a12.2 for ; Thu, 22 Oct 2026 14:58: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-3adca62e477sm648061a91.2.2026.10.22.14.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= So3eS3ojTvij1FP3BADDLPesD2MmzaCxOK4Rlhd8KIA=; b=kTcuHb9bJnHhe1/I 4s8NxCOhYKI3a7AYG0d4DaQzhleyPneh+stikptABvqDaogTU7ZwLgc0KOIOU9Fn +9U/j1+h2rTRi7V7sJOcQqsSPAxXiLhh/8OZKgG460w+bVtfoIOnA4R/3sE6TD9J TW1BJiCervQ57jEgAqthEAJqTPcpq8z+PTgEN9d8LSu5c6LLPz07+9YC2ATy0tcS knP10Fzcsl1cJF1vDuue0yhrg3tkO2W8tFUAZpWjWXdELxoSMjQaAuLGAou6B9K5 WTJzwddxu4SN0+u2SOztz0yGeMrSpKX8zzpvxTCPbSekxlFBOAftGfsm/b4DgmWl EiC9Og== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706281; x=1793311081; darn=nongnu.org; h=content-transfer-encoding:content-type: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=So3eS3ojTvij1FP3BADDLPesD2MmzaCxOK4Rlhd8KIA=; b=FBdL+jOWt4QxrdfBIPI9gbLd5lKW3i0mmXLx6B0kPP+wWY/djTBRRpkAOFOD6OpZVL /LeoT2p/YOh9/pxhvHvof3RdAowRPMUdbHGj15EpESf3sBt1iHu5RUwaUzW9AE/gVjHl 0mcXF4Czei4YSH+BvMUx48LUZgYdSAozo2oQ9SS06tOSemJEOIwfEHTb7K0lnLC6aAne 3OmbEAn3L7Onms6mY6Z2pDDQNf6hFMRZtcKdBBDeZyDPjC8z8MSxKdpItgZq/Vj26yP0 jN6RntDHKcZiC8dqGFDz7Q32jAXpV/f0tE1EZX9vO6B1gUV0Uw4RPL+fBB9TxqYKVzN6 6J7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706281; x=1793311081; h=content-transfer-encoding:content-type: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=So3eS3ojTvij1FP3BADDLPesD2MmzaCxOK4Rlhd8KIA=; b=i93rYRmwaGbf1XCRSYK4D6jLB7AeZfEt+GFRBw6bPE7i2sqDRK8De3ANsxixyTsTB8 3dN4DNsX5vfxDOvUaK18g8SbaVLt8TlHCZ4HBjGaSrE8snKU6/2em9RHAyRNjumpHQGL o/xFZTGrsrnnjWVgxIF51p9sfieSVhLZJMP42ba53UbujyWEiJwLOls0Z0V+WMhVaLW/ jDYrFAvh6ZbQ7Fu4y/ste9A+jq7ZIpdjFJGF+6b/ZSyqmBngy16vtYbcndGtJoOnu9p7 7IBwc+Hj2yaXiEYP/avCMhdL1UpOmWQIWaUCwPqYGuV1LVVOySoJTQ7cde8w6i+tupfP HnNQ== X-Gm-Message-State: AFq9FYKWM/9JQ6iQHpv5CFd9dpUplnxvpSwYzgGbPJko8wVDfNMDemsk gs1SQ6B8ggNmI/xRl2hXvOvBiC3+ij/OfAqE4HDlA58eqHM7bETtmN8+BLM+GoTs7Ct+grirb5w M0JczwzLV5AjMxDEwfdM7y2Uckxv6QDRRlr81jFw1/fAc7zW8jHuQ9rtTjRibPpCe1A== X-Gm-Gg: AYBFou2tQS0W5/znm8zj8M9wjxTImlEkdqPKRFtBAsKIKyExwXGBO1sQTdQMf8/NRpK eaqIGNlOL01/8Ebi7nDi+CO9fJx9mXsu3QhcV9LALDsycDTSwukiMGglGAsmD05c8XU+k0EuzO+ Pamrgj5mFFSUdudyJFWXyE1FwNVghi7GI7RU4TZTmata9vCxq5c0ih2Cyh5SubFCH+Kd0DO5fwF Mt2EI9eSYIuONDuhXMhikeuHZVdScBPKBwkEFTT0u6uEANtLkkqEybUyLAmSRT5o67oz7LCTPv1 6Yy4YwK6BrB1+DEk4/BLEfFnglcZNZqyqkL8nJZaLjy6qqHNQfI7yqLMNGgc06bCCenGKq5pBoQ grAbcfZuY0oHHneDWF89XX9kewmYhevOVoTUBVmtLcG2ioGY2z5lE39y3Wu3jS68= X-Received: by 2002:a17:90b:2f4b:b0:3ac:7c52:fb04 with SMTP id 98e67ed59e1d1-3adce7b5285mr130912a91.44.1792706281107; Thu, 22 Oct 2026 14:58:01 -0700 (PDT) X-Received: by 2002:a17:90b:2f4b:b0:3ac:7c52:fb04 with SMTP id 98e67ed59e1d1-3adce7b5285mr130903a91.44.1792706280637; Thu, 22 Oct 2026 14:58:00 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 13/27] dump: reimplement cpu_get_dump_info using get_dump_info sysemu op Date: Thu, 22 Oct 2026 14:57:32 -0700 Message-ID: <20261022215747.2479440-14-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: 0Dap5zBvFf-MiLA2IWPQkNAJDSaLM5HE X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXx6O/ckOJgxUu uHtWsdZTkNd9M5dsap5/qaqAOWgXt3rUPDJTdSj9yDpCcdu1dMPjNcN5yb7EGgiD74iWvWExiNA Vn29FAotk6SqG22HmQcFOfh9Uhzj7wHc0j0nEtRni5YXGAkHMTfqahIBt+hrgRI1fXIfkNjvFy2 f2NrFYXtnYFU5SpLZKHRIBWhua868I/3OYt8KpQ8RJzfpWlAtXSw6lprR5NZ4uPDh9XsHykj0QC NcEpob9slwyRSkvGp0BrVUmE+VzqDO1ez9XaRhwswpP9L+TmCF6N+B/YWCHG9N9N2QMDUAhNiFn oiuMsYy+x/PU+XiMdRxtNay26bWQqOM5MaJ5Spkww4yGmN6pB9E4McncbZ4Q8qJfS+5PD0S3CYJ YZz4Eb7d2z2sfGwyBrW3tKx2FmKVnUNocDdq5ShznUC7/1+SV1wd6594fK9c2/RsJumVTi6wx4V UWlkNFzFT3Z5+t80D6A== X-Proofpoint-GUID: 0Dap5zBvFf-MiLA2IWPQkNAJDSaLM5HE X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX4Gk8BZMwy0mv 5XWURa3SS8d7X1t70faMAFa9FHl7DdapdFhMuyffJzGuKl1KrJ0kPJ1T1109JG7tyQBySC4bbK+ WLuIzXynx1b0GCXM8U9M71AVhA8AbM0= X-Authority-Analysis: v=2.4 cv=UaHE26SN c=1 sm=1 tr=0 ts=6ada86ea cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=KrnFjeb05bSd2A7PV60A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 spamscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706407923158500 Now that all targets implement the get_dump_info sysemu op, we can replace the per-target cpu_get_dump_info() implementations (and its stub) with a single generic version in hw/core/cpu-system.c, taking the cpu as parameter, like other dump related sysemu ops wrappers. We always check if there is at least one cpu available. For instance, machine null has no cpu present. Heterogeneous emulation is already handled by the check above which disable dump. Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-14-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- dump/dump.c | 6 +++--- hw/core/cpu-system.c | 10 ++++++++++ include/hw/core/cpu.h | 11 +++++++++++ include/system/dump-arch.h | 3 --- stubs/dump.c | 6 ------ target/arm/arch_dump.c | 11 ----------- target/i386/arch_dump.c | 11 ----------- target/loongarch/arch_dump.c | 7 ------- target/ppc/arch_dump.c | 11 ----------- target/riscv/arch_dump.c | 11 ----------- target/s390x/arch_dump.c | 7 ------- 11 files changed, 24 insertions(+), 70 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index 0ecff682dd4..60ecde02173 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -1793,7 +1793,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 if (target_heterogeneous()) { error_setg(errp, @@ -1862,8 +1861,9 @@ static void dump_init(DumpState *s, int fd, bool has_= format, * If the target architecture is not supported, cpu_get_dump_info() wi= ll * return -1. */ - ret =3D cpu_get_dump_info(&s->dump_info, &s->guest_phys_blocks); - if (ret < 0) { + if (!first_cpu || + cpu_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; diff --git a/hw/core/cpu-system.c b/hw/core/cpu-system.c index a64e8c2b687..d04c6a2e6e8 100644 --- a/hw/core/cpu-system.c +++ b/hw/core/cpu-system.c @@ -130,6 +130,16 @@ int cpu_write_elf64_note(WriteCoreDumpFunction f, CPUS= tate *cpu, return (*cpu->cc->sysemu_ops->write_elf64_note)(f, cpu, cpuid, opaque); } =20 +int cpu_get_dump_info(const CPUState *cpu, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (!cpu->cc->sysemu_ops->get_dump_info) { + return -1; + } + cpu->cc->sysemu_ops->get_dump_info(cpu, info, guest_phys_blocks); + return 0; +} + bool cpu_internal_is_big_endian(CPUState *cpu) { if (cpu->cc->sysemu_ops->internal_is_big_endian) { diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index 456154df6f6..d80a6a4e752 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -701,6 +701,17 @@ int cpu_write_elf32_note(WriteCoreDumpFunction f, CPUS= tate *cpu, int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, CPUState *cpu, void *opaque); =20 +/** + * cpu_get_dump_info: + * @cpu: The CPU whose dump information is to be obtained + * @info: Where to write endianness, class and architecture + * @guest_phys_blocks: guest physical memory blocks to be dumped + * + * Returns: 0 on success, -1 if guest memory can't be dumped. + */ +int cpu_get_dump_info(const CPUState *cpu, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks); + /** * cpu_memory_rw_debug: * @cpu: The CPU whose memory is to be accessed diff --git a/include/system/dump-arch.h b/include/system/dump-arch.h index 7165a5bbd03..eccf61dc3e1 100644 --- a/include/system/dump-arch.h +++ b/include/system/dump-arch.h @@ -27,9 +27,6 @@ struct ArchDumpInfo { void (*arch_cleanup_fn)(DumpState *s); }; =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 3ce6ba1d68d..6a009ae1a66 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -430,17 +430,6 @@ void arm_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, ? ELFDATA2MSB : ELFDATA2LSB; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - arm_get_dump_info(first_cpu, info, guest_phys_blocks); - return 0; -} - 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 ed273708c60..edbe99d3f51 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -428,17 +428,6 @@ void x86_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, } } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - x86_get_dump_info(first_cpu, info, guest_phys_blocks); - return 0; -} - 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 0ab2df7fabf..853a60d7b89 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -150,13 +150,6 @@ void loongarch_get_dump_info(const CPUState *cs, ArchD= umpInfo *info, info->d_class =3D ELFCLASS64; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - loongarch_get_dump_info(first_cpu, info, guest_phys_blocks); - return 0; -} - 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 2296a0c9e8a..86e31c65467 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -250,17 +250,6 @@ void ppc_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, } } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - ppc_get_dump_info(first_cpu, info, guest_phys_blocks); - return 0; -} - 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 4c442a78312..578435941de 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -180,17 +180,6 @@ void riscv_get_dump_info(const CPUState *cs, ArchDumpI= nfo *info, ELFDATA2MSB : ELFDATA2LSB; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - riscv_get_dump_info(first_cpu, info, guest_phys_blocks); - return 0; -} - 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 b26f0ffe143..15299dd7a25 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -468,13 +468,6 @@ void s390_get_dump_info(const CPUState *cs, ArchDumpIn= fo *info, } } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) -{ - s390_get_dump_info(first_cpu, info, guest_phys_blocks); - return 0; -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "LINUX" or "CORE" + pad */ --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706463; cv=none; d=zohomail.com; s=zohoarc; b=ktj4f01STJPZeQ/NQqb0LZAwO6hx9z4yPDnUItaQTEWS3+HwGEdgSHkZhrUVEb72kOxoR3tNZCkyvMb7krZagm+yR60sHAcovg0G6QBYvEZc6NRU+AflDYMeVjL6W/Wcj1fEnImttHIanYWHR+Q+FsIx7GtpI+Skiy1lCLdIHJs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706463; h=Content-Type: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=aSMc0AMiM+u1xnNSxgniV0+w7ohgGUbap8lXlu1SS2M=; b=U19MWQdxbTBeuaQNPTumTTRk5b1oEaUA+FGeHDSJ0ohaYhYSFkdaqtSZcys/DFVYval+spfdDG7zhepxhYP081qqkvEZ4zDm72ulpBhxGaZWeD2g+G76mq1l3xRAdCPfz8ckgYUEHEnLvjlNxJK81ulGa4k/t20ik/Ai6EtXMCM= 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 1792706463432721.5119447059295; Thu, 22 Oct 2026 15:01:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nX-0001pG-O0; Thu, 22 Oct 2026 17:58:07 -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 1xK0nV-0001oW-U8 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58: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 1xK0nU-0000J2-7G for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:05 -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 69MIGYlT3579041 for ; Thu, 22 Oct 2026 21:58:03 GMT Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfqmbgqys-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:03 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cd60a365440so135937a12.2 for ; Thu, 22 Oct 2026 14:58: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-3adca62e477sm648061a91.2.2026.10.22.14.58.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= aSMc0AMiM+u1xnNSxgniV0+w7ohgGUbap8lXlu1SS2M=; b=ICurqe9MhW+aiBP2 QuYHn9UVGi//Ur0cFdITCJUIl/bzVM7cumcFj0KqmWXPeH+Yeg2uGsRcuBkQHHUD gtV/rgnsWzRACio7sdxZgvT5Dn37hImYOIATkVBV15fX839wyExGEGbGBDVfqxKT DfMd3sXcagktnfXsgiOjrptOlr/wRT2Cx/RipWvVPzeQbKAbAfBcPOvcWsIByc+U 9F7B9ggXrt6L2zKu5BD7OBXrC5C5OVH/NwwcQYhsKUaUUMuQLQDuu79Rh8orM767 zWtVNywWZ6UrjjUYpO6AvVFm0cipnIFDOMz5bOXaBBs0+Tq4/mo04qMnYk0GG07t m0T5mg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706282; x=1793311082; darn=nongnu.org; h=content-transfer-encoding:content-type: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=aSMc0AMiM+u1xnNSxgniV0+w7ohgGUbap8lXlu1SS2M=; b=H+Cx3NCRMgRAlk14Qg1zLWYMPCR+l3hxn6HDodZLHpTv3VRyfoy5k3d9T2rRorBAxx mbcJPhYUZhWyRx3nk0r8pMOIJfeDsrhSxRubgTwE3bsNQiLCXARqXVen6MMQVCz/VdD8 UIFuGYKCoynpSmqvYgoKiDfZEIxFKEWB1M2d9qtX4bJwRlI9d620bggu6GcecRr3MgYy PzIhZ4z/ezz3GOmVII2DcyZPEFlSnPZ4TfV6qDeTTC47GwATPqtYWBe2mY4mOvtJHs0E 7YPMPI75x99BYRdCj4s2j2QsrZYph5aA8kK6r+OMG3SCuvBENv0d0FEp61ZSZ5vnwXOi dfnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706282; x=1793311082; h=content-transfer-encoding:content-type: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=aSMc0AMiM+u1xnNSxgniV0+w7ohgGUbap8lXlu1SS2M=; b=rbAEUjJj1x3QYAzxEySIByPI/jmj8K94fQAZO29uWCYuT91U/e7Y51LkN5IW/ePwAD pIBsKaQ6LbqfvjM1b+JegAdHQNRlWuOGBYOH6z01xM5dSoPBVosuZHgeLHgRNhLW5C4g /zS0TZhic24lzqh1gSYbc4hLOMzl9XfTF+mOEaT2HT8PvtZ1P+2gbIF9xZ9KBA88+HLB nLUU5Gr0f4VCqY/KirL7n+RmQjj13n3fS+dbeTtssSZ03onNezjHOdOFqBdrm8lIWYH0 i5mAjfDKaQkrDiIy4Nx7FfJ90sf4xqwkdyBUkdSWEFPb2j41Tkd7ARveqOfBUM62B6hf +b9A== X-Gm-Message-State: AFq9FYIpuNqQyIE8bMep2LldPKtTg7x2bcHtMFovjriktFwMv1peuCyR RLiQogzY8xmlSg6sF7vnRJAwRtLskYo6BshrNbxB+/52NnfKMq0zpu8KwLOvssHwQArJRCXQKXH HtJT9QwZbXW+NTEvopFYe2klM06JEBDWMGjQEOi0GlltgKoJws4eG6H146p3zDpmF7g== X-Gm-Gg: AYBFou1FhcFFiWOYtLKCvWr3yFIu8l0JZ3adRMz6Qg+HW5VHgOj+QNpQzsYjvYG43PU t0RqqcDqTlyUSyTj0J6HDeDmV5jI5H5NgRRkv7f89u900GXMCDRUu2lsz6HHZRkaUBOeRAJWn4x NiPJoKuUg6gmSXNTbBI3X/lVGXG2zJYdNalUS07Aze6L5w8zthAxjjx2/nHLe3qPQzkaGhrYUo7 1lPEC1QbwJat4rLrAxnx0v2l5N5a8G8q748BxDKAzhM96ll1/76U0R0NZklPH8Hw/LMkkLpfxgA o/Hnbd5MAAHb73kz5zcaixv8dxyty9uNSVUCAjhX0rysMnXmBx9Ccx2b0D2IVK8BxQ+7+c6Gshq 6wsrbGnZoQeHeZdy8RDxcDI0hmp0yxA9+tjBkjAFMBvjrvEPSHhIjZa9A+sTcN88= X-Received: by 2002:a17:90b:4490:b0:3ac:1c76:61c3 with SMTP id 98e67ed59e1d1-3adce629c4bmr146251a91.27.1792706282147; Thu, 22 Oct 2026 14:58:02 -0700 (PDT) X-Received: by 2002:a17:90b:4490:b0:3ac:1c76:61c3 with SMTP id 98e67ed59e1d1-3adce629c4bmr146243a91.27.1792706281703; Thu, 22 Oct 2026 14:58:01 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 14/27] hw/core/sysemu-cpu-ops: add get_note_size Date: Thu, 22 Oct 2026 14:57:33 -0700 Message-ID: <20261022215747.2479440-15-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXxg9NHDoUO+Ib ZqBexGKDS2D7YhmsqknDiRUGXh1dLGwEp7WRU1moZvFsHRsEzzDkeoYKfeXuAWIF8lw5g28N8Pn yop+dPBfwx+2jdkg5xrFwYiAYCo7Tf8= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX5MT2ajaCS2fV 7n5zZnYIhQBevvVGHbf1EMxVC5Ntecp8ajA9sy4TVSprcUry200DvtlDDwYBKhGkbnn4shpXo5d ORhXUN85dYmvpPVtwICZTlru0BiirceMz+v1B76mk4cnr++xvYI7v2stotqJan3pqojvNAcT+2p 3MHCUFkOWuP9AYOZSAYNqiQMrUAC98P19Dd8yhW98/VIyc5uQMsu0Y+yeCNhDAWtTOcH10ZT9I0 mKg4icA7iwdkDZDhjZ/4ALNCTXOXkj+Xy+M55PKFLQImXtxwY/b26+UGfgH7v6ILj2SWpXpLCmV ET/nmxCSttUYKkjTPie6Ns7xab/tjzcWYxWECOGwapafyEygmSONkn+3XS64F99B3yvoF87CEjw UEM8AmjWvUzPkNseP8v0SDesYv8G35BVXmJlJIjK0wo9wzs2yM4NtbI5zyLX6S3N+PDFxIkREUD TNbBzrra2syEx+ghleA== X-Proofpoint-ORIG-GUID: FjU8CbsHs3Lhx61jtZ4eSbeTDhgtz4L0 X-Authority-Analysis: v=2.4 cv=Nt1E4MdJ c=1 sm=1 tr=0 ts=6ada86eb cx=c_pps a=Qgeoaf8Lrialg5Z894R3/Q==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=s0xbLSvG6KTaNPbiVawA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-GUID: FjU8CbsHs3Lhx61jtZ4eSbeTDhgtz4L0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 impostorscore=0 suspectscore=0 malwarescore=0 phishscore=0 priorityscore=1501 lowpriorityscore=0 bulkscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706464884158501 This allows a specific cpu to report the size of the ELF notes it needs to dump its state, alongside get_dump_info. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-15-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- 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 1d4a04ff361..4654a2a43d2 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -99,6 +99,13 @@ typedef struct SysemuCPUOps { */ void (*get_dump_info)(const CPUState *cpu, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); + /** + * @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. Must be set if @get_dump_info is set. + */ + size_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.47.3 From nobody Mon Nov 23 04:36:05 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=1792706534; cv=none; d=zohomail.com; s=zohoarc; b=Ck9aotgQShKYvaqw+cgoZZk7nwHsENRqT0FLaTZ3mj/euJZ9KG3ZctYEDo7xOnhuPUkLxpvOYsefAy0zR0NFA8nfNjl9k62lZvpFjZZhj0Vj4dosHH3ZJAXQak2BOtB/nkoCyZcM6FF9ezfLOxmTbshvEOllR6J3QlG6A82Xszs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706534; h=Content-Type: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=JYdzBN1HpEeM18lXBZKKe1ZA5oQSjyRefXXiOBbMnf4=; b=M0Iq4XT0+EHM5LLQMEC2rzdqAc3RCvxn7CqQNsZUatVzORsMgheERfGXUXL+tWwxp7xQMMhal0JnVvf4Dtz5AMX1iAaxFF2FXYZ40ZkD/0CSkATrH/xTCZf3kiVcrW9ZbgbIEh9Gk20QbaKMZ95h0bBaKMtufwJmzCBAD57d/gE= 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 1792706534667218.90957190651238; Thu, 22 Oct 2026 15:02:14 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0na-0001uX-L4; Thu, 22 Oct 2026 17:58: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 1xK0nX-0001pH-KQ for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:07 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nV-0000JN-UC for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:07 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MIHd4B1495654 for ; Thu, 22 Oct 2026 21:58:04 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 4hfqmr8q4e-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:04 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab2cb8d5dbso212174a91.1 for ; Thu, 22 Oct 2026 14:58:04 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= JYdzBN1HpEeM18lXBZKKe1ZA5oQSjyRefXXiOBbMnf4=; b=MEQuE8F0mn+ccp6z e3d/NuCpsYwBd/YFfBFZm0CCUTDm22SGqf6aWC1K/ULIA/ee5Q9YKt96d/jqah57 ZuQoKVZh+OOyhxUGMahKzp4AH4rYEkK3sx5S6Z3sG+KjJXrYKl9yPZlt36Vrwk5w SOgr5rA2XwJ1NgLhuMB9jFUzwgqFYJXBe0/4qCpBk/ksapRQv7DzCoHCht8s0rIf XqxQi2PCq+ggdCEH/b7cpyxoKDLBWQlZSYVcanPpBkrQENzGWx8b7EtnEC8wyQ07 xh9fvZK2fTZUHrARhhZPbw4tmUW5qYOx3MyaF4iVzw9D39vOiZnfoITlwArFiQWu dlZERA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706284; x=1793311084; darn=nongnu.org; h=content-transfer-encoding:content-type: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=JYdzBN1HpEeM18lXBZKKe1ZA5oQSjyRefXXiOBbMnf4=; b=fpuFAQqvV1wOag9FVsFJnCNP5aUrKKH8ek61oKVRxCe868YIOXH4DEhBqP9lSb4i0e bKKBOkDZ6eAh+emCB8Vx+bOx7ug4L6sXVA6LiQzb2UTo2Ym8rEmrTSMbFN5Ff6zfgRBQ tWe9C9yU77GrnNCPln3ArZY5x3rVWN6imYiFn+LjAMNeQpG1fyio1UsjGsF/URHfWM9z yCZqQT3pEyqJsx9yuR0WKpvuaaB29gIVk+PsOqFM7xkq+uEWhkwtYjiXtE3FX2uTNKpb ZiOKu4SaLKiCeAUX+9dwdMueAp3cdxoh68d83iqzzPbL0tx9Jx0ST/EXAJusteaZeDB/ ZTOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706284; x=1793311084; h=content-transfer-encoding:content-type: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=JYdzBN1HpEeM18lXBZKKe1ZA5oQSjyRefXXiOBbMnf4=; b=We7XPlQkpyANCkpXDSRza4fNkZh0vmomrzk5SXyoZB4Gz7RUUXmAeetC051y1onFMH 3Hizy0Z4qJATHlZt+CQj0SEb4gl8M/TR1Nom/0Gr4FqLao2sDFlpE1bQVQ5ndXxhahqA KG/1Nzt5sFMhLLWZ+TwLVIcsONzLNCX90FvrAu0ydflQNjmWxTNsCzN/XUUY5/TO+nXc hblXUrj/X18Yv4pfdfMTpDzG5sF/lxk4/o5pMjipPmpNTwuw9hA6E5vArmHByXDgKUak dbyRyfAxmLikpNNwoZVFmz1XWACjdnZabkoWGAxspE87rueNvb5WBb1AumyBGZWcmRid llYA== X-Gm-Message-State: AFq9FYK2H4zYE9aRLMdFlg31AsayJGun6OU/f6fjjtFpZgSdnY4smAd3 0izRJXMqH3IGORgh21XPYiAka8u2MfA3f4eaVQ1/628Gyq4OABUBt3mImCfScEOzcDL09EuX8c4 8NkEd+GK26grBtW7rQxve3dg0qTlDVA+qqG6eIQcWm1csAI/WtwWIFt8DQNuRFTnJqQ== X-Gm-Gg: AYBFou3Q4omo9wgnqU+rtrly9GD0wvzMLl0JsjjJyYmT7Fa6wbZtY30nStzWAbY7EZ0 Iilxw4Bgr51r6QoOgpkJvvpo6ix6Y+VKnQZ1wCnuKMFzZVsPYblSCYTeU157ZViZrJmHdXBR560 8+E4LX26j0Ga5YqpWk3Uw4UZla4jrL+56nYUfdgpD+K/yta+LquzRA4M5gecYYlm6MYtNOE+G4Y Sj37dMSqqqMRxWrROkcRJh28b2yeAewNRCYeJhs6qStR8tMIVNyU548EwzP1MzknAVu9/iK9i32 yWO+SlqC2OycRw4L5pzI8dp1XhmbYsJXlvHGD+gT8Ft3TEc064nld8UBDU66OLjx9RSmZEjNYFQ KJvaeRD43t4w3jveBc1ff8tg7dIXzbXGIL/XVXrhIuzzFAP206KTlBFmuY36kRF0= X-Received: by 2002:a17:90b:35c5:b0:3a0:e1f7:9b04 with SMTP id 98e67ed59e1d1-3adcdf98367mr185001a91.12.1792706283850; Thu, 22 Oct 2026 14:58:03 -0700 (PDT) X-Received: by 2002:a17:90b:35c5:b0:3a0:e1f7:9b04 with SMTP id 98e67ed59e1d1-3adcdf98367mr184988a91.12.1792706283383; Thu, 22 Oct 2026 14:58:03 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 15/27] target/arm: implement get_note_size sysemu op Date: Thu, 22 Oct 2026 14:57:34 -0700 Message-ID: <20261022215747.2479440-16-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: uDFsnw7MrRvtur_K1GsxBBWpbIpjdoT7 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX952TtqrclAqj rGMN2vuppUFJ3c5Lpw8egirRIJlz0HOcdTM24gHNODhVXu8JzHTdMwSjUPC02TP5/WU0qre30Xl OlfU4gJuYILiAxLOIiL4lTFGWO9k1EM= X-Authority-Analysis: v=2.4 cv=VNZIDNPX c=1 sm=1 tr=0 ts=6ada86ec cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=Vcmh8FhFDDEcUw5d5KwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX0ONxEHq0Wrp6 v8Km98/pdfO/r8Inva2dPIMO7iNIcWJTsmeMSmi2zrQMJq+p3jPxMbs8YtVmSGtxaB9ohnjARbm sd0Dk5PRBtLb0q0pij7/5FRuFVfTqn+6+FGSFOX9+ECovKLl0IkS9l5wfFu+IeYDYpG85sXTa4N s0B5w6SdnwN03OxfGWvxEqRR6rZFDxVRTywc/FWqPUCCfnLLuhrw81y4171V9hVBt1sDXKBt2Um u7p46tb2fCNKqyMVbzPwa7vK1Rf38i0hrQbEfDHVlJdVF9SzYf3yp57Id3uqZ78WGRBow23+W2r cR+ULqnv4X+0lXQ78CBzrWzbk3RsH3kibnWLG5WSAG3EJ/mwXzfHF8IxXPnfnKQgX8Gte68vGWP WKMvSMVs4qcRJzS9h9zM4qlpp4wm+MzCLejub3b34H9PMd2OAttuoBwrPViqknv+R6zRvhIBBDH ZN8VLo1/wbAJPb4NTPg== X-Proofpoint-ORIG-GUID: uDFsnw7MrRvtur_K1GsxBBWpbIpjdoT7 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706536141158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-16-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- 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 6a009ae1a66..a09f7c59db6 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -430,9 +430,10 @@ void arm_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, ? ELFDATA2MSB : ELFDATA2LSB; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +size_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) { @@ -450,3 +451,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 8c1c6e7c44e..06092d29b36 100644 --- a/target/arm/internals.h +++ b/target/arm/internals.h @@ -440,6 +440,8 @@ int arm_cpu_mmu_index(CPUState *cs, bool ifetch); extern const struct SemihostingCPUOps arm_semihosting_ops; void arm_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +size_t arm_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); =20 typedef enum ARMFPRounding { FPROUNDING_TIEEVEN, --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706409; cv=none; d=zohomail.com; s=zohoarc; b=T4luQjwQSd1oD2F6Dj0A5uHOPULJfUlWS/2S6knp1XW/lyHvzFZ/Rfg6idTbTq00CTPXi4QK6Spswm5+uZwvLArNdv40QR0ptJGdlKBdZkoZGHQLyRHLHy9zvVQaVpEy9rhxliHW9A/qMyuoSu9zeUtnqZgEc+TYPjewg8SKVQk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706409; h=Content-Type: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=U8UwPDs+juTfssBQH2MQi2Ngaod1WBLExfA7b+3K6fA=; b=hO690DXybnRg2vWUb86cF/DuSgqbtnPNidQToc74HbviQ1XAWANXM3MLChCyG3gdZual06j+1iUYRH4YdDRIRKRvVXL3W/VN45tojhhmXSlvUu4tYvTPIfk+/bq18BKGMUMSwpWJa+JMPhzi6OU4PSKGmeLdw57H8BBQlay61dA= 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 1792706409330354.92163765019984; Thu, 22 Oct 2026 15:00:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nb-0001w4-MT; Thu, 22 Oct 2026 17:58:11 -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 1xK0nY-0001sG-3w for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58: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 1xK0nW-0000Jf-E3 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:07 -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 69MHtSQX387578 for ; Thu, 22 Oct 2026 21:58:05 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 4hfewq4rd6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:05 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ac77c3ff6aso368536a91.0 for ; Thu, 22 Oct 2026 14:58: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-3adca62e477sm648061a91.2.2026.10.22.14.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= U8UwPDs+juTfssBQH2MQi2Ngaod1WBLExfA7b+3K6fA=; b=AGaszOP4ZKpBMxs9 PgS4HbJ2F+8EgauTnpwBy+EcdMBg1BVswo6HMCSgX6grown5YaDUenmVZUVs2xbp 3BIt5zVJfX6dDIWoybDnYGr+2BNSQhl2+VfPUkE1ThfzcMSO8zMGRB0rSntmVPSS N00VJ+bHv1De0RFc0vpnUxhHCeT6U9Z0+cyk6WBt+lPXAQMyHVps7wM4+hJs6UFK R8AYZrrczkxTqeEEqoaYXHJ1OgbwR7kMPS0x4oy8uNuof3uFFYHKT6yvp/7IPKfB E9hjgS5K/gLf4sGHAF1HqiMycOaVj1eYcU17MVcbPWHAMeAEiKYOqZfjFDounmJB d7dlIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706284; x=1793311084; darn=nongnu.org; h=content-transfer-encoding:content-type: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=U8UwPDs+juTfssBQH2MQi2Ngaod1WBLExfA7b+3K6fA=; b=fGBS7NFeh65gh5d4Rv9zkuYET15Si4pHUfR6Oo8e+5r+i/TK9KqrG394ZjIsUMLrCE NntlDqwUVR+TzNHKfGCQr9fGfs9qAtxNVo/ZO1YwPUNbdhL87pTVkOLoKOAxofRe+GyP fZcyIC97+hjGNi8GrC6ByBWxoPUuHLlJk63kcIIM/vAhHMKRFsZvvRftRmFApfI09jWA F5+CkaidNq6fz9Ala3bLnSezK83YDUdjC0qwiAi67SYaUmLBH3Qpfw+18Bqz0D0xt8zE 8WdBJJv6fWlKhWOwVQuOhJD+jgEFFSHsGgzDzTZfGVxoASokCLdZY9tAFJ01QU0de7C7 L/Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706284; x=1793311084; h=content-transfer-encoding:content-type: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=U8UwPDs+juTfssBQH2MQi2Ngaod1WBLExfA7b+3K6fA=; b=1hqhwD0HJSUUPs+4pxh/HI1qqLSPfa87LlLZDqHvR8VDvUCiYB69te+rmXw/KWQ6sE dSf7azgjCqDoSvKSuHN9xVIYWCV8+OW0Wvzaqr1BzzyoLxxOSeV+N6vdkIrkRkAW1OfX RvaS78XbdvyzIApZPrji2LjEjF/k2fwLt2sVhWvhTTF6H0umaAbW8WyCrG01ILXl9aR0 lwkm53H/GMOh6qWqFxQ+l6qBm+pbg93XmWFaZUdGnrSJL+TFSeYIFIOQpIWPo1Io0Uff w7kfzjYMvHkD03v24kvzgJnrOAV1NpDtSZHOhZvcGm8KUXssWG+jcdeTQcSsniz1D+93 i2Kw== X-Gm-Message-State: AFq9FYKRH+Q4s9jgfTihsJtb4+nn8USTtcXnzEXdw/EoXab00apG9VNV BwjOUU6t8dJdfWu1CnC5/7EIfHQYuEgOk0zciDqFuYgEvcfkYZEX7pPKQ0MUJlJNRW4aaiXX19x C92GgkirUWwfvZiUjFotXH+1/a9voBrN/fCjlvjHL5bESRDCi2P4dll1c4u5ri5YszA== X-Gm-Gg: AYBFou39kYLJNL1ALhWJGg+Uj/XVNJZXXANxrXiNIBrjFhI7C4SNwpWjxscHb08quMy v1OnWfISLosKd0AAXvoZ6haiTmgRmXE78ZcXPOT1sKGdcylpit6dRrIZQ7CRHL5XNCvJjEq9xw4 9fK5HAJg8ASJiDgnnjOjSmiZD11ZeikCM4lUj+63llXnDQyOb53FBkGfyd4kWaq2BMyuQlzks3h OBBlQCllaizXtZGfG4/RrlQz0obn/0RqrfP10I7793zGPId7/185bcpo6Sp9q2HzBKy/v6I9xkD sTWFQB/v2M9Cf8/R6nem8kkcLhIlsABvnCs97ethRDZW47shFl3fyziVw4mT7NEIla5oIpflctW c2T7Te9bp4LGg7scPX0HVwjrEVo53oqilhGm2TshWe3ZFBr0q7bC/WykRrXPhZiA= X-Received: by 2002:a17:90b:1fcf:b0:3ab:afca:1d79 with SMTP id 98e67ed59e1d1-3adce7a7ab4mr147347a91.21.1792706284492; Thu, 22 Oct 2026 14:58:04 -0700 (PDT) X-Received: by 2002:a17:90b:1fcf:b0:3ab:afca:1d79 with SMTP id 98e67ed59e1d1-3adce7a7ab4mr147330a91.21.1792706284050; Thu, 22 Oct 2026 14:58:04 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 16/27] target/i386: implement get_note_size sysemu op Date: Thu, 22 Oct 2026 14:57:35 -0700 Message-ID: <20261022215747.2479440-17-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: HdZHUtfz6BCutx9UfvpykFeqYG5d2Nhr X-Proofpoint-ORIG-GUID: HdZHUtfz6BCutx9UfvpykFeqYG5d2Nhr X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXz7VXvHiicjC1 mCY1+2PFQ+7JJlVVRlaXhMuBQcpc7v6loEDXwblKu+3kOkV6p0nUHY1zkKJszhOzZ65a3R7nM4s zDRjm8AaVaMGR8nHF3izTYX+MtyRm+Q= X-Authority-Analysis: v=2.4 cv=G4OJgNk5 c=1 sm=1 tr=0 ts=6ada86ed cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=VkRzHO9NBAn2Hx42XgYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX08SLhbmLnyZY 30PnP1Y2dTmPIGQ0JRwRWHvtOUnl+oYrmDHyQShLQ6ueFuOw81h0zyt8J76OjZf9ls35cgLdya0 vsmBz7Sxkm1643Iuz2b4EufdsXEmyKTTkFn5ZWrEzUYpSB73syyC4fNsHA/w3ows6H4zMuVIKDM YiA+hFS510xztKjETfaoEOgIy85WNhiQ8QHV8tCll9+D/sXANctbAE3hrUFNezELC3xiSC5mn6y NpdpWeDTGctS37JByQQBSEPaqCwtgJYySxWdmYBiz5tP6BV16mUs1ejmXuiZ8baRuCHLCUe/d4G aYPzY6k3RM6y0Ri38UzaR/MfJ0IGgNBP4oDNDzu9LvwQw1MtlNPDt42pMfd/Q6DNHh2SyPrlGU7 iS1y48zJYDyUZAJ2geyzcxLBZAPANq7XhAFm7xZfzBOhyZkqW4Uv2vHbGIZMKXNuEiP1EU98oXE qLrjij61RnZgxaElX0w== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706409884158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-17-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- 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 edbe99d3f51..270adb04468 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -428,7 +428,8 @@ void x86_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, } } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +size_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; @@ -458,3 +459,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 75bbd00bc7a..7f234cfd1b7 100644 --- a/target/i386/cpu-internal.h +++ b/target/i386/cpu-internal.h @@ -68,6 +68,8 @@ void x86_cpu_machine_reset_cb(void *opaque); =20 void x86_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +size_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 49f453bb011..dd9cd7c5625 100644 --- a/target/i386/cpu.c +++ b/target/i386/cpu.c @@ -10921,6 +10921,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.47.3 From nobody Mon Nov 23 04:36:05 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=1792706469; cv=none; d=zohomail.com; s=zohoarc; b=BWKcSaMs11VmnyhQL7xtzQ01JGl2UakFdin+JU/prfc4/CcwLcFyIzGUl2ZTxivnebgvjnXCvO13zKVJq4ZYvS6x/a16aoR8RryY4bh3nJkF8+f/1aRKF9G9eNf3f2+Goh362GV0nXyLLHu32Cmg4mDVnBUNhr2/AnovadAfoNk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706469; h=Content-Type: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=OqvmR4/RcOMjYvXBFZKXLwxVR48i0sWfkA0oV+oPUOE=; b=I06Dfbee8SR1mOe1BoAGWhxgIXExRhG5LzM3vybnvSfw1AxciIBoJr191SWib4TNPlQSX1lsAnzilUYQApqpjezxI8dQxCaiZNpAyv+sNPByS2KeVK4zLYnL40Zj0FEY1URPT5akzeC+fqU9n54BXzz73zalx46reK81sc70Wrg= 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 1792706469954273.16411008927037; Thu, 22 Oct 2026 15:01:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nb-0001vt-3S; Thu, 22 Oct 2026 17:58:11 -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 1xK0nZ-0001tZ-Ej for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:09 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nX-0000Jm-B4 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:09 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MKXI3O3413937 for ; Thu, 22 Oct 2026 21:58:06 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 4hfsmar8dq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:05 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3adc5b185bfso263281a91.3 for ; Thu, 22 Oct 2026 14:58: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-3adca62e477sm648061a91.2.2026.10.22.14.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= OqvmR4/RcOMjYvXBFZKXLwxVR48i0sWfkA0oV+oPUOE=; b=oxyJA+0WiVzSP3Kp JBoGQu/4dLLfqPvhPwcLOmE7EAyqkHAEO+VU/3ydJ5Ha1Hgz+OuIEULOhyMcVs1K h0vvMiD3giecMrAEGhhCNFgQW8UL25iF2utgqEhp6EU0dnZyMNdK8TUaohNZ8BKA n2KxfnKzBv663KuxtWZmd5eQPPr7oYc2m7KCK+aWQG2IApo4y/r/jqWK8EN8OzJL wj7/8jhGFTgu+RGQnbWaK5XYaoiltc4unLHv5jmS+eDjxF0eZm0uCLffzb9/9+bZ JYO37/5Xf3tszevpxnR2g+PKOV1QF84O22XLonyRaO2t763YM2H89ihdf8A7TiBx k731Ug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706285; x=1793311085; darn=nongnu.org; h=content-transfer-encoding:content-type: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=OqvmR4/RcOMjYvXBFZKXLwxVR48i0sWfkA0oV+oPUOE=; b=Wq8ZbZV2XuRXcKJ9M2A1gV/QH3eFL7iKWIwij4jGbj9qYrqHk6kQlxeMzKLrb+VT68 fm05GYb82PTm2xl5lSWjfVGg/CBDgUmxJXGfyXC3AQTq1S4CFRuZg6wrfPuN0F7SW/DY v6FqeFwNozm1RAOsTOmJGp8OL+2lOLw0hmKyxhfJg1aOYuNQUohUm8LnZm10r9P4aBP4 jlYK7ummgDrVAqaKVKstpG8L1tjfWe9/AikBUzjfiUFhTUOFIbMni5TrzbEqUhXUE74t Kqsd26Pi9NlhTgR5I3z58LHASqw+csh3v8HAQC5WLQZhN5AzUUG1BlmHqql+kIMUz0ay pWyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706285; x=1793311085; h=content-transfer-encoding:content-type: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=OqvmR4/RcOMjYvXBFZKXLwxVR48i0sWfkA0oV+oPUOE=; b=kU89825GCEYcO+0qEBprTYeopLTygmQlK5kaGk6nZuhLm3g8NoXOKjooYjRb0sij9H NadNcLYKaF0HPl6DJlMv7VXkb6HiwFRjNj8WhFAOU5TlSnjkzDoRbLCogrgVRk7YF6u/ A8rnYwYYFk7A2GpNj+jFXrXyiPtRUkuHJi9i8nfiqpAgwcR5hVbS9UpkwtsuFAIVHCfU QVzYZKqeTkj/tSp4FBk2/Ukpi1zIZNHhqS+Ubh7qQq05NryJnBRu7aGKC5oAlf4Js0q+ qg6/iuzmzqwhwm7+OMz+TXdraiWqBBJ2gXyYjydXXW5Xa3DJ8PL8GM95BFVk22tz3HJu M5Og== X-Gm-Message-State: AFq9FYLc3ElkdCOsOIBdA8MwNHwVxHCVWAmpiJNXxHKogtpsMgjj9KHr nuvcCiDBPRRyZ06H9tLbSgncYi1X+4rIeQLLAmKixOGKB3ThEDDnpaIdmY8CLTx9PFS6eD2D+2X IpoU4saDkSnxrMF/E9uqv5NVdPU3HwWBAVX7sveawasPgLE4BJ2w1OXJ3Rset7gaF2Q== X-Gm-Gg: AYBFou1YMB+oKr+LROsxLhzlC4uD4gWJNCjDyg8Dv9IdLcTjC+27AO2xSNJQvSwKcGf ylSRkUx3+zDaYmtYvQ1DSKYQs4jCHdbhiSWdBBA4J5xEchMc3A39NP7PS7DmHWajk+Cc7UW7rGY fHXDkwF1K88mfMND94cGHMWSud+Qy/6/0SNp71DqW0jO5Z5mJ/otPpWFQawUISohchq3Ub1dSeb XGvQkyYCqiE6cy5VAbWFzy1zlK/lUk7hgEcNRJ/qK5r3bsSpTueAy9mbF17y5ryreFbB8AW03lw qiBrjDcgdCD9jbuL2zLCPp6aM6aJw5D50+9sXlujYJwZ6g/KM+As4H1DhOrFxu3aAywz4xus4qW cYiaQXxtu6OM7/iVRIuUoT5uZtLSuFqIIM0I6wY8LpBdMxzIrSFTGp7YHqElqLOM= X-Received: by 2002:a17:90a:e7c3:b0:39e:6c6a:6580 with SMTP id 98e67ed59e1d1-3adce115bd9mr161424a91.67.1792706285293; Thu, 22 Oct 2026 14:58:05 -0700 (PDT) X-Received: by 2002:a17:90a:e7c3:b0:39e:6c6a:6580 with SMTP id 98e67ed59e1d1-3adce115bd9mr161415a91.67.1792706284872; Thu, 22 Oct 2026 14:58:04 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 17/27] target/ppc: implement get_note_size sysemu op Date: Thu, 22 Oct 2026 14:57:36 -0700 Message-ID: <20261022215747.2479440-18-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=V7LoQuni c=1 sm=1 tr=0 ts=6ada86ee cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=Lumvk8zKUu4O7nVSwh0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX+649JaADvxbU nFBwxpyOZMQDyNM+oeczaL158OM4jaiGYkUtKASx6H67clpUbNSzkNPQ6K0o42yE0i2MDqGNztM eTA3mHw6ecoxRoKkTPrlUpYbwRItYq4= X-Proofpoint-GUID: n8WcMmqrxV6ZYza1heryWFK4nWmxPyci X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX9Usb2ErLdbBZ RfqrzYz1w0I1zY07+EufvZxd6+Tqzk2isQvq+qomzFbTSzG/QQ3W7KqeD2AIYtn+Qe0VebzvNne IRwzSyOaac47Hl7ovP67xEv9CQczuypErDJNoqZPm8L4Ul1pzympf+dQXA7pBWDoRpzgzxlHlno c+5gjvp9ONkvQfweKuY7YyoNFBVIsYnNOTdEQrNAXXWrLmexVODQGU2PZslRiEsSkmn1+K7FUs1 ZDPRU2s2Mnb/WCrLtPGV1ZNH1u60DGPBYmB3bS3Y0ssjoY+HCy1c6lT8Zd2BK+eMfxvbc0UwRkj 8b7TUZWZ73svPOOXVki44hgXOvWqmpRPOo2VOlNVGzaMlo9mwycW2C5GTi3ucvqp8R8j9/NF1tO GXEBFN3b4JlVN7s7TxiUKZ2bgI90cF0DZblbFOT8ocpHZV9pJI7j/oEXWEZ2h2FQMdhT64A/Mdq C/pIO/SqNxXgA0Q+aAQ== X-Proofpoint-ORIG-GUID: n8WcMmqrxV6ZYza1heryWFK4nWmxPyci X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706471037158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-18-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- 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 86e31c65467..42e5cf936d8 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -250,7 +250,8 @@ void ppc_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, } } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +size_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; @@ -266,6 +267,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 02dc68fe2c9..b3ed57eaf73 100644 --- a/target/ppc/internal.h +++ b/target/ppc/internal.h @@ -327,6 +327,8 @@ TCGTBCPUState ppc_get_tb_cpu_state(CPUState *cs); #ifndef CONFIG_USER_ONLY void ppc_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +size_t ppc_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); #endif =20 #endif /* PPC_INTERNAL_H */ --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706479; cv=none; d=zohomail.com; s=zohoarc; b=OzwOiuffRVuepuTpeKKFuuAdeGQmBP87ZkAiAGh6WzXybJBeHiyU64jfVC2zfPSAeLf4aueQURrBc2k/n5urPe1WXt1cLh7ByMfYzaTZLE/PP/FQHpaGXB7rCxvhrSLvyWXGUI9fGku8QOkzpguewsmIAkmQN1/q2sedXt5Apz0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706479; h=Content-Type: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=+QoTBCCricDQsvtnX9DlX87KJqmyDMi6qGc7LzXs2vE=; b=YW4VC/Bof98hI73DQDixkXnrKvS6U2aeK7TgM6S28jn6oALLaRCEBx5sXM62UB60q1uJa4PsPsfJJzrS+7PIrIexplhEHgMBQ//5xHla70l5TVSVUd16Ou1igfGFAh4sYeZvnDlBda1G25z0Gt5KEBx0UT7agswWsaPQlYOc25Y= 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 1792706479573164.61551103143051; Thu, 22 Oct 2026 15:01:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nc-0001wN-D6; Thu, 22 Oct 2026 17:58:12 -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 1xK0na-0001uS-3H for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:10 -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 1xK0nY-0000KB-DN for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:09 -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 69MLIoQJ1369905 for ; Thu, 22 Oct 2026 21:58:07 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 4hfqmj8rc5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:07 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ad7030e886so318537a91.0 for ; Thu, 22 Oct 2026 14:58:07 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= +QoTBCCricDQsvtnX9DlX87KJqmyDMi6qGc7LzXs2vE=; b=LvXgsdEobFlq4jva z8CnqeViXOZ9T/FWGAbzKpr1sDvhyEIyQt2n+LUI3jEtOJU602OQtU4Adrzi+XXL Pp6b4xGxBPIPg8OWv/kCkimqSk7oJlNVh0WkjdkV5EYzgNLjZcBbKt2XIxv9IWO1 tno+MeSsZ/voY42a9YcCCrWsS3iTqqEKnTZ4M3WWKSDHpUP7fFzjYX8HFqaEPAA5 kcOSXL9Cd/f38KnbFEMJVrfAX2MFNw0tgyp6Yl+39l7wz4EdE444ed8A4v4zFYgv +854N8kf+uc9yv7VvoICVs5Zn8+bp+lJwx5+zHVoSqP3cctPjoM0e7v95OrVhJGf yCKd6A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706286; x=1793311086; darn=nongnu.org; h=content-transfer-encoding:content-type: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=+QoTBCCricDQsvtnX9DlX87KJqmyDMi6qGc7LzXs2vE=; b=BPWGVA0HwDkxq2ZQfOmEr6sPDFmXGRR7dQj2NcsoHG8RQu2gl9T98/+D96oYh/QAh0 DEqC5bUO97+GjWirdRM1vMGF3cv+78zzDUlWvF4UiwatGId8qLRHA3cH7HAvFmFuo4bi fqoZFCXeitNBse9K6xh71H0GgSIpNbzVCRdcm/Kfrl3WwHJzXxCtG/ss9Kzr18TbzSAA VKz58QIpeklcUYcWg4LHhzkRSI2xNY2P4BWRWVH412Hsuzrhy5wRsmApJF69MpvTRI6V ApwwLoZljDrWuVPwmWF03xbu2CETQaXYCvOoLQCofCLYkHSgDBHujPt7uTeGeR/HQeCR EjKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706286; x=1793311086; h=content-transfer-encoding:content-type: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=+QoTBCCricDQsvtnX9DlX87KJqmyDMi6qGc7LzXs2vE=; b=EzM5x+VKnX/Wb52FiTtDsX5oC8YUIt2oD4Lhmo9jcEcLLWJF3WPlfQ3/KVy4GCsO4a dW5EEZ6akWZYTWoBDsckrQ5q3WUC8uSGiXegZuIdZISDlyBFXCP4dY48SIR26yODr32l F9J3NzzAWnSYkyPKO0wGP0FyUcBgSdkmQLrtCa3UAjjpJbCmHVbswWJBkPhDll5PrJ5e 4jZUXQ+fSmTCYbfTxqChpAQeudLFdQQWvJ7YrD3HHFtt3I94AvXzIUHybYQcjr6RspTr rJP9IevUAYVOBxqbWFmL4L8qW7ZjOvn4mml8Gk0A+26YNOL6DgPa+xjdCEFb/6K1epIo RU1Q== X-Gm-Message-State: AFq9FYL14p08lNeVFhNRPysWrqBkEnelKk2CVaVODi60+0SNyUM6RaY8 gNnDQobIwKOmzd1ImVi50YQJtzpkgiWTq4fIxh8jZJwLnlwVGrEdqFoEKtVEdzALcm7YYwrJYVk NXxEVOGmIDhKFc3uwSF6uUFraYdFw0NKhW1du8SkszA0a8uJ/EGfZSj/z3eO7h5K/vA== X-Gm-Gg: AYBFou37hvuGcY2APo/8YKVo+egrKpcu+EyGh5sYTkXvutpNw1zLPczwACyASigGWYW 3+Jcrotb2H99rmRiCxdHvqxv47vNgnW8mMmsMxFZjYVkcoZQcglIDPCgxKr+RceI/nGYAyc8BUB HJ2qaBJaN8hNdgmzv6iN7fuJsczZEx7RH4rWh0mYf1Wrr70aE34gdMWEscvvDXf2z27cGmTp66x 7bqGRQsBGCtIHDdUJV4B0roTYuqolpSqmupccT9/unzoDznpRIiWY5R+5PO4P0CJn9atllwDpWg 30wEdHbpLAtgQl6u5md5UHUZE/n/a/MnlcO12g5dyUSKbQPTZQgoUrf49s7iU8T+iYWM2xFNRSV rmKQdVKph3vonMo+st50XLk8WXn0EUfRi6gLaNz2sAyGY9Sn/6nMf+F5A/i8f1zw= X-Received: by 2002:a17:90a:d610:b0:3a7:9adb:2a18 with SMTP id 98e67ed59e1d1-3adce1755e3mr196105a91.62.1792706286301; Thu, 22 Oct 2026 14:58:06 -0700 (PDT) X-Received: by 2002:a17:90a:d610:b0:3a7:9adb:2a18 with SMTP id 98e67ed59e1d1-3adce1755e3mr196090a91.62.1792706285790; Thu, 22 Oct 2026 14:58:05 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 18/27] target/riscv: implement get_note_size sysemu op Date: Thu, 22 Oct 2026 14:57:37 -0700 Message-ID: <20261022215747.2479440-19-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: frPpwUz_AzoN5P56QlxHWGpp-d-afHKE X-Authority-Analysis: v=2.4 cv=cPR1IVeN c=1 sm=1 tr=0 ts=6ada86ef cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=WHTxxU84TY79vzyxHH8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX2W5PLK6S+9jW r6advuKA9QnRguyY1WGK7ijMEY46qO1Z0PmIrUBXR9QDG1Eg9krwdKQYmJacEgLP2Vm399E4Fs0 2rDEnZgRgxQJg6k8Wu/bJqhVnIdk4LM= X-Proofpoint-ORIG-GUID: frPpwUz_AzoN5P56QlxHWGpp-d-afHKE X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX7Nu8qTCA4foF 1pudmdnWrzqvmjLVcukHyCEMwixuLh33FDTVXS2Y9ruG8yEvpGGeKuWSAm/7vXcxl6UNBtwCpR6 yZUsQBxV4a5TZ/gZtCOVThNe8EtXbvpoaGNVIk1beMB9QmbUo9Purap6HDbrqhx0ZVGzWbIsyXK 3psTCZ8RvAkcOy0FV+5ubikKLbpCm5/50GW9BWhZVaCVsl4IFKZEmHDGr6Z72I7FyAw6+UnmKeF 12cwsqeQTuBQkIAzNrAFFrClac6dFfnjTlUBCG0fwpg+lGFKCXsrlga+UAK8eCGxswraw43cnPM Yqix8cn/rrxe4GrXCQ875T7EaxYeKuZAfexvTZy1X1m7VYAqc5NpVBGU4SgCkDGYtgotKe7wtzw +W1g7dSH30+aR+WKHnwIRTqKIMNEHDpSBpox6/dteJaY6oGiHi/FLaPlqQT0mzNi94Yup4SoYVK Uv3ywqvYE1F+69Mv+UQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 lowpriorityscore=0 bulkscore=0 spamscore=0 suspectscore=0 impostorscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706481167158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-19-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- 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 578435941de..06b66a56855 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -180,7 +180,8 @@ void riscv_get_dump_info(const CPUState *cs, ArchDumpIn= fo *info, ELFDATA2MSB : ELFDATA2LSB; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +size_t riscv_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { size_t note_size; =20 @@ -192,3 +193,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 059aee855df..b202a4eb6ea 100644 --- a/target/riscv/cpu.c +++ b/target/riscv/cpu.c @@ -3105,6 +3105,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 d2993842a32..9f1dec6748f 100644 --- a/target/riscv/internals.h +++ b/target/riscv/internals.h @@ -209,6 +209,8 @@ bool riscv_cpu_has_work(CPUState *cs); extern const struct SemihostingCPUOps riscv_semihosting_ops; void riscv_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +size_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.47.3 From nobody Mon Nov 23 04:36:05 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=1792706325; cv=none; d=zohomail.com; s=zohoarc; b=TbQNpHor03MmaC/WBRL1M4ANu5jjIU4X8IhDieiu+pmH3CEU5oEtWWVUMeFQOyliUZAI8AD6Vnge2Nl6bC6320U08RWNkkPDYedB9IUoRrrKiVLGdyAxNNpRXxhD6njnzZ6/InNscEvfD5m/xZ0mDBKU4MiSYPV/VcIq56rUAj4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706325; h=Content-Type: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=ubDfcbqAarQmkZyx6uMPXMSuMLG7AFg4lOXxHY4wz10=; b=WydHHPME03rSlpMLrnNlX8QytDZZ9ZbS0SWKD2KFk4GdQtY6V17MC6C0U3pasBpSh4hayXvUhPFoJBnzWdY/03PyIXF5urkDh1eJ66K0WEcMZncaWRWjKizEMpZKW9esmIGNxJvfmzEwHFFPP1PvDdQUNSlKpGYS/ItAF4dspHU= 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 179270632575247.91310281202573; Thu, 22 Oct 2026 14:58:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nd-0001wv-DY; Thu, 22 Oct 2026 17:58:13 -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 1xK0nb-0001vv-51 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:11 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nZ-0000KP-Cu for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:10 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MKWlKf3413259 for ; Thu, 22 Oct 2026 21:58:08 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 4hfsmar8dt-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:08 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ad91787a1aso189553a91.1 for ; Thu, 22 Oct 2026 14:58:07 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= ubDfcbqAarQmkZyx6uMPXMSuMLG7AFg4lOXxHY4wz10=; b=J40P8BUiP1qwad3A gxKsO0iUdTmVtc+AWC/LZC4KY4Xvy6aGXQ/6AWHNvkDxwpiVZ9INoOoZLoCUQxLc hKaOBGqg4b8wK34tz+bomRxM+r7DYvIYndmkTbqK+bPCRwQct1/S0BltdiOMWvO+ Yk0GjYIrFW/gSdpFb8Vr6AcAMyAq1cpFPHoLyIxlHopYjZBzf3KT98KPvd716Ptn +XdzHlTd3I+gl9QU5i+rLm2HAH7XNvmf6xA5iqfjv7nHpTDdEnK8o1D/DK/AJHE2 2l8k41UjOov80qf8yCCpZwX3wJAz7lxuemqOLImoh15RMOe8a3kJ12AjZyfEc2OR Jx6zKQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706287; x=1793311087; darn=nongnu.org; h=content-transfer-encoding:content-type: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=ubDfcbqAarQmkZyx6uMPXMSuMLG7AFg4lOXxHY4wz10=; b=Ewr4BkjHPPxmonw1hpHsj/uLr6bFUnu/R65EWKdvAvSXJEJ753HJgaYk35snPdLbFt y+IgHA4tlLi0ChwJu/QVlKcwz0/TuhDA/3HxaMcBhTUag+NyPBXL3IXWDC1/iho1Pv6Y GShjRW5IaUA3NuS+Z0esLgKaUmY3Tng/pwSI4EaRMXGi7iBNFW/f80D8xDkBEyhlcUBX BzmQsdXXaqMkF/wp/goZHpfddBXNl4cVjq6HGIL/5CGDwkaJFJebLHK88ii5P2g1Msma qHcKf7CLnGArVfhOYmeIJwwUCZlX/z3ELGsxl6U6CVwDIqlqeb/76zMZfKyl5Lb8vi3X Cihg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706287; x=1793311087; h=content-transfer-encoding:content-type: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=ubDfcbqAarQmkZyx6uMPXMSuMLG7AFg4lOXxHY4wz10=; b=z8cumC/z/eZA4M53wQF3iczts5sQ+IujcVZtlLAuW4X06RMgA7xZPKkk5xMdQp+g6W 6CoShVGKFitEaYu2TGUvBTiOHz+02oeVDBmXG5lPTDCLsaEhS1aX1rEGO8Nr79iOPpzQ uPtsf1W98jEiQsQdKLF3j+qiLSewPCkWUrxJLDbLb/+3dWmjDsMVeqz+R+uOyBxHApjQ XnKpm83fRKuWsNuD4G2VXaU5rVyuPmRiKuAms2Sr8aknvFZrtOwjlPFTjIM7y0Fe4AKX 1B2J/KUjkruIrSFTC1e+f1aG1F7TkyBjJN75sCW/LQ4cP8iP3gJVSSSIJgbCgqHZLDBl kqBA== X-Gm-Message-State: AFq9FYK4BgdFOPf1SvyNZSCmWLn5gQ5gwjTaQ/Xx+89HYAaVx4SEz0SW VJWN3M2dM6FPCT3CHnmiGUSm5jskXGxQ8gGKwi2YAsDRAsj/0TX1VKYgWXOVbWzqJTKtySCiT7O JTjMJIQq53BEJGUmoF5yBeJ5QpQblWGiqH99NrssuFfvKNT2GqKC9GH83J/3FJ4lgEQ== X-Gm-Gg: AYBFou2xE/2+mMYAUPsiBJAO6o77OBTL6WV3TZFZzMpdNmJnBc/+ETFSKMENmisykK3 waQD1AnBM5eNAlVXUJioi7Rv7pI2u27mALYCd/FdnktS2xvMm5yveKfgr+6Uh4lAq8J+VaQidZ1 h/nWv3/rQo/xekSE+MFSppiWHWGbjP5KkEDE0UR8Ybo3AEGvaUnqWU3d41TkZvyHr87AtFEyVi2 yCWRKqEnH8eYR/HAi+KsIoa3Eb2+ynhoFjdsNVj/DKubetoTjh/IFetLRTogSkRiz4ZYI5mN7s4 iYiMELlC7A+cqmvh78c6B1Kn8vshQqztSzpybbHJvvwfy5rmnwHo3xT96gIxeFYkhDJYU1q8hVD +0GpWEmTOx1kuMAmejrguKL8Unk8PPwM9ZfFlsUFIjsE1sYTa62vmD0ezVNuGYw8= X-Received: by 2002:a17:90b:3d89:b0:3ab:c80:936f with SMTP id 98e67ed59e1d1-3adce5e61camr139360a91.16.1792706287319; Thu, 22 Oct 2026 14:58:07 -0700 (PDT) X-Received: by 2002:a17:90b:3d89:b0:3ab:c80:936f with SMTP id 98e67ed59e1d1-3adce5e61camr139347a91.16.1792706286822; Thu, 22 Oct 2026 14:58:06 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 19/27] target/s390x: implement get_note_size sysemu op Date: Thu, 22 Oct 2026 14:57:38 -0700 Message-ID: <20261022215747.2479440-20-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=V7LoQuni c=1 sm=1 tr=0 ts=6ada86f0 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=EDlH-CkopuZvdY7HuOYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX3RlsMzdCx7Ef 8FSu3NqrhkMWO8GlfsXD9hiJmUbxI+l8cwXSnAsBRiff+hNUU23kyC6mNYR4qNTSB1uYVseF3re s14goR0ApT7d9pxBf+aXTjcU89PMhHo= X-Proofpoint-GUID: mo-1so5bdeWF7LrPF7MOAVVSc4x5xqpk X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX+iQO+SkoR+7b 547k97EbsOFyD/Xk/+lG+yHyCKo99g9s/MPCfMDx7g31OGc0ggIG5R1sdZHb/vd6YQsDpz6vvhD I0PeUK/gmCbfW3JNWZtyqzGkbX22c8ZvDs//sJFwbqpa4b2Z/wOajWtW5oRS3LojCE0WmYV7dHP zSmwXmrPc2cLtQ8BFObvkmqNUALYG9F5H/vqbbWl2NQ3C61UpPRuk+Kpioc9i1GB7A01XutX6d4 jeUy6JDrR+mrNI98JCHhxtu+2T6cXp36zCscbQFxxXyNmNRB2tjLnzPsnFojUEbkUPYe5d48hXO HIwXaSqCOCMUPHDKchhNyjBlYeyA215BsB7yCB94EB1rtp6Y9OSZ+Y92UBwVaysoiXoZ/ao6Vjo FD9Kn86uo88IvB6GIpCJAmIDKbDzbuvK++ZgEnKmxRl7EEUwBM/AUAJrRGPgUGJx+0lI9kiRsr9 IYM4HCChhbKJCmCx63A== X-Proofpoint-ORIG-GUID: mo-1so5bdeWF7LrPF7MOAVVSc4x5xqpk X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706326244158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-20-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- 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 15299dd7a25..5092835afc3 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -468,7 +468,8 @@ void s390_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, } } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +size_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; @@ -494,3 +495,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 5bfc37fc46a..9dd2243d486 100644 --- a/target/s390x/s390x-internal.h +++ b/target/s390x/s390x-internal.h @@ -252,6 +252,8 @@ bool s390_cpu_has_work(CPUState *cs); =20 void s390_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +size_t s390_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); #endif /* CONFIG_USER_ONLY */ =20 =20 --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706388; cv=none; d=zohomail.com; s=zohoarc; b=ezs/vDrQB4WeUy7kvHpC5tOhVsqugOci6v07R7rhJZC/dDIkay0tYJaoHy6caUAaBwkQcjLbG0ncshuP7EN521WNvj6ZdcI7n1dMP+224U1hGXviAMbnQjUwvnVqF/cpPfbGiJAkuYqqLqXYAf0ZHu9/wkT2X6ab5YbExxOnfw4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706388; h=Content-Type: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=XODZhzhla/ejts48iW/V8//dmU78Po3MFS1W/UNJ/Ps=; b=IsWJj4bv8JSD/pXKFU4C+bywjGaqcIm7BsCfzYhKjfjvpSO4MXka11y/RZhaUL3eYlMhy80dRuTtgXAQTeinkjYDtvySRugq7a342z3hxMq4V793AAsVeFGt7sFdyYcW482AD1aI8URG4fnAnY3974bYSf4OUnkqNKh6s/Zzzsc= 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 179270638885375.73311072731258; Thu, 22 Oct 2026 14:59:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nd-0001wz-NL; Thu, 22 Oct 2026 17:58:13 -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 1xK0nb-0001wA-QQ for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:11 -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 1xK0na-0000Kh-6z for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:11 -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 69MHtOPb861296 for ; Thu, 22 Oct 2026 21:58:09 GMT Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfnq0ha4w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:09 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2ea0fe07201so1394525ad.1 for ; Thu, 22 Oct 2026 14:58:08 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= XODZhzhla/ejts48iW/V8//dmU78Po3MFS1W/UNJ/Ps=; b=aXE4wkRkKsZax1vz eNgYLuFb/5RQ/76MOFPUp7s2BXcc3toeWS1OP1NWdILGsq5LUwqyfHwo6C/XrNx1 Rtp5MzqKxyrDURGZpBNFOh40kw94FKE5PJwULkLq6bB1Ey/81mON3DmUOKqTX/2Z rQnINvDtX/4/ebbnn92YGUaj1W+L4qr8ltDIzcTVbBFrrUFA+sXJgYMrxSRuazwk RmIfjvsNGvD2hClPODgZeC70MoJp/TSW1ox9Uf4JLLUCoKilvRl2M0AnjK9vew2D ODsfX01uKVFbE2uiOBwzWaoMQUQcQLUA14x6p7NaLhO2cjPoFZIsFbKesEdzSnFF x/L28A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706288; x=1793311088; darn=nongnu.org; h=content-transfer-encoding:content-type: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=XODZhzhla/ejts48iW/V8//dmU78Po3MFS1W/UNJ/Ps=; b=FkfSOwI6XVaRDWLFCPBmQzYmGAF5BZCcr5/Hd/LmbtpuhOh2AS5BBgY0ieTBz6rKuw xt367MP3Ucqkaaq3MzX5oNZ3SLXNzFubeYQcPMb38HWfNYfkPV4rElndG00o+hdUTvt6 jFrVB5UmGVykTMbb9gQ/c5DY5rhi38Pmnec2rJPHHOZaiEkOws+0Equ3rGoQUh1VUCxT cNNLZStMT65Vmrt73xL+cEQn+INQygLJJzWshwZUJq9GCrg3zTsin6fbNEWB6dFE6gLF 4kMcBWVI/JUPFyKxIVW/uG4wOmhX/exfFNF2cTYuh7I1180IG8ltqCCyVYIvul5l50IK 8MeA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706288; x=1793311088; h=content-transfer-encoding:content-type: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=XODZhzhla/ejts48iW/V8//dmU78Po3MFS1W/UNJ/Ps=; b=mKxWIAr+ftb9D57A9QyKZFB4nrw0BDW/YiPyJYRPqPNYfgCoghlLY/r05IKDMxysLD YrpSO8r0h7SsHPmqEgdpPPeu3jX3VMoavMl0VpLhf99xEoBoP22+2s4IWMj2qjmaH1Ep cNzJA+CXuxXcznuR9Yb2W+Ozse/A3XCoAt3q5cKFrmgpSWP+rfswiOIDSl1ytgO578Kk JY9by9jK8XLkQL7IoBZQgcF2yLjRIAK5dTYm7v748ItJ4Lae1uxXfBSAVwUrHQ/hdCsI Z+H+kCj8Ll085qjbGZNVRb/687iJ1wmdGi3cqxPh8mY9yBCIjKven0t9mzAPaRqWKLku TmHA== X-Gm-Message-State: AFq9FYJMgYErZXIu9IV5TI3RZH+y3KEDJ0ZBiaGmBbFik89l13LSvfxA mFnNO6CmVrWvyJPfbq6tTxDga/vXC7yEvOu9QHlcMXaE1hyJOhN4BYUVuCsH9oMIedzG/03ap9j wsQ39HuuLNza6cMRT4Q9bGAZlzw7ioreW6x0ee+vnbyXssIr09nPuVBjWrxuTKudjiQ== X-Gm-Gg: AYBFou2syQoYBo90Koqs0q2I0s0Mq0V6zslAqBfb1lYFR6vLRqf/8TK8CjRzS9QzORC 25uadeNGvGY1z1wPJ65T9UsP0BUbPMEtI6EX3etqu/t1ki8dwkhkedp/lL/pfsSnZwA5h1RVZOU sGQ+Mip6QDo6XPy3Da0x9idDX3lCc3m2GMXlUIg1mYB9NMGKL8aLJD3UejmSmlRHMEDbequlUjH +VIkK3GZ7GPg8Mlsr1HVGfw6/TcLAtrvnP7h8sS3Sswaumpx6n0QayphmHGe/Ne7HpGBL2+Sqml G6wXqa367ffYLQePU0B8m0+gEiLwa9fMdiq40+YRf5QMhsmQioN+oFKWRMq8RQwWXGd8/R+oKG8 4l9rZkbbP8fHjwi+MlMoh+Y8FQd4hBguh8qzMKfLL0Ubf42aIjOuYxb9dcol6GWs= X-Received: by 2002:a17:90b:1dc7:b0:3ac:adce:60a9 with SMTP id 98e67ed59e1d1-3adcdc95144mr223602a91.9.1792706288128; Thu, 22 Oct 2026 14:58:08 -0700 (PDT) X-Received: by 2002:a17:90b:1dc7:b0:3ac:adce:60a9 with SMTP id 98e67ed59e1d1-3adcdc95144mr223584a91.9.1792706287631; Thu, 22 Oct 2026 14:58:07 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 20/27] target/loongarch: implement get_note_size sysemu op Date: Thu, 22 Oct 2026 14:57:39 -0700 Message-ID: <20261022215747.2479440-21-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: KjTkeeW4OV0o9L2lnFr-Tv65BEsOIGBn X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXzkichyXy9jVD kwoFggy6evX9dqjMIkFkZwbaivyzOoyxRggiOE9KrET6dNj6LCw4MX4ISfG/tesM+SQgBeYCPO+ f1sk9bgnpODAJm+nIKwQIFjUggrTVtJXVgb5rvASswHblY1j2axlDHTdZT5nE2kn+WVim8QGKNc r6KUtJVfMvtGaPHlQ7FgjHj4qDrelsiMJ7nuT9R2LtOZiiuS9PLT733vo091volhOkIFVmP11Am QsZotWNVgoaOeQSOkxuytP6uSLjzKdwYFN3rerhxFnBR+K6HYMu8zoWRu8/8Sx9dIg4SinwZjwk gWJTrK8THzx9ekhoat3AE/aZX29xLay0lkAm2F+gDI6mjLDaIjOdvIbynW9lgwhGrvX8mgm8DRb FtUfyQTbCvLTm2yTLpcvFZPSaIAVs5eBSdrKvXstBx3o6WM9XNO6J7wWImX/5i+TkIMdq1k3kDA q42V6aLWaYgwvi3bnlw== X-Proofpoint-GUID: KjTkeeW4OV0o9L2lnFr-Tv65BEsOIGBn X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX4BSjkS5rMZ3u YtqFHUalboHev9pXgOqzAdvj1K1VvJbWDj9N4zG7dgcJL52ZF813dpy4ZDbvdETRaw1c0WMC4SA IbUdTaicCKdGJYi4lMj1mRCyQuC4cDM= X-Authority-Analysis: v=2.4 cv=UaHE26SN c=1 sm=1 tr=0 ts=6ada86f1 cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=VoVa20T_UCIUsInyF4AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 spamscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706389413158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-21-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- 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 853a60d7b89..47036105e0a 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -150,7 +150,8 @@ void loongarch_get_dump_info(const CPUState *cs, ArchDu= mpInfo *info, info->d_class =3D ELFCLASS64; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +size_t loongarch_get_note_size(const CPUState *cs, int class, + int machine, int nr_cpus) { size_t note_size =3D 0; =20 @@ -160,3 +161,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 041d07442fd..952c98f74ae 100644 --- a/target/loongarch/internals.h +++ b/target/loongarch/internals.h @@ -53,5 +53,7 @@ int loongarch_cpu_write_elf64_note(WriteCoreDumpFunction = f, CPUState *cpu, =20 void loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +size_t loongarch_get_note_size(const CPUState *cs, int class, + int machine, int nr_cpus); =20 #endif --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706472; cv=none; d=zohomail.com; s=zohoarc; b=Kps09/2et4tSZdAWWBRr1+KDiB4ycTV4HnN5OzXagfMga95WJJjWTznTfreFtEZ5U4MMXZfpQwkK+BWQKg5cEesa2w5nLpk62AICpweHrPWyfZp5jniyI2+esoP2dGExi8pc33vIJS1woyTD+U5GNSDb+9RP7wGyjoLs5RFNRIo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706472; h=Content-Type: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=k57FEczv4f3kffgchstOAbae9IFWMFq+CCHW70t44/o=; b=Qek9/YcUlfvPgIpqmg8Ii8A5s6sH0peOdZgULLsIUEJ+0T8d5DEGujxCmWZP/xCmYY98+ipMXZJguU4MCHardiz9UxnJEO70a1/+LEIdPy+EYH0W8uXBzaJyyUG3x90WNqLgVw7T4gAAcd6SGkCkKb+4bPxFcm8YpdsB91dljlI= 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 1792706472004407.6277679476634; Thu, 22 Oct 2026 15:01:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nv-0002Mr-0d; Thu, 22 Oct 2026 17:58: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 1xK0nn-00028Z-Au for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:27 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nl-0000Kz-8o for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:23 -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 69MHtMCG861122 for ; Thu, 22 Oct 2026 21:58:10 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 4hfnq0ha4x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:10 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ab868fe362so346269a91.2 for ; Thu, 22 Oct 2026 14:58:10 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= k57FEczv4f3kffgchstOAbae9IFWMFq+CCHW70t44/o=; b=pz6Hwj2BXNDZw03M xVLiZhmGAHX4dn41QxiUQqIpPQHW8/33sE5dEIcHkhMWs5n6jacv8CL5fZb+wh1J Mzc03WpqBw+08KWldrJTL6yqaDD3gb3odVwYjgfmg1Ckz/rji2Q98EW27zNkT/nL iGVaxXVH7bSF1dpthFRcbvOqbe54VJzoTtHY7JM/LZPMQ/eScOp9rDCI4nexd2Lx nOyHylxgv6tziyDRN3mTMT2ihBLqUvyHHZqjeHASwPA/jqeXbqm+mINfsify2Dbn Jnngkm9VM7ZySF5DgxlQ3QVSFtMRAWWGTBwIuG/OD7yrOxe+jLzN9RT5FZcfyC9X zZwROA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706289; x=1793311089; darn=nongnu.org; h=content-transfer-encoding:content-type: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=k57FEczv4f3kffgchstOAbae9IFWMFq+CCHW70t44/o=; b=BYwngalGQ2gDXIac1oaQ5ARhQLkBVpyBuLqUZHnvEeiqxc0c76FuvxnHp2bhIuAk7f l09FIeMKDPEgRPn4s+xCxO7OyR+g+YSi9zg1J2FopC1CHDjo90mLlweJqpr7djxJbcqK 32TZziScWDfkIp1S2TbRTDD/YKWN3ADs8QjFXb8mwHVVjUZFqPq8G88zF4If3RzGVfb4 C1LiUvKFCUHFoyX8nrjnIaXNd+s2EBd68W24tnA0n/iymYDjBYMI3vyxs3uodIuORfFO 2Qe08Wa0dTNgxEO/YEk4v+cFs4M3TekVal54UYNm5VvegKFn3eE7xldtqwurhydgRs8s xmOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706289; x=1793311089; h=content-transfer-encoding:content-type: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=k57FEczv4f3kffgchstOAbae9IFWMFq+CCHW70t44/o=; b=pP+51lY2TreU0dceImN7CZPMdJIedU75tyK2JSh97vXmlu8y0NQSJvEnYEhDqSdCBd BSVPeOuE2ObZc32IMDOgkuQDQ9iWTgQwYqzsuiNmvO5mHoI+IoYEZngdIuf7gylMABHT LbMZKFHzeIrNGpJoAqW6/opaXOkyRpEDSI2SkCqrbhFOuvlyYuFAPPza44jS87FtDRuX kkctglFaqpab3cOqGOIYmpfyS300kTF/KJiyW0k/wRRI8c3YWpcRrbnJTe/XKDa0Z04Y eaTRmoDwIqE6XqUzc7H78QOTOoCAsqUqgi9YiyweZ24/xjS2rnf6EytJHiaJ3oQS49nE cTgA== X-Gm-Message-State: AFq9FYIZMy8SvohhIWZoUckHwRo89qA0LDHK9LghDEf8M80uPDJdVFAh KI/SPgUvEboI58Go+xEHHij5OUms7356O7JutIMHEzPVkOP9eNTDq/HmGHScfdPZAG3DZBPiHWQ 8+FfFc/eE5GKmZXWkLHfHWa0wqlQway3qhBWKMzVwoGOABd1lhkTlqUDNENPCZG2NIg== X-Gm-Gg: AYBFou2Rd1WQxm7KS16aSgCS9GpL5om+7nl2NRzhIjx/in2jktEh5fxECVlByp1hzm6 vcwIIujaUdanD0g2cX4gTEta1BkuMBy+UURhS9wDb7gChUNs9u8xO7oV7vV25sSG0BMAs+gM1Lr 4+5wI925M4mSyH1+Aicv3XNRBCGPYoCIvzujIm59YSt7D7Xp9MMWfRkKG8BLA2oFnr6A/mNuKWw tZK218JnmiSXovS0N/VGy1d6Qk3NyxeIEFk2J5WdF4IAiMz6MnNLCy2MN6aaIoSDtyyPCOzffnG Yyi/1XrG/g/fL+atnK0FyYHS2CpnCXeJaJJUwYxtwB1NKgshIyM0Va3XrRlNuBTV6fPJcPDAxLQ TL2xa+JG/9d4L72gqtDqbvt+Gx5gTdu+e8GT+6IJi16sLhO6dzXcn3mm7WSoZAHs= X-Received: by 2002:a17:90b:5863:b0:3ac:4e18:238c with SMTP id 98e67ed59e1d1-3adce48ba46mr144902a91.49.1792706289227; Thu, 22 Oct 2026 14:58:09 -0700 (PDT) X-Received: by 2002:a17:90b:5863:b0:3ac:4e18:238c with SMTP id 98e67ed59e1d1-3adce48ba46mr144894a91.49.1792706288665; Thu, 22 Oct 2026 14:58:08 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 21/27] dump: reimplement cpu_get_note_size using get_note_size sysemu op Date: Thu, 22 Oct 2026 14:57:40 -0700 Message-ID: <20261022215747.2479440-22-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: R2qEJpMYo4PTcG8jSIS9mb4ObgipIqFj X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXz8bWYKwy2IFE 9VuDRgUaGbe5qe8BXnvxYdf19NMA37HRFVXFrhLnbrpX1l0egkwS/jgFRdbCi2bCO7KvgIKcMLL qGJYcgR+jwJMZafyu4V/x2/Ye+7WIks++W0QGpNEEGbsldRG1nqMKWbiJShhlSO422NplEneMDR gWuImmYz+QZTjGuo4ykIFREBDB/4hhKRlaoApTGwITDRMauENJcoUoGnZGdI/Q8nGcfFs0Vw1hX nAghH3eeqIgxXoi7igXKRNiSJ1pLheDLgU67cT38OH06+tgafUR8BcWPKJyFLmOZTNkoKPxSEiY fs2dFImoHqL3jLBavcvmLyi51Od7uRcFGl5r/qXPGs9BrtWDWyQTHTZ7bVUiJVSW0p5BZm0NSa2 rpSUl+ZDmxzIs72SUJX6amPFY5RpbHjVjb1s9A+09Znp/5f5Xes1kO8AnnGuj8LNlJyrmGUEgN4 UbZb5aPsG6YgUXjbqHg== X-Proofpoint-GUID: R2qEJpMYo4PTcG8jSIS9mb4ObgipIqFj X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX2oTkPBRSOM2f VTlf4lreXL63e73dq8NVVS1L+KUD40NDgEvkID9uLof/qjErJdFchKTpzIqfdWpBP9aTZEQMmVl FdT8fXz6omrX2uZA4lbukHh4dIU2luw= X-Authority-Analysis: v=2.4 cv=UaHE26SN c=1 sm=1 tr=0 ts=6ada86f2 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=omOdbC7AAAAA:8 a=3kt3mrAgU2v5JAFOdb8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 bulkscore=0 clxscore=1015 spamscore=0 malwarescore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706473210158500 Now that all targets implement the get_note_size sysemu op, we can replace the per-target cpu_get_note_size() implementations (and its stub) with a single generic version in hw/core/cpu-system.c, taking the cpu as parameter, like other dump related sysemu ops wrappers. Reviewed-by: Marc-Andr=C3=A9 Lureau Link: https://lore.kernel.org/qemu-devel/20261021181244.867840-22-pierrick.= bouvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- dump/dump.c | 2 +- hw/core/cpu-system.c | 9 +++++++++ include/hw/core/cpu.h | 13 +++++++++++++ include/system/dump-arch.h | 2 -- 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 ----- 12 files changed, 23 insertions(+), 55 deletions(-) delete mode 100644 stubs/dump.c diff --git a/dump/dump.c b/dump/dump.c index 60ecde02173..23ac689907a 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -1873,7 +1873,7 @@ 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->note_size =3D cpu_get_note_size(first_cpu, s->dump_info.d_class, s->dump_info.d_machine, nr_cpus); assert(s->note_size >=3D 0); =20 diff --git a/hw/core/cpu-system.c b/hw/core/cpu-system.c index d04c6a2e6e8..03800cd719b 100644 --- a/hw/core/cpu-system.c +++ b/hw/core/cpu-system.c @@ -140,6 +140,15 @@ int cpu_get_dump_info(const CPUState *cpu, ArchDumpInf= o *info, return 0; } =20 +ssize_t cpu_get_note_size(const CPUState *cpu, int class, int machine, + int nr_cpus) +{ + if (!cpu->cc->sysemu_ops->get_note_size) { + return -1; + } + return cpu->cc->sysemu_ops->get_note_size(cpu, class, machine, nr_cpus= ); +} + bool cpu_internal_is_big_endian(CPUState *cpu) { if (cpu->cc->sysemu_ops->internal_is_big_endian) { diff --git a/include/hw/core/cpu.h b/include/hw/core/cpu.h index d80a6a4e752..a3b4c6c08a7 100644 --- a/include/hw/core/cpu.h +++ b/include/hw/core/cpu.h @@ -712,6 +712,19 @@ int cpu_write_elf32_qemunote(WriteCoreDumpFunction f, = CPUState *cpu, int cpu_get_dump_info(const CPUState *cpu, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); =20 +/** + * cpu_get_note_size: + * @cpu: The CPU whose memory is to be dumped + * @class: ELF class reported by cpu_get_dump_info() + * @machine: ELF machine reported by cpu_get_dump_info() + * @nr_cpus: Number of CPUs to be dumped + * + * Returns: size of the ELF notes needed to dump @nr_cpus CPUs, + * or -1 if not supported. + */ +ssize_t cpu_get_note_size(const CPUState *cpu, int class, int machine, + int nr_cpus); + /** * cpu_memory_rw_debug: * @cpu: The CPU whose memory is to be accessed diff --git a/include/system/dump-arch.h b/include/system/dump-arch.h index eccf61dc3e1..86b9ae15b6a 100644 --- a/include/system/dump-arch.h +++ b/include/system/dump-arch.h @@ -27,6 +27,4 @@ struct ArchDumpInfo { void (*arch_cleanup_fn)(DumpState *s); }; =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus); - #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 dcb67ce5295..4a26f795a6a 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 a09f7c59db6..01fb2942d17 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -451,8 +451,3 @@ size_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 270adb04468..9e39fea84c0 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -459,8 +459,3 @@ size_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 47036105e0a..1e2d8eba85e 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -161,8 +161,3 @@ size_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 42e5cf936d8..bbfb6674bc3 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -267,11 +267,6 @@ size_t ppc_get_note_size(const CPUState *cs, int class= , 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 06b66a56855..19222ae18b4 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -193,8 +193,3 @@ size_t riscv_get_note_size(const CPUState *cs, int clas= s, 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 5092835afc3..965ed6be39c 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -495,8 +495,3 @@ size_t s390_get_note_size(const CPUState *cs, int class= , 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.47.3 From nobody Mon Nov 23 04:36:05 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=1792706470; cv=none; d=zohomail.com; s=zohoarc; b=etS3a12G0I6psebh1V7x0/UG1EK/PekMD+qG6BjL6kZgvfFQU3D2wUs/wwRYMnc1MkjoxLt2evS8O3ywP1gPOqF07ncPi38aHX/k07LlvWVHat+1fgRTve1UaT6PXCVIG2uIRNA88ZOGmTw23OhH9WQbflBJ/VwhMmPo1oKPqMk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706470; 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=51uyD2X3Hep3I+d82qaj9PfMUCgI29NTswl9/CtA4XI=; b=D3mwAFY1wIoIBn9A3D0QYK13oX7jMMAjIIlLgui3RzAesZP13BbKHlcCebmJKwk/9Cp/F0+brVMQLZp8LKiAfttIkKayJ3+h3s8i0GG4UkGlKBn5VDIdW9/OB1kugkyP1c7bIEZz9wdkxExf4I6FAiJPzlQmNXjg2tZXJKg1UKA= 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 1792706470498565.1449450629777; Thu, 22 Oct 2026 15:01:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0ng-0001yU-QO; Thu, 22 Oct 2026 17:58:16 -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 1xK0nd-0001xF-MM for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:13 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nb-0000L4-So for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:13 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MKWoJO3413294 for ; Thu, 22 Oct 2026 21:58:10 GMT Received: from mail-pl1-f199.google.com (mail-pl1-f199.google.com [209.85.214.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfsmar8dx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:10 +0000 (GMT) Received: by mail-pl1-f199.google.com with SMTP id d9443c01a7336-2ea63087d79so1754425ad.3 for ; Thu, 22 Oct 2026 14:58:10 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:08 -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=51uyD2X3Hep 3I+d82qaj9PfMUCgI29NTswl9/CtA4XI=; b=XRJ8C3eljZth5EMhyhxFRyLhOaC TBqkjTqu6V0hllVnQpoKmiZdMK8aR+ZlKpi4dJIcdOSteBC+FIOdR9fA3TyD0SCq EAsXLXtMdqoStndXN1N2tAgCr26iP06v+rqLKISwYP26socGTZy5hKBgGzoVdwW/ sO8H4ItaU/x600rMcE+FLLkShUJWYshD/ptr1ByHoCtFOk0RjRJhhBAROM84r3mD q1STsmws6Tr+8i64ly6TNNNWT23qw/ThE75VlDWAzzKiNF2QPA2I6gX9eQ9fxSM4 IFAxQseo9GCX9kRiu0vyALGPOKVJ0EkfXnoL30fdtOFY/zBxLurN5DchLoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706290; x=1793311090; 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=51uyD2X3Hep3I+d82qaj9PfMUCgI29NTswl9/CtA4XI=; b=W/Nc5axh02zqoiBmSr3VZMc+lrCHq16LpvlFY2ZzdQT85p6L+H/A8zv3DHvZBFgT/E 2mGPbZwKhsQBvOZn50k1nR8l1NNPJSFiXNQ3V0SRJWZaPnx7OZtoV3ueQIx0zjgfvz4u HbwMdxKfIdeVVdtFko2CHlsTNmcMHHONcy1QGR7i3JRB2quWbk+B2v+U7fxnlwpZszlk VjZL6yZpCRGhH030WSiwBusKuiK0uygKd8JEtV91412UfFdy5tzMJWoduXUbm/2YzzYn zBQmYTlCrEH/Y1+Jul//81WHjgXTYnqoV5LgW6k+ddV/Z/xCeA3pP67rQPYU/Wkk17Y/ 6ubw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706290; x=1793311090; 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=51uyD2X3Hep3I+d82qaj9PfMUCgI29NTswl9/CtA4XI=; b=Z5fUft2BzzCjT00x6M5O+jgGTn/LQgT375wWaHdZEEIAqdGgvlmea8yKX4O7plQc+i Mo4eyovFmpFyqZog2bpiwCHuxmYTAolvXXMIBgPccRtZXnRb/8Y6BR+a2nSty2OLd/GC q/fLjjSG6XWzFt97S25JEeaZBesF9DubWR/2qPGi81l5PsIn1kgrKmPmrQKzI5C+dxI7 JH3MDhfOLj5aoAKIjUwANyh+fSQagVlon2/wL+TbWyVIzLn6ZZ7Pt3RAJr124gtaJVFI bbkj+YNaSW/mppd/2KLwrae18GDWcBXa4n4kVGTeeONH+gcFKNesg/sIDGXbghrvqNyl 9W5g== X-Gm-Message-State: AFq9FYJGD+sFNHQWoYjQ7ceg7G6pegwBSevFSnPa+Jq2tp3hVR1q/bR/ T8Crl56web+eAlm7imqQWdrjVZDrx9O7XiMIYAtXJJUA2q68LiVFecKpACb5L138gF0DOGJL4Dp ndhpw/LCk9cDQxq9iAR9F/p4dXp/Vm68mJ43xrpkZBrhXwRTZmB8h/wfMTSqM0ZyJFw== X-Gm-Gg: AYBFou0PmrhUneulaNIt3DbsiZxtLBfuqT6KhlBS7k6aVmjDXOw0rm1vc+iliy6t7pe nhAOuiXRSQl6dUuG74uiTdYQZtb8FnwQgL0KO/cOV0P+A1WQiGie9pIiHRxcft+PgazKgf9KD05 uVPKglVrvfKHXzXSbhIwy/Rx0unjFe0Yb3kgS59BjUsK/gV/1M2GL4rXOy6FEcaB8o4u8dGWwHo Cu4SksMAHm8/8gSENWpWBnWXQNfzqQrtywbfw1CfzWGsL61+Vb/zn0sM7pFYOz/AyEF9cnqZKiN aoJSAM8CwmN6EVc0ttshXx4t5b3o0N4/VM0lk4OgQ6D1yNQZ/q9b60S9mQuOqj12zUBbuDAEYXd /C5NOwvCNJ/QqVZPmCko8DLbc4DoPmL5ejpBttm96WL9+CC3oB5UmO00oNpFEMLc= X-Received: by 2002:a17:90b:56c6:b0:3a7:bb1d:3688 with SMTP id 98e67ed59e1d1-3adce0031d3mr181478a91.27.1792706289826; Thu, 22 Oct 2026 14:58:09 -0700 (PDT) X-Received: by 2002:a17:90b:56c6:b0:3a7:bb1d:3688 with SMTP id 98e67ed59e1d1-3adce0031d3mr181459a91.27.1792706289338; Thu, 22 Oct 2026 14:58:09 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 22/27] target/arm: rename qmp_query_cpu_model_expansion to qmp_query_arm_cpu_model_expansion Date: Thu, 22 Oct 2026 14:57:41 -0700 Message-ID: <20261022215747.2479440-23-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=V7LoQuni c=1 sm=1 tr=0 ts=6ada86f2 cx=c_pps a=JL+w9abYAAE89/QcEU+0QA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=7UvLiwb0lT3xj6fr-RYA:9 a=324X-CrmTo6CU4MGRt3R:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX8w4oy+tE87BJ OarPZYrZ5QU3AW5cdjRRSzKPdYy8XE+p5xX4nhrKt84TEgrH9EOoOqCXXecgsHz1xwdOo2fCCxG rcP8WxA6a8uRrDbToJJ4u3bt8zaSSoE= X-Proofpoint-GUID: Um8TPNMs7-omG8OaKLMkNxutyzfEqwLe X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXxd0hwdOS+oJt AqA5Z62X9XXb7/oa01qT3hdDcN+WlMMrz8JkkvVIvwJI+6IyzxVAevgAG5C2THEMm7FFrIawzTc g7ZibOI+m8YEZSyV5z2iqA/FV0nQJItg9d2jOBNWrQq8sAHIW2Iyqzq/2sBLM3p/9//H1cwp8t7 27+Kw6MOET5HoJ7Ou3wm9csKv3rbSpMqjdmHRg4twkcAJ5fU2JljUG3zKQipyiu7L/JHNaA7tvI SHaweak1267y9a9lrWVDNvHC2Xovo0ydL/3xKWQurXkvynDmpR2B97NlWZDeOimuRYogiq5Lvaj 8AJzdGsYD+/TTciP9rQmdb6DDpGZjyVQgXXicthjlejMHPL56eKHYS4GhncqJiaboYwP6LKRfjD dD9ihA0f31Ks5aPbCk6MWqo5sT4kXa45bkP+GQ/NU/Pj6xCMDg8h0nuaRNncciwnAtfewGnA6Ph MH/VCCPbWEKXr+u1KyQ== X-Proofpoint-ORIG-GUID: Um8TPNMs7-omG8OaKLMkNxutyzfEqwLe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706471033158500 Content-Type: text/plain; charset="utf-8" In a future commit, a single target-agnostic qmp_query_cpu_model_expansion() will dispatch call to the per-architecture implementations based on target_arch(). Rename the arm implementation. We keep the existing qmp_query_cpu_model_expansion() function to not break the build. Acked-by: Yonggang Luo Link: https://lore.kernel.org/qemu-devel/20261016162509.24854-2-pierrick.bo= uvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/system/qmp-cpu.h | 5 +++++ target/arm/arm-qmp-cmds.c | 15 ++++++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/include/system/qmp-cpu.h b/include/system/qmp-cpu.h index f0e0d427e3b..d2e7c76ca25 100644 --- a/include/system/qmp-cpu.h +++ b/include/system/qmp-cpu.h @@ -17,4 +17,9 @@ CpuDefinitionInfoList *qmp_query_ppc_cpu_definitions(Erro= r **errp); CpuDefinitionInfoList *qmp_query_riscv_cpu_definitions(Error **errp); CpuDefinitionInfoList *qmp_query_s390x_cpu_definitions(Error **errp); =20 +CpuModelExpansionInfo * +qmp_query_arm_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp); + #endif diff --git a/target/arm/arm-qmp-cmds.c b/target/arm/arm-qmp-cmds.c index cef0c27db65..2614aea258f 100644 --- a/target/arm/arm-qmp-cmds.c +++ b/target/arm/arm-qmp-cmds.c @@ -80,9 +80,10 @@ static const char *cpu_model_advertised_features[] =3D { NULL }; =20 -CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType= type, - CpuModelInfo *model, - Error **errp) +CpuModelExpansionInfo * +qmp_query_arm_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) { CpuModelExpansionInfo *expansion_info; const QDict *qdict_in; @@ -202,6 +203,14 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(C= puModelExpansionType type, return expansion_info; } =20 +CpuModelExpansionInfo * +qmp_query_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + return qmp_query_arm_cpu_model_expansion(type, model, errp); +} + static void arm_cpu_add_definition(gpointer data, gpointer user_data) { ObjectClass *oc =3D data; --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706582; cv=none; d=zohomail.com; s=zohoarc; b=VeyOKe0+nXWF+/RSFXD/rj7JFHiSIEpuirD2kuMZVrP5ktMFXmw1FSJFw1DoQcP5W4Y3fypXBLM0wyefrXwj/GPpm2v5JvMpnbJ45HE7hc3s7h/+5X+MMAuJ80R0mi8VKYOVCEgUGvU1VXRVqNy09v7hboe8diqzNbQs4bd8Twc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706582; 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=xMKbdpJMgnqKWO91bdLzU/4Ep2Vj3tjVr0huqZEKlbw=; b=i8oYGhzWtDMq9SdPsaIdIrgjvk3wgtKPMWG8FmfGRHFhioC42TLzvqtxusDURVe+TU+tfKbpl2tS7DKJ37smNN8K1yO7SNXpsAqNl4Q3YmDy1Q89ALoZoUcuwNuxBOecesDXu1Eo4HeOuM7s+05FW3b1p/fHgxbAjBRZ7d29WIg= 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 17927065822621013.8516109738483; Thu, 22 Oct 2026 15:03:02 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nh-0001yb-Bs; Thu, 22 Oct 2026 17:58:17 -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 1xK0ne-0001xd-5o for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:14 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nc-0000LJ-DH for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:13 -0400 Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MIHIRI4086722 for ; Thu, 22 Oct 2026 21:58:11 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 4hfqmtrq5p-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:11 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ab7f1efe5dso431802a91.1 for ; Thu, 22 Oct 2026 14:58:10 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:09 -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=xMKbdpJMgnq KWO91bdLzU/4Ep2Vj3tjVr0huqZEKlbw=; b=BO7NiW1lmOmaQHB8l5KhXqh2B97 jEbAxsyvIBTjeYGf9LKAW8e3Tu2bts+fcflmMN2yKTHgy0uMKY8FyqDyoOc4kPpV yRTixFYJ7A/a0E2fxG0ZrlaC8srqZO7Mw+fOr0DBno4ryLWjvXXtU+TTRT1tEeha w9Nu9nR63Ot1NN6dI8bwPhaxitRayDHPwkZxyM0x1CTP6V4ESqd6++3Puo3YC6WR rRCpi7IpWIwed/68bNoH1HVZom5uwFPcuhk3yJ4MZy8yqVGoS8d3Qju8EA4TyVYl SZRZh+we7MKHtDA6L51EuBP9Y2dAYCBDPgVQbCIWetRtYNDk5Ate7SOIzhA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706290; x=1793311090; 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=xMKbdpJMgnqKWO91bdLzU/4Ep2Vj3tjVr0huqZEKlbw=; b=PvjxlnyOuUmMbsR2ZKPEe+xfxxy3bqoeG2hmygVNxhqa/n4rPF90T5pOV1caTxsDLa 4xVFNrbqPmDZ0tiziQvX5rLuyfsB8OHS+KDGDV208XVanUEAkchZQ6Gp8BUuTOejZy/V VVPMEBwOyofv/tzqs1SLZHN/IwBpfvMTJ+a2sx/7KYQxoGH4eiTDqKPhyF762YKA74mk WilqwZ3KdtYRcpmFGlZrHPv2cHR/N2FhlWSglsU9pPWhObXfGsiASIlDGYso7N6oedul 9f0HWUqbXHCaKGg2xaOxuvwcnhOkH+prAL/P3D6qQ8pW2/lzmtGGGCRHqAJDIGHPro0R yO7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706290; x=1793311090; 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=xMKbdpJMgnqKWO91bdLzU/4Ep2Vj3tjVr0huqZEKlbw=; b=0U0jsgWeHTo25k5mRqSCpAdsqcnKfg30WA04/ONwnT+vKrcA43gb8tWQeCDmaQvCjM Ue0+pLlpuHglfkvgz/+ZGs6zIri6v7av2Z4MVEfcZmKUENZCvtCS0sJelPBJ49XCJ0Yf D2yeaGQsSR/obG6A6z9lGiLOUMFMohKZ8fBZwnCrcRPYJOEQBhzTSXtFin64c6sx7L8E SrTU54H0wJ3SsdApQHkSehY8oKtAK7ggkLffITrjVtcTgpwv/G1IVtznQOMTsQ+X9EFB l8jNbOGpA0z45ApWLHfsFkjdqiQHRzEjEyP1FnQ2jOVD1c70OFPMDhzBA1iYKt1KwV/1 m+zQ== X-Gm-Message-State: AFq9FYKbQ10TwfPALVv8qHYedTUa4RfSELJ73n0/88Y3b9p8Gyn2IW2V 5uoPyl66WC25BZML73vFWtsyVd0LAHzkgA7Cr50dvAMI8pBGyy27juSqRik6TFxGYJsT2+/NdnW ep+q+r/1mxStfUGdT2hXpdQFvdsZk6dPg5QcZZO3gT5EiP5CJ/zHPgTTRKcjvn+Dv8Q== X-Gm-Gg: AYBFou0SsIOYu+A8dktTZZvcNEnj7Sxn7bOgzrAA9+5rgMyB5UXYuCy7+DYJzbzo11a rl8FrHXryX//wBF+TckMTH98n0T3XMlREJKQNVff84fC1uxtG5BQia/dclFPi8v8dEoO41cWDUM EKhXw2FoaYQzmA3mPPQ5u3T8OKhjBDITDVSLEwroF6EAvCllqUgB8bPA+TbtXsZDffSOX/wJJLB sS8t4gA1weQR+Ix20hQ2d539ijVgzjzZPktuc7mzRSHjuaH0/BYtyLOh1yoMj3LiWhW+CGL3aIg BgjvxilPAKRp17I+1/ooM9SW+4QZNhx6NQ5MaEYyUAo04YcnaeQgWpBbi5X1POlbfK/TgyoyB6q wj7GNLBvkuEXzTaL2yI4HWBUPQwOt4oM1fNDRGd2h6PGqwxRbSkJgznR7njPLxik= X-Received: by 2002:a17:90b:3b84:b0:3ac:e6a:1b2b with SMTP id 98e67ed59e1d1-3adcd799794mr234660a91.0.1792706290390; Thu, 22 Oct 2026 14:58:10 -0700 (PDT) X-Received: by 2002:a17:90b:3b84:b0:3ac:e6a:1b2b with SMTP id 98e67ed59e1d1-3adcd799794mr234643a91.0.1792706289950; Thu, 22 Oct 2026 14:58:09 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 23/27] target/i386: rename qmp_query_cpu_model_expansion to qmp_query_i386_cpu_model_expansion Date: Thu, 22 Oct 2026 14:57:42 -0700 Message-ID: <20261022215747.2479440-24-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=Gt3XaU1C c=1 sm=1 tr=0 ts=6ada86f3 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=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=7UvLiwb0lT3xj6fr-RYA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-GUID: MZvDt9_quZLlhwxHyyOXJXHOZCxqkEal X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX3/LDVpbRgA/U JNpkAJ1Z0K4e4AxkJCUvQ0ZNC/HnTv8d7H4VeM5ogpwWg4xPj4sAHNXIpMisrK/HBxBEyH3AhOu usyFWo11wmJvXUeEjqEDtUKHUr13zSqcKTUgB4Ql4LSkA9SYUE5rtAtd3hBipOwLdR8/n4qtj/0 xdY07/E3pmrY3wuc833Vl9jTO0QVPrz1+x3bvTNEFL+NNJWjdAhE7XQRbGqUO+wq/26nU+Rq/XB K2BWVU9/7GKTBZG8k9dPYHT8ekjnAMESzToAVd0WeIosalWtvVel2SlNSnOMnyDll6fEpp91Dmr QlOAN/VUtwKp8pbVL83Z67SSufCktw690qwillpWslcbcIy6TZ5JttWB7iKCqwHKX9o5z92ynck IYysgI1y/rJ/Xd5qhIk9kPWZKUDdyORTy7jPuNnhZKEkrFxEl50Cu1ulPbuGbx/ekowLOnlQCy0 CTI43hzeIz5gei1IpNQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX+qDn3B24Sd8A V1px3NSfuPM+qKX1uyHaxY/ofUvJBFb2SZiOHBlg2plpRl2OZtlZ8ujQ0p5LX+VOa6nvb/9YujE HwP46b4DXoCKl/hNevJsub/y0QIZ+TI= X-Proofpoint-ORIG-GUID: MZvDt9_quZLlhwxHyyOXJXHOZCxqkEal X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 spamscore=0 suspectscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 impostorscore=0 phishscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706583000158500 Content-Type: text/plain; charset="utf-8" Acked-by: Yonggang Luo Link: https://lore.kernel.org/qemu-devel/20261016162509.24854-3-pierrick.bo= uvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/system/qmp-cpu.h | 4 ++++ target/i386/cpu-system.c | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/system/qmp-cpu.h b/include/system/qmp-cpu.h index d2e7c76ca25..cbf8ae7867a 100644 --- a/include/system/qmp-cpu.h +++ b/include/system/qmp-cpu.h @@ -21,5 +21,9 @@ CpuModelExpansionInfo * qmp_query_arm_cpu_model_expansion(CpuModelExpansionType type, CpuModelInfo *model, Error **errp); +CpuModelExpansionInfo * +qmp_query_i386_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp); =20 #endif diff --git a/target/i386/cpu-system.c b/target/i386/cpu-system.c index c8bbf0cbafd..f85dc4a7036 100644 --- a/target/i386/cpu-system.c +++ b/target/i386/cpu-system.c @@ -27,6 +27,7 @@ #include "qapi/qobject-input-visitor.h" #include "qom/qom-qobject.h" #include "qapi/qapi-commands-machine.h" +#include "system/qmp-cpu.h" =20 #include "cpu-internal.h" =20 @@ -189,9 +190,9 @@ out: } =20 CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) +qmp_query_i386_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) { X86CPU *xc =3D NULL; Error *err =3D NULL; @@ -241,6 +242,14 @@ out: return ret; } =20 +CpuModelExpansionInfo * +qmp_query_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + return qmp_query_i386_cpu_model_expansion(type, model, errp); +} + void cpu_clear_apic_feature(CPUX86State *env) { env->features[FEAT_1_EDX] &=3D ~CPUID_APIC; --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706418; cv=none; d=zohomail.com; s=zohoarc; b=f4XR3kTkQBjY+E4t96zgEY29zt0S/2SnSE18iQyk6WzMtUK4soySLHkJm4N/QQjTk4IZx/0sxEj7oYvA8BZzODTWjeN6Ooj0LhhWlmNkFBVfS5vYBPgiKWUgy/to2bqQGc3wxBmP5JGZMbUIhcTrP5dYUFfTcIZ4cMi6kekoSVw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706418; 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=oHuoUrPP4FOnzON9fey4nSuGHyv/SLoiUS3gipH7DEs=; b=gvBdNnsL2KfhNy17Jtj2+Z14zoja37PizrQiQ2rE/pk2lyBbwCdRsyuOFVtqst/elh6OifiZ+lDo3Ri5Ct2+iq3yjKOO7/p7XikQ60qaDirPMYJdM7vSxVFafBN0fMo3edAooNBruvW4CMVFgZgGIc1l+p24g5BGRvie51Z8Obg= 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 1792706418365732.5390480611462; Thu, 22 Oct 2026 15:00:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0ny-0002VR-A9; Thu, 22 Oct 2026 17:58:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0np-0002GP-Jj for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:27 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nn-0000Lh-Rh for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:25 -0400 Received: from pps.filterd (m0279864.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MKWlJQ3413268 for ; Thu, 22 Oct 2026 21:58:12 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 4hfsmar8e2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:12 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3abfcf726dcso384718a91.2 for ; Thu, 22 Oct 2026 14:58:12 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:10 -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=oHuoUrPP4FO nzON9fey4nSuGHyv/SLoiUS3gipH7DEs=; b=J/a8WnL8FVSS1n3ZiGWxw5B1H9m kqBRdFcHM04GRbDFX8QZ8FWtYtqV8scSxKW4SjnMyYNAj2XGeyyllM/qtjt8mk1A Ws7rr2gobup7xQtdDAOwcDIyhJO5DspoYbhe5tYAoUa8Zx6XPjVSPFootyvLZ7f9 TwFRQcWSlDE8dG3qatY+8Th1r3zx6OfWP12hQMrittUe1Wl7ISeRqQ9p/f9NRhPs FB4HEylz6F6c53g35x7yYttBrpsNeySpPzIf0jyi/PuJXbApYYjuNzcGAL4wLNsp FSSOA/0rInBAOXeOyLz4DCmg3i3Ct8LEslj1J+dzyrSEYj0wOoe8rO1H3Dw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706292; x=1793311092; 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=oHuoUrPP4FOnzON9fey4nSuGHyv/SLoiUS3gipH7DEs=; b=Lp+b8xolb/+czGivnKM9hMPFvzEl4ZjTzWyz2XvOUQZBbESUUbsN/nBWMJn/eCOLJQ ZJzofE8G3/9zJfspluwXDyNITin7YigFEvKF5ODnE1wym96jUzRGzj15p4gjtyXJwoTR M22UAkRuIPOVNSSlGgQvmcWrZmCfk/AwfiFxZ3fpfq20SpyDghWR6gsac1pSMwIiRwxt GbkdX1L+RsrC3C7Av+lkqgGawBUGUCUGakJOVIyR1Hzaj//LudwmorLsPvNpXQ/COLea PHXiudofN2dVeOtoJ2phIr5qxdsefD/CVPrdXnHEiKUZqVj02Fhq4siRdrmQR4b1k9qd 1vYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706292; x=1793311092; 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=oHuoUrPP4FOnzON9fey4nSuGHyv/SLoiUS3gipH7DEs=; b=yBGtCmuWmNwN1tt1Mbh65HCIDBIrjkB7jnteNof1p6J6DJ5NLyhvS2IcJj1uoF3232 bkBYYnjINrs8ks5qzcIvhrJoILCPaFSwSODFa1n69Xndx+/MrYNeleO7lQecVfu566DD hKrLtYFUcxa6XgKndQ7rzhXe9cD7El4dWEKtO2b9Psh7smeFHXkUQW5Dj+Vm99ch21AI XJd4TGakuvOtB82oFRU9oYaMSnHZN7yvZrFSoqgd8jEdBYKeS5sy+dbSCLg9Eu4VD9NC bNPvBNx2r45+1/4wr+pTTnnmWWHDzWgZb0XFoY/bq0xHAIT+gMUPajjlXu9gHYwVJV8r NByw== X-Gm-Message-State: AFq9FYJl7iXmgWR2dMhjDbYmMwxxpLGLOq+GOKurHw7viRR6ZSZLYcWh nqfdR26DLh8cF6/NeCZRn5GbJuYgNPGZ4a1Bxu3fyBUGWRG22/6unF1cTx47DfKSLgIbxWowG4b vbsqqQ2y8JnY3JOXgGFzRer6FsGBBKadYVgK4G0nEVcwgUBKrfb7mqECcxmSthn3Ipw== X-Gm-Gg: AYBFou0hd9hcgK2Ra2TbQ4BpJs2see27JCAEGqi/glWnWexOUkeu7Uj4oEzBKsGi3fz 1aK3NqkIq6N7+8duij6MWI5rbo4DrmgnwGwuEEhOvREt1yNSlfiu3rGtJqvXZQmuIT7uayw4Y90 Hvt3Jz4JrJc7jfuugYTK//27N+m03k6R7f56R5tdPSdqJnaciQNhA11ODG6BDJUcwkIV+W1KJG3 V8JvBitXsvbOiTe7KXG8ZsDaBtqmswpn98muoIL+/6mGh9skh4L/UPzfWeoFQh0EHmWWwqKnMm5 mta24ve6GcKJnmDUGehllwdQTg/InJ/uunV+q5WPBKorDcBBwE7z2a2BD+6D6FpUdumJ0sIFeXx uKlOsLXWGNuwG6Sd5EN2eRzMP5+grIoc3FA6ZYZWldAuhHfCMfwErqU1qJU86bqY= X-Received: by 2002:a17:90b:3c88:b0:3ac:397c:574b with SMTP id 98e67ed59e1d1-3adce13ab8fmr194641a91.54.1792706291672; Thu, 22 Oct 2026 14:58:11 -0700 (PDT) X-Received: by 2002:a17:90b:3c88:b0:3ac:397c:574b with SMTP id 98e67ed59e1d1-3adce13ab8fmr194628a91.54.1792706291213; Thu, 22 Oct 2026 14:58:11 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 24/27] target/loongarch: rename to qmp_query_loongarch_cpu_model_expansion Date: Thu, 22 Oct 2026 14:57:43 -0700 Message-ID: <20261022215747.2479440-25-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=V7LoQuni c=1 sm=1 tr=0 ts=6ada86f4 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=DJpcGTmdVt4CTyJn9g5Z:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=7UvLiwb0lT3xj6fr-RYA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfXykIu3P7IAnR7 fmnuawikczViYIfmWsi2ZQk4D3LcjmlqG2AYljQ1fhHXOFFo8cMqoa+2TWB4AUA80iCioZdzBN7 fVYJ/jHYvxOFNDBV/tUyILXnW7sPFXg= X-Proofpoint-GUID: q48Z_UtUh-_-BfxbT66kqpFe_n0PNAYh X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX5LWL8SOdIl8w 2rtFjhDo7bf0VhaIKDvTvMN+L4Oq/7vUCGm8UTGHI148c0UyvzxXD/xi+CYPZVjk57D15oOQLiV ljgaOzL5iKv7ARQVSl3QAnlc3av83sF1VXKhv17y/GzpGkmrVTWTUya9ANeeggD5oHOkIQRbxow i27Vs3X1LuXg1of/LpAmHqQdcFSJVIpPLxdNb2uyUj8j89nqkhDYSq27pLPWIaQdJD401zWeuKu K765qtciYkNS8tH1ly6r7Go+KOqg8iE1fToouS0kb1UhJwhi9wYxN0mXYAucCvgwZHqepSzgMZl AmGgsj013HGlOFJA8plgeGtFqztHqEAB8/qMeVLXrY171OyoAyEAap9d71TGLHGI5Rt7V7kgtO+ PbFXWqnpEK5eSzc7IhohBEwRnMtLDZ1Vph5C5e9lzj3rEN8EpKH5MknBl8KxRHZuBAa91v5leya IBIpQAYk9PmowCa4c8Q== X-Proofpoint-ORIG-GUID: q48Z_UtUh-_-BfxbT66kqpFe_n0PNAYh X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 adultscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 priorityscore=1501 phishscore=0 spamscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706420055158500 Content-Type: text/plain; charset="utf-8" Acked-by: Yonggang Luo Link: https://lore.kernel.org/qemu-devel/20261016162509.24854-4-pierrick.bo= uvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/system/qmp-cpu.h | 4 ++++ target/loongarch/loongarch-qmp-cmds.c | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/system/qmp-cpu.h b/include/system/qmp-cpu.h index cbf8ae7867a..6a199dcf616 100644 --- a/include/system/qmp-cpu.h +++ b/include/system/qmp-cpu.h @@ -25,5 +25,9 @@ CpuModelExpansionInfo * qmp_query_i386_cpu_model_expansion(CpuModelExpansionType type, CpuModelInfo *model, Error **errp); +CpuModelExpansionInfo * +qmp_query_loongarch_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp); =20 #endif diff --git a/target/loongarch/loongarch-qmp-cmds.c b/target/loongarch/loong= arch-qmp-cmds.c index 351b6aed7c8..59f8069d8f2 100644 --- a/target/loongarch/loongarch-qmp-cmds.c +++ b/target/loongarch/loongarch-qmp-cmds.c @@ -46,9 +46,10 @@ static const char *cpu_model_advertised_features[] =3D { "ptw", NULL }; =20 -CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType= type, - CpuModelInfo *model, - Error **errp) +CpuModelExpansionInfo * +qmp_query_loongarch_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) { Visitor *visitor; CpuModelExpansionInfo *expansion_info; @@ -134,3 +135,11 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(C= puModelExpansionType type, =20 return expansion_info; } + +CpuModelExpansionInfo * +qmp_query_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + return qmp_query_loongarch_cpu_model_expansion(type, model, errp); +} --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706343; cv=none; d=zohomail.com; s=zohoarc; b=L0AnYHMzX1HMwg7llaj/M7qBqyS/m4oh0CEyCu1V87G2gg3ycATWmiDGfuhiJewx8yP2OdFinI+7qlT02Xny7QWG9hc5GIR+EMXIMQ7rvOccqWCszmFrrqe3k6lwSs76AW+N3Pm3sl4mOmfKBBYX7gC2722WPCsUJFUoLQSxUcM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706343; 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=bnpybZL4l4NOGWyR/1S7z5Hlif7tRO5UisIo8yfeaRY=; b=ifqtPNdz4+p/w3XB9VlIQKwz05yW02UA44eAENJ671HjUL7nyKoZUNSB7cPft3UuYk/rY3mN6T/LKtOaXs/nCgjMIKY8ESArhMaIZhHicVa9C+f2DqGP4TEbD430ElU9EHux00vUDI++UO5ZGGqfVdHS5Ep7KwitCdk+ya3EJMg= 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 1792706343359969.0574898356504; Thu, 22 Oct 2026 14:59:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0nu-0002Ms-Vr; Thu, 22 Oct 2026 17:58: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 1xK0nr-0002I0-8R for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:27 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0no-0000M6-O3 for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:26 -0400 Received: from pps.filterd (m0279863.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69MKuoEK792184 for ; Thu, 22 Oct 2026 21:58:13 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 4hfsyk85wk-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:13 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ac0ae43900so281532a91.0 for ; Thu, 22 Oct 2026 14:58:13 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:11 -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=bnpybZL4l4N OGWyR/1S7z5Hlif7tRO5UisIo8yfeaRY=; b=WVZ66sXI25WkaYBeG7G7Vx4S/xc OrHHaet3NjMbUXsDAvmjGiT2KG9tH645sIVAWJOrR3HbPjaIBih7rnDuSXEk4LLp 6QEgf5l9xQCuNY1kvfTi1t3dKT+tQEw5V0F9h+B6yejIve+EOKx8/sw9fT3jg0F4 vWYP0NOK3rDa5xZZw6yeIlh79MfpAVSpv8fiBCDwrEmXCqou318MZfm2cmTJUMsC KAUvVbimYbeJBuE40ogtiC0rzE+NXxHIYA0B+eVZTB8wBmb7HjWzDcJaNHpr1+yM UEEZr35PKEG+Q6dyNwSwFHG/TG5rLgzHTYlUlhZFRfchQPs4B0ycH3XdENA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706293; x=1793311093; 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=bnpybZL4l4NOGWyR/1S7z5Hlif7tRO5UisIo8yfeaRY=; b=dIOMt9kQAlQqIabaTbNmoUkn6BGgeGv4gwkG3vgichnHdLX8Phr9dqATe60Eptu2a9 VpgSNcN5H8feDNeh1FhHxqyydKSF+YgnBYiR+3HJacsH0aRcKm6e1GxYzcbkjxsjoquG fEWGQgFc3NJ8khbgmuk9adTJz+slVBXMA4eTg3i1TUDg+M//NYzRLf6Wl2nN4H1wCuMv PcALxxPO07w8rnSepVVNb84juxAe/hyeXWNzKDmMYw4hmbv6DXSqJya14WjHfp8qRjhJ t13w/6WY42U4E2rzO2d/d+sUc3VQHYhJarnYWwfhrEhxAD6NMG6JoxFl/18aH+kyVy4T jrdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706293; x=1793311093; 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=bnpybZL4l4NOGWyR/1S7z5Hlif7tRO5UisIo8yfeaRY=; b=IYoHJaeS9yFpHJMKxd+idu2JxHXrSlhZ0A1rLwBBBfwiXK89a/Q0mEqqIfr5lqmD+V DDv7LPJ7Izg0RDVKFg4Luzi4PjSGBgpU91Iiev+yBqadDMkrFFPSINpiJoAAp84HXVQ2 AdRvtNhYazvlZcakcZxDUvvoJHWmW4TVdgk8oPeIgpvoGoFXXRSEiHxQLXqssiky5k07 RU9B89/9eygeWEAxK3tM7+KrQfkBhE8e7LnyhM1T7UhgaPVctVW6hMXj7gIpLNfZoNbR WfSZIPtCsVNHd1ObvNDM8jHnLVjCG9Fjlc7jtr5D0hwQwo55y3GrCJos6MIicsai8Ki5 z6mA== X-Gm-Message-State: AFq9FYJwdmXTNEb4mmM4gb5kV5gTkQhiHy3chuEKeuRpaV0ewx+HLF2G YPQ3WeVvliMol4FXIVQ7F0Z/ymrN4BorjI18pSrELB2oWin0NlQkyokfahe28K+unCBJ5yGllVc F4Yo1jq37FeWAO4pYio40vzTfnZfvWwt9rVChoI8xFD/TLsowKXuq6EvsDy2mZwk6yA== X-Gm-Gg: AYBFou0r+hxI2iVh3i06CAoDTQAjLDvQXU5LkORtjWN1Gj2ukET6zvi2uUvn1m11G5N ZQZ2bhxmsCTee3hLIq8Xc8dtyjGd93rKLvoV8kJSFKh1i6mlHrcRZIOzLG5QSO/ULADi6nyBH6j 1fgetjDPmUpE3JD241kfbMENKqBKpA+m3yPiQK4nvH9jtuTDC7sHOE//WwIuBvWDHZsJ33N2BmM 7MPhkjd9vn8tfI45Z5kpopfUKparbzhbv0KHMLG09HsS3xkj98BL5x4Z91Bw3blYtA4nidvkCbt 0eOfq6jIwTDoLwuvP6OSj/8y/H6W3MkGZ5lds80WsEV6EPAqWVHpfiLCsTBWtcxp3c0Od27o4Ra 5PTpEsltGJzyGvK8dnLdRhHuBTUGbtBOZrhHvsBIPnmteAgYk1jBbCutUS55a/os= X-Received: by 2002:a17:90b:384f:b0:3ac:8897:7b9f with SMTP id 98e67ed59e1d1-3adce7b473fmr119238a91.43.1792706292751; Thu, 22 Oct 2026 14:58:12 -0700 (PDT) X-Received: by 2002:a17:90b:384f:b0:3ac:8897:7b9f with SMTP id 98e67ed59e1d1-3adce7b473fmr119227a91.43.1792706292263; Thu, 22 Oct 2026 14:58:12 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 25/27] target/riscv: rename qmp_query_cpu_model_expansion to qmp_query_riscv_cpu_model_expansion Date: Thu, 22 Oct 2026 14:57:44 -0700 Message-ID: <20261022215747.2479440-26-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX+zGxqvyzI3g2 JVHWCXAfbwtfnqiXvs0gFgxvKd7+pgzM/lF4peeREkMvArSv/QHnD0MpoKa3Ta3Xq/qsyixOsh+ fBoEo9vcfLhQV7baXYKOV2HFDSs6L9cFlA1wN8yXxscYn/3e/ub9mIGj1yZupPeuEfujoUd1Orx vy83U1ZE+1OP0G31v3vSKAnLwkSL41SF8m71ppXlS0dVQ8k16Lu39Ci3+LohKpbU94J0U7bVjxh dXivoRbrlLSRDmLYap0o/RR+6eGKwRemkdr+mAcn+6EajJCoSpMbocVz1SbCms92NVWyht2ibHz zefuJL6Xy3QisD+razg9pSavKCP0u4ru9QamKjKRLTDPPMUXfqeUTdNXRIXe8dszQD+7cbDc3KV 1p1CyiHQD7GvBz2pW4BQ+wi9qhIoN5tv4RqmbQOtR0cVEIfP3Vx6zG8gxs301b4xDWqn4CCr1Lz kfsTKVwGyYyLc79CUIA== X-Proofpoint-ORIG-GUID: SNHLiTgH16iZsmKzRwOcsjjcmK8klL3c X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX41mEH6arbPi+ a+s12fpQ1VhPswJZafMK/44iNs6OcRIA+L5NTI7NdBCjfts94NhXRrdR+jn6HhZ4hR3f9pTr5oA ctbVMF4P5zyob9iww2kSDgbKNeKDWnY= X-Proofpoint-GUID: SNHLiTgH16iZsmKzRwOcsjjcmK8klL3c X-Authority-Analysis: v=2.4 cv=GLKdgeNK c=1 sm=1 tr=0 ts=6ada86f5 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=yOCtJkima9RkubShWh1s:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=7UvLiwb0lT3xj6fr-RYA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 impostorscore=0 bulkscore=0 spamscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 malwarescore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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: 1792706344551158500 Content-Type: text/plain; charset="utf-8" Acked-by: Yonggang Luo Link: https://lore.kernel.org/qemu-devel/20261016162509.24854-5-pierrick.bo= uvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/system/qmp-cpu.h | 4 ++++ target/riscv/riscv-qmp-cmds.c | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/system/qmp-cpu.h b/include/system/qmp-cpu.h index 6a199dcf616..4d530af1c5a 100644 --- a/include/system/qmp-cpu.h +++ b/include/system/qmp-cpu.h @@ -29,5 +29,9 @@ CpuModelExpansionInfo * qmp_query_loongarch_cpu_model_expansion(CpuModelExpansionType type, CpuModelInfo *model, Error **errp); +CpuModelExpansionInfo * +qmp_query_riscv_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp); =20 #endif diff --git a/target/riscv/riscv-qmp-cmds.c b/target/riscv/riscv-qmp-cmds.c index b70975affed..d60c6073bbe 100644 --- a/target/riscv/riscv-qmp-cmds.c +++ b/target/riscv/riscv-qmp-cmds.c @@ -155,9 +155,10 @@ err: visit_free(visitor); } =20 -CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType= type, - CpuModelInfo *model, - Error **errp) +CpuModelExpansionInfo * +qmp_query_riscv_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) { CpuModelExpansionInfo *expansion_info; QDict *qdict_out; @@ -226,3 +227,11 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(C= puModelExpansionType type, =20 return expansion_info; } + +CpuModelExpansionInfo * +qmp_query_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + return qmp_query_riscv_cpu_model_expansion(type, model, errp); +} --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706470; cv=none; d=zohomail.com; s=zohoarc; b=RBBZE8A0AZwF8QAAro042E/hOwvI0Q4dZJ/e9m5/1CtKMfSIKp4w3XEMsCPdOi8Ii2pnzsS5/Lrz5EPEEw6EDK+X2Xx2o/3Ha75pfl9gOyUE9aalAGETbVfecm1Ux9DJT1+AQUorsCZTlxD2V2Ko0T6OUOhmy3RXVipr+8Hlja0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706470; 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=JAkw9JEyYXqKEE13QQfM658HCqq+hRxkvH4wX+91lzY=; b=LO9kJnTateKWNoyDW5F2s8n7vvhcKboJP6cMRndRG4EcPAXpHRhCofDeqkRMZiCW814KoCBt2txpbrrJQ9p2ZgYGKh2T1ZszxJjwhrYQh0hpwETrTljQqxq0Fdv9tqUXey4r0C5qbXr6mhdp5vnK3mXcEra0k3d5/bC+TCYP6OQ= 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 1792706470865500.51795690957806; Thu, 22 Oct 2026 15:01:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0o6-0002jQ-1k; Thu, 22 Oct 2026 17:58: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 1xK0ns-0002KN-Is for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:28 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0np-0000MS-Oy for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:28 -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 69MHtVCO387692 for ; Thu, 22 Oct 2026 21:58:15 GMT Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hfewq4rdq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:14 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cd8b7226694so124165a12.0 for ; Thu, 22 Oct 2026 14:58:14 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:12 -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=JAkw9JEyYXq KEE13QQfM658HCqq+hRxkvH4wX+91lzY=; b=KLuGTZMyMPr6ek5sV/+FxH2IVvG O3fxOlTFMwp+dEcGOlZtde9B0jMAjoLSg/6KKeVg6UiC+UG6SesB2sXUu3gz+04g +xLssdvFNGpkumcy6yzhzMpMoJk8CowyVL89TKXO8EBuZtd/orsOm7rybzOkByJw 8atTqboah/JRHkI0aCncEXnAZ54QCs+PW9jPrUwiqfn3KaEsLeXQYfT54K1xV7ct p8dT4NMqA5BDc5u1Tvf9wVXTzaDRKW4FXd8OYB7Q0xsH9ecQLMjy8AZX6OIITa4C DHxOJaDnFODhpeyTNH+lhkMikiFGN5S//iZA4ElXeqq4CC+bSICMeZVKuUA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706294; x=1793311094; 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=JAkw9JEyYXqKEE13QQfM658HCqq+hRxkvH4wX+91lzY=; b=GfxcDcMKWClm64AG/WrHdtPEG2PHCc+hGXg5MFEFo/2wLEx+z2SobEqA8WFsyfbPqf /YVbJHex51HgEuj/aegpcGHcOqSQabsv6MXK9flzhOoH0NW0ROtGGzTvev3pvNfIk81C V15mIUCdD9kIjLrsDTKBWCfjIDrgSx11yKQVzKQd3cyJLMMR7gRS4jU0Kf2A1tl05eZe Eo14iUmZ38OsiGV0guZeYtiee62M1kYucbrDiCc9teqmhzkuKhNw9I3wgr1gFfMKDGaD Iu+340jStWiQSqkJimdfzL6ge6ryij9CrSz57ekH1iJzoHJX+aXQm4a8Ha3DFPEf/cXZ 0iXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706294; x=1793311094; 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=JAkw9JEyYXqKEE13QQfM658HCqq+hRxkvH4wX+91lzY=; b=jvlxsgJurTSQle91fIFPRcesZvcYdbBHUHO0xMMCYWZfeptVm1VbEQ6qgQy/MtiS9A l7F4nVR5qAGuEhx8m9bIqFE2WCgNgzXaKO6BWsRxFGbv3/WuxTKVhNEtXjB6/0URLq1q SEl8H4zB7lanOGZWu/Lzj5ZXbT+QcYDjhHpOVANLOLCoyOYPrGTIKgSxaUuGofxSOF2k gbXBZO/+GYkgtp7hfb7wlht67llqDax5LhSeNjNKzZYHPVaIQ242ydOQcNBTWqk5oBkI Do0swX88YunUcJ1ndgUDIHFIICo19cUrDaI/4odWHlhUEN0FE56GmksX2ilj7XwdulxW JY9A== X-Gm-Message-State: AFq9FYKCpaG6vjZi+TsU1mmqnWFA5Fi3nXtmBPJszt4U+l/f6aIkdBig 7LcTnlYB/xVMj/xtxNTZZgmaKC3T9YAqviUDzjdXZlCqiBRigLMjkztfcCmC54NvIf5umLzgVtW irimqWrPVWp/KKKwQEpN83RpmiPoI41U5ghILq9CNgZsikWUJ3d8KEuRdqcSMKbJODQ== X-Gm-Gg: AYBFou0Avzo4rbNkWNFqiO7nzNSm1BUJYsJ78IsRhm3sp0WJQhFPEhyiX9vkfhMSeLl kEEaE6OaaBn2O9RGC0ExWEC5nrVc1iTLpXoJmU1XQEq+JG2+OF5OeLGriP7b9R9mMLPavcxH2/4 7weKcuo3xdeniNhqVJGK2AVwcfwoR6JmnR/X7Jkkuhs+cyDk4kHsAx513OejJMCoHURCXkKgimD 21vR2CP947i2RTAUIYtvTYCCCzVdt+sNrZyJon1y0SHrLBhonxBwlxiPWPELiqWhrccNC+vZz6P /8pBUBETMh6l4QWVm9NXfIQcxLsjLRO8WmD4VRJna8ALN9UdbGdl+0XX8iJW1+G0q4BJPy+I7Yq Blvn7hJW8b6LDCMoWpo7KJ34Be8vdgspm5GoL1Up+YD/LFKT89K4g/L7ObbhKrNw= X-Received: by 2002:a17:90b:2752:b0:3aa:fc22:8aad with SMTP id 98e67ed59e1d1-3adce7cab6fmr144326a91.54.1792706293890; Thu, 22 Oct 2026 14:58:13 -0700 (PDT) X-Received: by 2002:a17:90b:2752:b0:3aa:fc22:8aad with SMTP id 98e67ed59e1d1-3adce7cab6fmr144316a91.54.1792706293414; Thu, 22 Oct 2026 14:58:13 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 26/27] target/s390x: rename qmp_query_cpu_model_expansion to qmp_query_s390x_cpu_model_expansion Date: Thu, 22 Oct 2026 14:57:45 -0700 Message-ID: <20261022215747.2479440-27-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: g7yLND0kammejo7p4ECpGY2RAoNpCBxf X-Proofpoint-ORIG-GUID: g7yLND0kammejo7p4ECpGY2RAoNpCBxf X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX87VplLW+5xXE HbSOUfNXmjr34LylM846Gs7qftaji+9UlE6VxDMtvOdiX+dcpxgKJy/Rcw2wCldPTo1KJgcCu58 AVGQ3nSB3cqhUomW/d7MvA/pY5A7k/k= X-Authority-Analysis: v=2.4 cv=G4OJgNk5 c=1 sm=1 tr=0 ts=6ada86f6 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=7UvLiwb0lT3xj6fr-RYA:9 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX4ZperHbRI03Q 62JX721Cbx4mHsOEUU4LuzFlUbFliHjzW951Z8CjmfFHreoRmPinHWQ7oAELvIghzzDHjxDf9LY GBrHLUzsZRbhVLyQH/Z3/lJbDKp14hTRchb6iTiG90B56GVn76v3EnOIRKoOWBOLC6GnJGCcHG9 O+fv4Q9o2Szuh5kUuv+2/qsXhQq4bg5pLq+QejHLsucldxK8DYTQ4WzOn1c/ApIMDRqX3eFZGLh dl8K5XKRLWGbtPZucIfbo28UwvktqR2Zity3iElt9MnGrv4NPTmlxQdYjChPgOuaStOpD4W0oR9 YSCE1gXgJvt8h1UhfEzz3NoqNOnQCkUYsisBzpZmt/Bu3EaVQ1UUBQXrzJ1vrVHE93oXg/AiZ+C UwOwq4IFj/V0eHh2XnxP/UgiwxbHoK3yNe/BllF3sgiUbDXJauKrUmAvhqrGk0aPSemqfHRCWiW /5OMc1famMo3v7N1uvA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706471029158500 Content-Type: text/plain; charset="utf-8" Acked-by: Yonggang Luo Link: https://lore.kernel.org/qemu-devel/20261016162509.24854-6-pierrick.bo= uvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- include/system/qmp-cpu.h | 4 ++++ target/s390x/cpu_models_system.c | 15 ++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/include/system/qmp-cpu.h b/include/system/qmp-cpu.h index 4d530af1c5a..ae58d0cd580 100644 --- a/include/system/qmp-cpu.h +++ b/include/system/qmp-cpu.h @@ -33,5 +33,9 @@ CpuModelExpansionInfo * qmp_query_riscv_cpu_model_expansion(CpuModelExpansionType type, CpuModelInfo *model, Error **errp); +CpuModelExpansionInfo * +qmp_query_s390x_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp); =20 #endif diff --git a/target/s390x/cpu_models_system.c b/target/s390x/cpu_models_sys= tem.c index f82b693b0cd..ccfc918b383 100644 --- a/target/s390x/cpu_models_system.c +++ b/target/s390x/cpu_models_system.c @@ -209,9 +209,10 @@ static void cpu_info_from_model(CpuModelInfo *info, co= nst S390CPUModel *model, } } =20 -CpuModelExpansionInfo *qmp_query_cpu_model_expansion(CpuModelExpansionType= type, - CpuModelInfo *model, - Error **errp) +CpuModelExpansionInfo * +qmp_query_s390x_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) { Error *err =3D NULL; CpuModelExpansionInfo *expansion_info =3D NULL; @@ -259,6 +260,14 @@ CpuModelExpansionInfo *qmp_query_cpu_model_expansion(C= puModelExpansionType type, return expansion_info; } =20 +CpuModelExpansionInfo * +qmp_query_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + return qmp_query_s390x_cpu_model_expansion(type, model, errp); +} + static void list_add_feat(const char *name, void *opaque) { strList **last =3D (strList **) opaque; --=20 2.47.3 From nobody Mon Nov 23 04:36:05 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=1792706445; cv=none; d=zohomail.com; s=zohoarc; b=k/E+mMqbdePFnrKWMel50ngx3icrv2I6W0QRkqFZGNW3eCin4s+aaqROOdZ3mV8Pp1IE66I/z5wBHDDmjo0+80zHj4EoIwG7I+iQNI/OURQhghg7xMyK5I3swZl3wFYvQBNeVrxO49J7Nf9CyafSU6a9GRDsNRiHiOqzYX7Sf1k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792706445; 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=ligiy4U/d6paJvblZ8bFHm+L6m3y0e7ul/ewbUz1S+0=; b=QcOicElyH8Hx4QrKGa6Us/EyfVPVRE1CO01vWKkniXnileV/7qhJ2WLssdu8yRuQZf78WHIRYQGBVN2np1eH+Ul7qdj7rIJy2ltqTq/4o+RstJKLupyZ8qkJfX4zhR8UqwruK54iKR/QZ46tshuydpJhvblYxavqNAevY3Ge+Cs= 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 1792706445712776.183024330063; Thu, 22 Oct 2026 15:00:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xK0o0-0002cV-40; Thu, 22 Oct 2026 17:58:36 -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 1xK0nt-0002Ls-ER for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:29 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xK0nr-0000Ml-2d for qemu-devel@nongnu.org; Thu, 22 Oct 2026 17:58:29 -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 69MHtmEG388899 for ; Thu, 22 Oct 2026 21:58:16 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 4hfewq4rds-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Thu, 22 Oct 2026 21:58:16 +0000 (GMT) Received: by mail-pg1-f199.google.com with SMTP id 41be03b00d2f7-cc73895c7d5so271713a12.1 for ; Thu, 22 Oct 2026 14:58:15 -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-3adca62e477sm648061a91.2.2026.10.22.14.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Oct 2026 14:58:13 -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=ligiy4U/d6p aJvblZ8bFHm+L6m3y0e7ul/ewbUz1S+0=; b=mK75/xYyzWlVcVqQp0N0+40PVas 2w/bEUYiBLCD0lft1BCxSBWjjKhFsiembi3RPGi/TSrhu5PzXGTmRm20GmBFU9e2 SHRCFPNhqTM+RvGuMsUCwgJAzOoXdf0a4Q1De97TNhHXebuXf22StnqHaIdpE2Ga 84Q/qgR7V3z43etFnGybecrUCeNheb9Fe5pt5wPdNaDwCXAZIza3400ju1IX+XmT uD3ub5C70/dMC6fyNd6aWx0o6dauXWC+FNLzRgUJs92rY6AZH5h+lp/rK1hXjOPo u/1pPZVgb3+oU6zlzm2gJ2F2d33Pm1UpJVKRZ0YXNBnxNL17W7HBU9BTD/g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792706295; x=1793311095; 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=ligiy4U/d6paJvblZ8bFHm+L6m3y0e7ul/ewbUz1S+0=; b=J4T5H5l5T4Z/SUWr52e0OjDYZ/7AGE6OdUXau6pRAmqHROATdJg59LJNult8iYd6fo wGfiFYdE6GlBo7gkjcj629h5H9g495xFWUImmOq8/gav9a5l+VLXlOSHrbh57nUST0+o KIXcevvmJs1NQjAsMm4ljXiZXwQ+uyALhc62sgmyoCuNqGCa3u0P2DPuBAIyrh9gHFz1 +DlNsL8qEDMKZw42EnewEbO1vVkbJNNMi+Awahl3T8JWk7eSXIunpEEnD5/UDevUGRhi tnJID/2+v611xl5OlMd+h87y1iJTSiJ8YHhcI+SSd9qOQzlAMFx6k1+IgirTXJ/IPaXy SO7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792706295; x=1793311095; 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=ligiy4U/d6paJvblZ8bFHm+L6m3y0e7ul/ewbUz1S+0=; b=FhQLoU22FTxIxxEyTn5VQfcnWJQRYUYmAJgR538NSo3IrMkqFeKxO46OfJ5jy+duIg HoY6cCJi92A3JAUP0PoUBZZ6Cw5MUcEz0POdAvzp+d6A7z0yr7bDwNyHx3x7WFaBu/lA GvF6n34yvB4HhwiunaP1nH251018Hmd/o5iySWVWkdytwA+8y5fze8w9rd2E0ToCLbVk x2fzi6EXgL4V2A8FhIZ0ctFVPYfgaFnBHAeTZjaxturc/VezWGjOCxhggVo5Il2hxevJ iD36AegmlAd/zG/lPJHy7O1n7mYOLY8wV6w2vhp7R06NVlAkLMsfGGCMEL6sQlgjF1cM b/nQ== X-Gm-Message-State: AFq9FYJJcRXf+M5iDxspqr73rxcdeurVblZYq1ikuOpGgm3QqJsoa/vO I6Z66CrCvMGl8w30FEewVvkggPsBrsXu7Ba7DQJxogkmw8p+uMUwzSnbZPJD49BOzEWSq2ziQuU fzXKMJYXRaf/CTQtTc0mumvuNbiTuylVi7E0gMc25FYaA/CXP8XoooczWu+CUDURjJg== X-Gm-Gg: AYBFou37mpXl7yJ1GtH2pz7UzeMEarE945Gk7Juyby3QtyZzEYkiZJzLaO18b+gjNnu 4Koby9F1TTW69big8AoPXz/EAUWOHa2k1jcF4ettmLcolykd2Uwo0M18vQeRDsNsGSMew5Frdux AqN5ck/dKzV78w04I5dMDaHWgY7N11qMN6/sjehupdu/RBCxmgXfz+oWhYwT1OdtoWk7UsK+5JW 3u6ahCgFsljyKLKoeH70sne3vSqb6CkcTYBHQ0w/HNgbayRSjbcFFYkHd+zC4e4NiQzXhZu5iEo hog14ZinVUlJ70YY3WS/ncHT3YWyUhUfq/LTe4Xr0NDqKesD334yRwEK8fXr1fmSVRn/lJ9Ie7S dO4AxtOylZc00AjHlJ4TrRcM+Wh9z6EGYyn8BlCWeQGq7iro+4EtQsEKw44+lxBA= X-Received: by 2002:a17:90b:5868:b0:3ab:1285:dfd6 with SMTP id 98e67ed59e1d1-3adce0ce013mr184782a91.38.1792706294937; Thu, 22 Oct 2026 14:58:14 -0700 (PDT) X-Received: by 2002:a17:90b:5868:b0:3ab:1285:dfd6 with SMTP id 98e67ed59e1d1-3adce0ce013mr184771a91.38.1792706294465; Thu, 22 Oct 2026 14:58:14 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org, peter.maydell@linaro.org, richard.henderson@linaro.org, pbonzini@redhat.com, stefanha@redhat.com Cc: pierrick.bouvier@oss.qualcomm.com Subject: [PULL 27/27] qmp: reimplement qmp_query_cpu_model_expansion as a dispatcher function Date: Thu, 22 Oct 2026 14:57:46 -0700 Message-ID: <20261022215747.2479440-28-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> References: <20261022215747.2479440-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: ARMcV22FD_xlPJBl7ToBz_v-FcM459bP X-Proofpoint-ORIG-GUID: ARMcV22FD_xlPJBl7ToBz_v-FcM459bP X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX26oymuBIBtOk 0ofMuLKOGxV36buGAu3LbCUnBzVFAXeG+3cq502V/8mneYdJmNbE+Uy4iI2LGxwDEJzYck+TOoi USN9smVNduFa/NEBzULjxDJhgZCbtlg= X-Authority-Analysis: v=2.4 cv=G4OJgNk5 c=1 sm=1 tr=0 ts=6ada86f8 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=rJkE3RaqiGZ5pbrm-msn:22 a=VwQbUJbxAAAA:8 a=EUspDBNiAAAA:8 a=pGLkceISAAAA:8 a=TponJfNvcDRDIxXhc9UA:9 a=_Vgx9l1VpLgwpw_dHYaR:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIyMDA4NyBTYWx0ZWRfX377Gs1ptRy6J Znxl0KnHEN6O50eCC7FC8aZII3v61oXbrWtf3F5dQYVL7R1t8DJMgEAtPeVWT/cZ0dGDDfYf1eA meeqVlsC/UdJVapygGKankGmR3DpW8QjbcQlSzw9xTNnDlMSEXuIJ5EOIhN9QTGAbQ5cJgJ/mQu FPy1JYPEHZyVLTSobcSJb3eyeWMKVb232WWeOsvomzmOdlw6RttQJD9FE56METbHxlnSa2PopZg pffvUSQffStJ1R16RmP0DXoi7LdRv45EWP3k1bGP+W2zSu3J92GfFRUyqFl2OagB3JdeH8B5Mw3 0MbudrEf/NOYtOPIhZ4qnOWAkLVEa278EHqQgRTaT5494/IMYjUcHNB1uKALqw2ixS3IxHBgPsg DN8pUJOsdMPTZefNK/jpXkXRUFMajOdnFvIGt4j3ljXBsoGPeDT1lypYVeMGEm8u6NbhmTS969y Qdpz8iOfRKQYLlh8ylg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.138,FMLib:17.12.100.49 definitions=2026-10-22_06,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 clxscore=1015 phishscore=0 lowpriorityscore=0 bulkscore=0 impostorscore=0 adultscore=0 malwarescore=0 spamscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610220087 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: 1792706446681158500 Content-Type: text/plain; charset="utf-8" Now that we have per target implementations of this function, we simply dispatch the call to relevant implementation. This eliminates duplication of qmp_query_cpu_model_expansion symbol. mips and ppc implementations were unsupported, so remove them and let them be handled by default case of the dispatcher. We need to define individual stubs for targets function since each existing binary only has one variant defined. Stub mechanism works per compilation unit, thus we need one file per symbol. Acked-by: Yonggang Luo Link: https://lore.kernel.org/qemu-devel/20261016162509.24854-7-pierrick.bo= uvier@oss.qualcomm.com Signed-off-by: Pierrick Bouvier --- hw/core/machine-qmp-cmds.c | 26 ++++++++++++++++++++++++++ stubs/meson.build | 1 - stubs/qmp-cpu-arm.c | 8 ++++++++ stubs/qmp-cpu-i386.c | 8 ++++++++ stubs/qmp-cpu-loongarch.c | 8 ++++++++ stubs/qmp-cpu-riscv.c | 8 ++++++++ stubs/qmp-cpu-s390x.c | 8 ++++++++ stubs/qmp-cpu.c | 14 -------------- target/arm/arm-qmp-cmds.c | 8 -------- target/i386/cpu-system.c | 8 -------- target/loongarch/loongarch-qmp-cmds.c | 8 -------- target/mips/system/mips-qmp-cmds.c | 9 --------- target/ppc/ppc-qmp-cmds.c | 9 --------- target/riscv/riscv-qmp-cmds.c | 8 -------- target/s390x/cpu_models_system.c | 8 -------- 15 files changed, 66 insertions(+), 73 deletions(-) delete mode 100644 stubs/qmp-cpu.c diff --git a/hw/core/machine-qmp-cmds.c b/hw/core/machine-qmp-cmds.c index 3fee45d568d..07a048d0a9e 100644 --- a/hw/core/machine-qmp-cmds.c +++ b/hw/core/machine-qmp-cmds.c @@ -125,6 +125,32 @@ CpuDefinitionInfoList *qmp_query_cpu_definitions(Error= **errp) } } =20 +CpuModelExpansionInfo * +qmp_query_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + switch (target_arch()) { + case SYS_EMU_TARGET_AARCH64: + case SYS_EMU_TARGET_ARM: + return qmp_query_arm_cpu_model_expansion(type, model, errp); + case SYS_EMU_TARGET_I386: + case SYS_EMU_TARGET_X86_64: + return qmp_query_i386_cpu_model_expansion(type, model, errp); + case SYS_EMU_TARGET_LOONGARCH64: + return qmp_query_loongarch_cpu_model_expansion(type, model, errp); + case SYS_EMU_TARGET_RISCV32: + case SYS_EMU_TARGET_RISCV64: + return qmp_query_riscv_cpu_model_expansion(type, model, errp); + case SYS_EMU_TARGET_S390X: + return qmp_query_s390x_cpu_model_expansion(type, model, errp); + default: + error_setg(errp, + "CPU model expansion is not supported on this target"); + return NULL; + } +} + MachineInfoList *qmp_query_machines(bool has_compat_props, bool compat_pro= ps, Error **errp) { diff --git a/stubs/meson.build b/stubs/meson.build index 4a26f795a6a..744fb759a2f 100644 --- a/stubs/meson.build +++ b/stubs/meson.build @@ -84,7 +84,6 @@ if have_system stub_ss.add(files('qmp-i386-sev.c')) stub_ss.add(files('qmp-i386-sgx.c')) stub_ss.add(files('qmp-i386-xen.c')) - stub_ss.add(files('qmp-cpu.c')) stub_ss.add(files('qmp-cpu-arm.c')) stub_ss.add(files('qmp-cpu-i386.c')) stub_ss.add(files('qmp-cpu-loongarch.c')) diff --git a/stubs/qmp-cpu-arm.c b/stubs/qmp-cpu-arm.c index 6249d7bde8d..0336508ac9a 100644 --- a/stubs/qmp-cpu-arm.c +++ b/stubs/qmp-cpu-arm.c @@ -7,3 +7,11 @@ CpuDefinitionInfoList *qmp_query_arm_cpu_definitions(Error= **errp) { g_assert_not_reached(); } + +CpuModelExpansionInfo * +qmp_query_arm_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + g_assert_not_reached(); +} diff --git a/stubs/qmp-cpu-i386.c b/stubs/qmp-cpu-i386.c index 4858951f8c2..f8a485c23ea 100644 --- a/stubs/qmp-cpu-i386.c +++ b/stubs/qmp-cpu-i386.c @@ -7,3 +7,11 @@ CpuDefinitionInfoList *qmp_query_i386_cpu_definitions(Erro= r **errp) { g_assert_not_reached(); } + +CpuModelExpansionInfo * +qmp_query_i386_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + g_assert_not_reached(); +} diff --git a/stubs/qmp-cpu-loongarch.c b/stubs/qmp-cpu-loongarch.c index 695b6558d7e..42231e816b0 100644 --- a/stubs/qmp-cpu-loongarch.c +++ b/stubs/qmp-cpu-loongarch.c @@ -7,3 +7,11 @@ CpuDefinitionInfoList *qmp_query_loongarch_cpu_definitions= (Error **errp) { g_assert_not_reached(); } + +CpuModelExpansionInfo * +qmp_query_loongarch_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + g_assert_not_reached(); +} diff --git a/stubs/qmp-cpu-riscv.c b/stubs/qmp-cpu-riscv.c index ce500ffa3f3..a448f060e22 100644 --- a/stubs/qmp-cpu-riscv.c +++ b/stubs/qmp-cpu-riscv.c @@ -7,3 +7,11 @@ CpuDefinitionInfoList *qmp_query_riscv_cpu_definitions(Err= or **errp) { g_assert_not_reached(); } + +CpuModelExpansionInfo * +qmp_query_riscv_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + g_assert_not_reached(); +} diff --git a/stubs/qmp-cpu-s390x.c b/stubs/qmp-cpu-s390x.c index 4556072a226..e664ddd68dd 100644 --- a/stubs/qmp-cpu-s390x.c +++ b/stubs/qmp-cpu-s390x.c @@ -10,6 +10,14 @@ CpuDefinitionInfoList *qmp_query_s390x_cpu_definitions(E= rror **errp) g_assert_not_reached(); } =20 +CpuModelExpansionInfo * +qmp_query_s390x_cpu_model_expansion(CpuModelExpansionType type, + CpuModelInfo *model, + Error **errp) +{ + g_assert_not_reached(); +} + CpuModelCompareInfo * qmp_query_cpu_model_comparison(CpuModelInfo *infoa, CpuModelInfo *infob, diff --git a/stubs/qmp-cpu.c b/stubs/qmp-cpu.c deleted file mode 100644 index ac185f09f2d..00000000000 --- a/stubs/qmp-cpu.c +++ /dev/null @@ -1,14 +0,0 @@ -/* SPDX-License-Identifier: GPL-2.0-or-later */ - -#include "qemu/osdep.h" -#include "qapi/error.h" -#include "qapi/qapi-commands-machine.h" - -CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) -{ - error_setg(errp, "CPU model expansion is not supported on this target"= ); - return NULL; -} diff --git a/target/arm/arm-qmp-cmds.c b/target/arm/arm-qmp-cmds.c index 2614aea258f..9d3a3d9aa47 100644 --- a/target/arm/arm-qmp-cmds.c +++ b/target/arm/arm-qmp-cmds.c @@ -203,14 +203,6 @@ qmp_query_arm_cpu_model_expansion(CpuModelExpansionTyp= e type, return expansion_info; } =20 -CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) -{ - return qmp_query_arm_cpu_model_expansion(type, model, errp); -} - static void arm_cpu_add_definition(gpointer data, gpointer user_data) { ObjectClass *oc =3D data; diff --git a/target/i386/cpu-system.c b/target/i386/cpu-system.c index f85dc4a7036..c03cece7bd8 100644 --- a/target/i386/cpu-system.c +++ b/target/i386/cpu-system.c @@ -242,14 +242,6 @@ out: return ret; } =20 -CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) -{ - return qmp_query_i386_cpu_model_expansion(type, model, errp); -} - void cpu_clear_apic_feature(CPUX86State *env) { env->features[FEAT_1_EDX] &=3D ~CPUID_APIC; diff --git a/target/loongarch/loongarch-qmp-cmds.c b/target/loongarch/loong= arch-qmp-cmds.c index 59f8069d8f2..99ccd47fce1 100644 --- a/target/loongarch/loongarch-qmp-cmds.c +++ b/target/loongarch/loongarch-qmp-cmds.c @@ -135,11 +135,3 @@ qmp_query_loongarch_cpu_model_expansion(CpuModelExpans= ionType type, =20 return expansion_info; } - -CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) -{ - return qmp_query_loongarch_cpu_model_expansion(type, model, errp); -} diff --git a/target/mips/system/mips-qmp-cmds.c b/target/mips/system/mips-q= mp-cmds.c index ccbdbf8877a..66f70ddac68 100644 --- a/target/mips/system/mips-qmp-cmds.c +++ b/target/mips/system/mips-qmp-cmds.c @@ -13,15 +13,6 @@ #include "system/qmp-cpu.h" #include "cpu.h" =20 -CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) -{ - error_setg(errp, "CPU model expansion is not supported on this target"= ); - return NULL; -} - static void mips_cpu_add_definition(gpointer data, gpointer user_data) { ObjectClass *oc =3D data; diff --git a/target/ppc/ppc-qmp-cmds.c b/target/ppc/ppc-qmp-cmds.c index 1338233ee63..98ea8291cad 100644 --- a/target/ppc/ppc-qmp-cmds.c +++ b/target/ppc/ppc-qmp-cmds.c @@ -31,15 +31,6 @@ #include "cpu-models.h" #include "cpu-qom.h" =20 -CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) -{ - error_setg(errp, "CPU model expansion is not supported on this target"= ); - return NULL; -} - static void ppc_cpu_defs_entry(gpointer data, gpointer user_data) { ObjectClass *oc =3D data; diff --git a/target/riscv/riscv-qmp-cmds.c b/target/riscv/riscv-qmp-cmds.c index d60c6073bbe..4d94cd9b51f 100644 --- a/target/riscv/riscv-qmp-cmds.c +++ b/target/riscv/riscv-qmp-cmds.c @@ -227,11 +227,3 @@ qmp_query_riscv_cpu_model_expansion(CpuModelExpansionT= ype type, =20 return expansion_info; } - -CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) -{ - return qmp_query_riscv_cpu_model_expansion(type, model, errp); -} diff --git a/target/s390x/cpu_models_system.c b/target/s390x/cpu_models_sys= tem.c index ccfc918b383..5cf6469f0c2 100644 --- a/target/s390x/cpu_models_system.c +++ b/target/s390x/cpu_models_system.c @@ -260,14 +260,6 @@ qmp_query_s390x_cpu_model_expansion(CpuModelExpansionT= ype type, return expansion_info; } =20 -CpuModelExpansionInfo * -qmp_query_cpu_model_expansion(CpuModelExpansionType type, - CpuModelInfo *model, - Error **errp) -{ - return qmp_query_s390x_cpu_model_expansion(type, model, errp); -} - static void list_add_feat(const char *name, void *opaque) { strList **last =3D (strList **) opaque; --=20 2.47.3