From nobody Sat Oct 24 01:39:54 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=1792606417; cv=none; d=zohomail.com; s=zohoarc; b=ZRyWxMc9YUWPwfrD6PlYjqnT3DUkOih4D72o1h8O1CdfHPm5kIWuNQ297XVPvHdh4ytkNVUQ4n+u8bOHEbxOf+bD7WPxso7uSDW8aBhfSmlZeqM2lbInVzOCSUFVMMx1CI1gJcfZda1tdh+Vv0IStmsIDar3GsqNXUQEvexCdOY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606417; 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=0vTdM3GG376mGwDjYDYJAgZ6IyqF2rbJbS91j3mgOcE=; b=SB7KggabPADGJw9SNYdY9uNT56wWFpZ/smpA/VmOjIwluusekpwgkPMc4Jjccs4Zbz+P8A3au3pxgX9zOu1OWKLm6vQtrRrYROTaMI29SG+eiXqb5w72UPZW7fSU3QFOr1XGabzI/VAUJZCGLPfG6qfMXn851f3/Q5a79I+oCxY= 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 1792606417370977.6302770526518; Wed, 21 Oct 2026 11:13:37 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJao9-0004ME-LT; Wed, 21 Oct 2026 14:13: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 1xJao3-0004L7-6A for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12: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 1xJao0-00081v-W8 for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:54 -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 69LHpA8W1359163 for ; Wed, 21 Oct 2026 18:12:51 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 4hetj4a7cq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:50 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab868fe362so1487801a91.2 for ; Wed, 21 Oct 2026 11:12:50 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ada48ed74bsm499152a91.3.2026.10.21.11.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= 0vTdM3GG376mGwDjYDYJAgZ6IyqF2rbJbS91j3mgOcE=; b=mDm8dg2dDPlOee/U 1GS9UUe4fhP6KbRsHK1BlAOO8/BEDVc1UKctnwK6eXYQYoUeoO6fDijxEHYqRHgw 0h/ehYg9HtgoWdPH9nyE+bj75BZ6CcXIao5ygAK1+MhlkF8rJ9Ts2p11jZe742LV Cw5PxboxB2FFaGNkprWMYT1kJIC/o5mdOWN2qkMt1h1HvQh6MkrayvKutXSUkpRM q8of3oJSPmvmLU9LpTdvfrWZy3eul025dRZhFTO7jtpv7/HlNEGOUt5dUawGqF4f WseM6F5lsCauPYHLDUnUNslbjsPoUGFpZXIsJTQ1asz1PQ0JXdV2ZPM5WTH29IKm a/aOvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606370; x=1793211170; 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=0vTdM3GG376mGwDjYDYJAgZ6IyqF2rbJbS91j3mgOcE=; b=Wgj+CuLvboSXSwrMjmoVaMH1VRgCCVligykOOVfFK1YZ9TAKIyHwbMjsZXKQwc8QKA 4GdMvmapVOkduBV7i1sEOPwsF3M2++L1T+/qLKazIv+aj+J/Q1g/Vnoo6SgAKbdqPj8W OQIEpajOQIqL7byNga/Tyo2lVsMVBx4vCibls7W0RoKE81uhHGF1L5WUHYtwbHKOIRzU /mC9MSm9lpUZbVl/IN8plSjSr113dE53hw7uzC8clUuen2Fx88Zmg4GvidJ5QEajCNGw YHoBxuWfuqOqTpnMRynQ+Wr95oG14LTA3wFnfceXZWXsYRCi8Hw01qPFztIpLEodOmS6 HpNA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606370; x=1793211170; 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=0vTdM3GG376mGwDjYDYJAgZ6IyqF2rbJbS91j3mgOcE=; b=gtL+Jpumx0AHVi0kiaviYGOcrIoxCgiyOBnRtYqtCM8Y8E2No0YWkbJejlssf7KG/B uZRBt7NCbpkl/aEVGMT03KbTK11vCafYSb12nC687PQyoo2m2icnunaxH0lb1g8nFS3z P4TK11dBi0MABce8nA82ByDwpY5WXhVDB96yKw2RWwt6W78tAhsQIK+hdAepn5cea+cl vuP97t459uGk8z2VAYulUw+7yQsjTlKefkAzMlEEv3BHX8QGpy6QY0IvgEEY3S3Rzib2 ly/wnMoJAtuxN7AQRo4empmVE09ZWiKO1d7ls3NmfZn7bTefSBPWbiDVg/YQuWh00/Dm Ft6A== X-Gm-Message-State: AFq9FYIls8OyApmqYEoS7uo+FJ5VVIi1QPM6Cv75A0lQc9/kp5e0p+CV pKAM/p3L9p85+1fMQ4P8GXqDIc/f4GEr3xSI4Cgu1R+J396RyaZAPq/CpFHpv9ZPjlBuw/Dj8Wf HaurxJ+zPZv2DF2QSlKamyLcBXNc2XF1qDSHVJsFfTxBt9lXo3iW5/zHO/iKTz0ytZQ== X-Gm-Gg: AYBFou3Inv1IqZPtcO2Z/BHFxMR2kMIGQWN3Cvv+ypnSpqzmKC1yI5W9tODXqlpOTN2 h1toHfG9AGsMJsWNXidAoM+b1WGfVJ7yoE67MPrMXm8XiWJRDWDlm5eOWY3yhm9Tw2VMNBCYpKx CN37KF8kXmC0DBMXSJ7Cl96W+q7pv0tuP89KZzzcC0teL+qhSJaLaMNo9P2iiKDuG+DudoHsyu6 k6GdGJcJOevzSfzkmnBEN9Z7oQKa7ePkhL1x2pHPeMJQQZfQr/ZjYnXmVVeTb2S0ZJNhCWiMdPq jh5MrhjQDKe4ODj9SZaiXJFqLwMJvRDr3jVuy2Jh/zUz09MTVTPUzXd0ONXBYNu095HF1jZEwT3 hsjnxpZIOur6REqZ6riT4nyKGbdUzEmbfzOjPM+vRWyDmIhVi2Oi6h9UPooG1+Qs= X-Received: by 2002:a17:90b:254c:b0:3ac:9176:e83d with SMTP id 98e67ed59e1d1-3ad86e96d6cmr2024329a91.21.1792606370340; Wed, 21 Oct 2026 11:12:50 -0700 (PDT) X-Received: by 2002:a17:90b:254c:b0:3ac:9176:e83d with SMTP id 98e67ed59e1d1-3ad86e96d6cmr2024311a91.21.1792606369854; Wed, 21 Oct 2026 11:12:49 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 01/21] target-info: add target_heterogeneous Date: Wed, 21 Oct 2026 11:12:24 -0700 Message-ID: <20261021181244.867840-2-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: DD60nxwmM4sFij5bPx4tuIY43Njs787M X-Proofpoint-GUID: DD60nxwmM4sFij5bPx4tuIY43Njs787M X-Authority-Analysis: v=2.4 cv=N768hG9B c=1 sm=1 tr=0 ts=6ad900a2 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=yOCtJkima9RkubShWh1s:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=3q1FPIo8JGfx5WVhvewA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX+EZ58AvwTlvN wVRRK+pynroPBXRG/BwriLva7zxodQwz+/G02SJ++c2GJnbL0TUKPLvtiSmeZHhuvHrwqkLUgYF V8JQJnmCoASoIIgwtqiPvDNvta/qzHcnqVSr5C6Xw6Lgb6WoAv1p8aweJDyEJclIMSEtZGcD9bN OMtpfBJPZaWtIYX7kuKsdjFQwi939jk2TYIOGYnT6EXThiqEiG6RmmGBMZ4PmGeK60kV81lSOOS YBbipbMFvtLlzJ1uDUFezWZB51X1ekA7PJEEhjPdmoY4+8/EOLiJGF3c4ZOUncy2YBVvVbKZY4F 5kEn/+1wKc14Z+A/b2SLfrLbHKsdpWxoG4JN10YEMqMfuVZXJXOkESGFHo5JI2qhacLmSZcxecE Blm2zpmswX86IajJfBDkjSe6OOJ4sC2U3hh8jNqpDdcuU5li/LgfNE+MyIvPoWN43rGfWqaZ5CA FzM7YnsoXMfXJrmbZbA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX58EZbZL2XSuC TXB153M6+nwoxv2NEWwCRG+02lhmfREs8Ub+tHzyezPmyaMwfelstX9WUSU4NT9cbIu1Y0KcM/z c5lvUDbMGM0hGrw7Aru1rPLii5wOCb4= 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606418739158500 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 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 Sat Oct 24 01:39:54 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=1792606651; cv=none; d=zohomail.com; s=zohoarc; b=RF+5SADFshgvf9OdCaQqy2veOSLK5Sj9/hcDrs/HAxNN0XXuNeUNey4YYGjqr/1VT4C2zt2fFyQhKm97Jhil02UOCNk/AVnsPcSla8B2vosn/ypVElVhMunV38Ef32IfuliM5V7zN3RDSr4uEdzBh/AghjBg4fUO/36o6CItEXM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606651; 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=hKm3M8SW97wrfjSlpsXEmZiJdKTe9+UAL2wVL8taLd4=; b=mKI9i/DxXSx+3VdI4z5V5xsZ/3W0CD//fX4zieu704Ww1X63hiB0LH6Z4/9nO2KqKXWuBRPh2M+ScTF70dB+5Sn7axwa0JtThX4UwPNv/bf9nADGdYO0PknLVpWosbLNjsJ+7esxapA4gShfrCEeGwiam4m7c/E1UC4qNT22gZU= 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 1792606651431607.610086407581; Wed, 21 Oct 2026 11:17:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoC-0004NC-2w; Wed, 21 Oct 2026 14:13: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 1xJao4-0004LC-CM for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:57 -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 1xJao1-000822-LR for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:56 -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 69LHpJDl1359519 for ; Wed, 21 Oct 2026 18:12: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 4hetj4a7ct-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:52 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3a46f0f158dso138524a91.1 for ; Wed, 21 Oct 2026 11:12: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-3ada48ed74bsm499152a91.3.2026.10.21.11.12.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= hKm3M8SW97wrfjSlpsXEmZiJdKTe9+UAL2wVL8taLd4=; b=CLAZ/eWmk7ji/BaV z+kAQFSbbssOndaaPO+Aykw40QqY+G8T6hykq7LGJrNqBt11IzOE98g7x7Gz32z9 SEbfrW54JKELBzXEiox76n3QQ/Coesn4C/oLms1gtOLdDERy3tdgGa5GXQ0MkzSB u5MJZi0VSO8tvIjx/pK3ZqHgogwvnKNT0a4iykxsyUFpXuhvsOUHK3cd2aqHaCcb CZQs517Ve+GvoN+I36wpNY2fgo1zUhGNiJekxf8w+WbCN88pYfTm5H8kJrOjS7A3 cQEdszBVR3FxcPc7cBU25wuzv8UlAm4uzpzZK8lq+sm9hEfYnraqKzwTBq/gTKPE zi+oCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606371; x=1793211171; 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=hKm3M8SW97wrfjSlpsXEmZiJdKTe9+UAL2wVL8taLd4=; b=fDCFMTsvt8CoT90QQuloKH63FR/eUahpevtHyobiOqEZ1IjRQUJMX7Tpr5KDrDkj3D lbp4IP+GBJvWFVjlPY8Xha5cYjw9tdqbGCLCViPXM2Pf2eUS3CwYjiIsGZlxUMDMsCv3 f8Wu0Ux3Z1JBMD4ki5naGG01Dej4nA9q+mGIpJw9K/43D4i8OM7x/X8P6CdY3AfFaYCM +ohmRMtS+3wn6zpLbk7yfiBcNG1mC0eRVrABO9vp7aWlyjiS00AZHQ7Qc++bWiGm4kM2 kaMNI/Zi5e/13zsqOwkE5jnNLkarQEnHqyWUiZND058KEop2WBKIrEKtL6LGUNko6HbC dH8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606371; x=1793211171; 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=hKm3M8SW97wrfjSlpsXEmZiJdKTe9+UAL2wVL8taLd4=; b=frWzNMtM/WEqeEQcMBDGhWkD+x6aPBqoMvV0M5QtaipeE4ptphfiiCB2jMjY+Kw9SV Q8hq3E9tPDQfGEiJdlWSh+TeR3I0bPseD6fsIYUz+m6qgLJjBBwZ0VgzpHKOLIPyg396 ZZ849Id2g4n02c+mWyXEdoQPI4h6LBzIb+ukVHC2nn7KV/U9TO6a+YFa5uN9Yh+Sa4eP IDYCERWAAyNiE8OFu74WBCRXMgwFJMafAYMl8TxoqSC7uC88/Lwz+L7vIrPqUu45JICt 0rlsTrA3IHaQW7I2QV4vVbWLxuEXvSkqF7kU9Ldi/v+A4Ux137xsDsPerRwamE4cRVCs jWXw== X-Gm-Message-State: AFq9FYIbxact2R6Dl4jbC+T4qfM7Ll9RvalCRooQUHO1hMz5ylCdy7WV VnlL5TDvIRfMHKzGF6PPfFiT7CCM3DVX4/LJEJAsko7BwE0js/JkkTKboMsWue4tCk/pQ6nf3Bh 1Rvbg0MMCbjmtzLoAeV1N2E33HNDoJJo5fjCinf2BKt/LuXuiQ7CFqN9h98ZgqBPTXA== X-Gm-Gg: AYBFou2m6KiTc9rH7d1PoT37DNzpzC78cEBfHzmZ0N48YOfVedUMtw4R/nqcDNTjEqD UQq5NaG/hUHvQDiNQcJcxfwSrAsZ6zmkHINzk7LHqVf6JXLUZ0jQczTBKNrRG1hhZCKB2101WuT PNqa5L8exhTRk9kJisQQpHdYcvjQ4ZMR/8Sn7UwSC/J2BAfiIQp3noE2wsDZa+fUeocruwY0/2l dRUbcjCygCI63drmhGrMnGeGnsJVGXMzxoarLL/kozPwKyZzHTjPJ9T0OgqZB7O+cjPGeD1Bv3Y c1ZxDD5Yt5m61RuZ0lYDlQT6V/orIQx+l9TAe0Sjqx/zIqGhxGVA83uG3ahVz2QVJEyve9NxIZt 5m8NBdLyQGffE0Y5Lv95Q3DlGSXXSiCQWfMYN4bbKRwcYWlkvzPNWHeW1u8gZFAE= X-Received: by 2002:a17:90b:5109:b0:3ac:928a:68ce with SMTP id 98e67ed59e1d1-3ada6c9d358mr63978a91.33.1792606371005; Wed, 21 Oct 2026 11:12:51 -0700 (PDT) X-Received: by 2002:a17:90b:5109:b0:3ac:928a:68ce with SMTP id 98e67ed59e1d1-3ada6c9d358mr63959a91.33.1792606370477; Wed, 21 Oct 2026 11:12:50 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 02/21] dump/dump: do not dump machine if doing heterogeneous emulation Date: Wed, 21 Oct 2026 11:12:25 -0700 Message-ID: <20261021181244.867840-3-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: tEwk3hjXIgrzoZqsbNiU59PY2OR5FRTQ X-Proofpoint-GUID: tEwk3hjXIgrzoZqsbNiU59PY2OR5FRTQ X-Authority-Analysis: v=2.4 cv=N768hG9B c=1 sm=1 tr=0 ts=6ad900a4 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=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=3q1FPIo8JGfx5WVhvewA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX1U7IFJg1mOMZ 2iOJPmqp19UQ02SrB6NF/v71YT+DSFrGWBDEmfOoPrMoCDzpCOjAxo+GE8abk138Y1We5HkNqU2 TN+Xcq1kI5rMkHtxSlV5LhVPqeIytPhBLACq2HZqn/J/XJXZQhvXLIm2Kn2DvhiAhOcsQKpyCcm 9ELLAFIs5lRdPB0ty6takmozkaBqu0a+bhow7V4o5Qzkpt5424/DwGhpKtjv/yUeGl+Dkbk9p1c SK3ATAV3ZrHXEcx3+M3sRV5xdFf3BC5Syqr25GckbHuWOOqnynnuWQw53Yhe0E8mCh713KpSXsu VArtgyZHzKlF05sRXVypyOjPsbbKudwhfUJFxWDut12i885yX/M8Zpt+xc7xWfLE54Dz5F4Exay xHnyRXgICkWus5Qa5aN7FNHVeoj3n2kKitWdwk0aDh7PGpanK7lLxh9zIwXHYBZ8QFfWJ0568DT J4QrxxEjIY46XeKKoqQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfXzI1dX6+bw2Mt XzthL4/U20cnXq0Hagq3qCGakqOG6gaYhhyFdJhJlxAI0R1GCFE1EG2TPXigT2pKPMZqqnWgWyv BgF+CSJUdFVMqgPFd8Tpg91UhlZSTXU= 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 clxscore=1015 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 impostorscore=0 lowpriorityscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606652691158500 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 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 Sat Oct 24 01:39:54 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=1792606469; cv=none; d=zohomail.com; s=zohoarc; b=IUNOZ9l9wvLl299c0EeL93H2yQb86K/di2W/qNK9EuXzCL34qyT3A74Uu30cAFThX1JSlQ4W051wiY03/bXO0kTNrPSgtHvyQ5CpGK8Rzk3byQvQrxGjIn4ANsAtAKVI6s4FGSh8GmylkakxxQzeolqHkpaMp0bbphsBQ6hzcpQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606469; 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=MZksaQUhXTz8dgWapwPFSun/vAOowcNQIYeUAsmgEDk=; b=jqzxHtiJegplZ2byf4A2KdOtwyTHH4wXBdvqKS9JqqLfW2247mLDDxhz72b6b8YsFxnyBcaTLlCzlbjTFxrw/z0XsB7dELOL7Hxz2Dbl8mfzn7DhPQz/zXC1cC8JVHlGJ/wyDN5nfdyfDEoyUVDxwHR/g9+ZklHYa9VSWpne6Tk= 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 1792606469281141.44498489800503; Wed, 21 Oct 2026 11:14:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoB-0004NB-RD; Wed, 21 Oct 2026 14:13: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 1xJao4-0004LD-Hp for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:57 -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 1xJao1-000824-NR for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:56 -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 69LHpXZb454741 for ; Wed, 21 Oct 2026 18:12:52 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 4hex589c1m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:52 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3a4a0017549so2696138a91.3 for ; Wed, 21 Oct 2026 11:12: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-3ada48ed74bsm499152a91.3.2026.10.21.11.12.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= MZksaQUhXTz8dgWapwPFSun/vAOowcNQIYeUAsmgEDk=; b=ohwnHC1f6PBd4hd5 mnh2bKoFeJNIe1GnoG8kZjC78Zlqlg7NB/OD/3+wIL1cQNYLBkUjYXvnBnS+tDD+ a+9NtzGn7Lt058V7BtYCvh1+yBK3hyplvpN0ihlYlqDDs2o2FoL5xtK9tzhmhjBM I8GNwE9wIjmAKjOvjJBZZ1rrwVAqA3IMIIX8gfbygFxPFudp97q6YPVorVM6XGQS JEXVKko3h6fsfgt8OagtK76C31rwl3igBkPCivOShQknBLcu/HxvePZs/PYRUurv TjSDWrVfvNLyTi6WVhElgktOByv9s4SP1ZpqE0H/PnmYMY9wu4meu6v0Phhp7fSb /YIlZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606372; x=1793211172; 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=MZksaQUhXTz8dgWapwPFSun/vAOowcNQIYeUAsmgEDk=; b=RiSS2iSG+v6fAQvtfuyFVeE0GAyo/NgSRCm/KpNWj79Z6jzGdKJY8gsgPVsA1KjYjm Y6Le2uK7yHBc+DQP29/rHxTs008G+ldslEvS8R5zmEClDDBT189HouajgZ+A6N6LEElu 8OVjLTqMFb/MScQg1aSJ99jB0vgV3trVsGs52CMUiLE+MnFnKPk+QTmLrNzbX4I0rwdY JIujXvUQFvoLLZB3IkzB/3V/Ft1SWh6utAXnjgwH2q1amSx+Q5P+qUTo5E5Mj+MOWG+6 zNcxRzEPiY+/WVvMN26Psu3t4OIhsZBRFTm0z7sZsHhMEN1gml9WlPs3xhPqap1XgeLp y5qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606372; x=1793211172; 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=MZksaQUhXTz8dgWapwPFSun/vAOowcNQIYeUAsmgEDk=; b=JgtrJCi86m385xYPzTvzhE2g10V2dd1tMNBQpDDq8QNoNiyfrFvqGkyehjOBzwkA4O LViaWEt27r4Djwa0bTxKbYodPQFMMOapbWle8BkOtFIO4GdgKYpQS1IaB/QsNsbUUDHi pvhBhKvRZEqsf4Q5LkBF1Ehyrk+oGZUMg84snvbV42DPkmsrkTeK0kn74DjMuHDaiD4a RvEI2dSw/hSARL3H2qX7xk4LkedQaOrDkf7fTL3rjTm3XGzjLyfH1pDbDQMH+0gcfaQ+ K2SyLZ6Iwn+dITu5Fq/vkYI7Kgwf2ErD6F15aFiGWSDbLHdlqmYdpmzUFDVx9cYaftrP VZWA== X-Gm-Message-State: AFq9FYLOhRS3K9trBlLOuzZr9PCg+MlH8j61Daex8jv+4WnMRzzc4t3A i9xafL+UoPUCDRqm5QgD0izHW+g0/IefZoPdpI+7fZNB39cM92S6UjI99Glg2wc2mS65zFdn5T2 IK53hCGGcAGe4ioS7d664RggnaaHu61fBhIx1Jqtl/eskaPD/OQZUQ5i8YOuYQPnBrA== X-Gm-Gg: AYBFou1VRe9FIM0Q/1yEXSHSl9nnhh8V/ysmXNhyaq8q9d6h5FSE2oq7VNTrAX9YW2V Zuy4pY4lCLrS6LbRByXAgLEgMl3YcgqWzq3oE/gvvBqBFYWg6phjl120+axkqNW5xY1ENqZD5ue 7JB6bxXNeHeqaY5S9qj1wfgdyzDsbA116IODKHVVDThnmw8NpUd/48fKx4nBjwcR1EbMff2/+Wj QOgA4IhEXvQhvVSPnGEKYChJu8kDgdaf+QNyt4MKf23ypSX4RnR9Reb2hSo/+RwBuPa1S8eVk2o 6kc6BHXhIJgZoQU9RCpNEgaRrA+gK2be5Sf5khNbo/usmkXJH9Iav56h7MBGCNcyFg6qhDtMYY5 jHrzZbepGzIsdMBG8dRiK9ChNn5UjYynVGS1qV7rKElBxw1y9x5xI/Y1TNEWVEv0= X-Received: by 2002:a17:90b:5645:b0:3ac:b7b9:6471 with SMTP id 98e67ed59e1d1-3ad8707b58bmr2150658a91.65.1792606371696; Wed, 21 Oct 2026 11:12:51 -0700 (PDT) X-Received: by 2002:a17:90b:5645:b0:3ac:b7b9:6471 with SMTP id 98e67ed59e1d1-3ad8707b58bmr2150643a91.65.1792606371223; Wed, 21 Oct 2026 11:12:51 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 03/21] include/qemu/typedefs: add ArchDumpInfo Date: Wed, 21 Oct 2026 11:12:26 -0700 Message-ID: <20261021181244.867840-4-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX3jT8JOWFD/S6 vn1i0atOqp5+A3xXbPtmHSiJ6VCSvrlhZGhk7YTc+rqcySr741A4uGcWCDbvxX7bloN5v5ol9Us 5VPR45BSI8yoUd/WxSsjlkQBO2MOsB0= X-Proofpoint-GUID: L_jp57cW1HvC4zcxdKaRF23zBs6zKFAT X-Proofpoint-ORIG-GUID: L_jp57cW1HvC4zcxdKaRF23zBs6zKFAT X-Authority-Analysis: v=2.4 cv=Ku7YSmWN c=1 sm=1 tr=0 ts=6ad900a4 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=YMgV9FUhrdKAYTUUvYB2:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=WAb2S511oTjnKBTKeboA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX6hDv5+P4kCNt tC6chGJxxTBnbyrpYDl4J0fzou6isoBHFqGJIFVqCBjHNn6SgUjCy9HOh5qmv1t/WfVy7SWuHXw 3LkdX/4/gc+BKKkAbiIW2KA5v5WFFyU9/r9M2rlpy9LlR9+h28ddVKu9+3LBFZueFIhoNT5dP1Y wltkkw3FJIQskQCtnlMfyVMmKwZLKueY/1VTQkpVjK8q98MBRsQXqVdZc59XylLBYrQ2b9A/438 nEOMjJwngDtOrLXOPZq+EsWywwDGKEnCueiIicEEF1W41RwAo9D6T7gkNMpQjIj22P8gGtlNNrI AmEosyDjtb7l582cp28tTz3OUfYbzkBfDA+rGAhwpoQCVLHJ3JdoLpKG1xt63ZMj8rK22CozYXa oTZq9ByvwjX2tZMvk+DdqZfN20+af3mgOJgBbra2rzN5N07UoybAGnRj+nG+PUgrOqdubY/6yUr p5W8b4Cxa0u3rGodCHw== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606471463158500 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 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 Sat Oct 24 01:39:54 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=1792606542; cv=none; d=zohomail.com; s=zohoarc; b=RLyMrow6R448C7fahmjBC7V7oLWdGLtTClQQEnh9ef2aoEtzHs7ZIU4vrNFHP3nrHxXstDFbU7mv0f0p4JnMWqFmsmHozGUCxZIvEFNFtEGrwG29aH+SvcR823mtcZwAQTPdm9AdlnZzdN4Tz7ov6tXAMaxQgX8xAyYPmZpdkuc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606542; 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=BHCQXaYrP4rutLahhJMCE3dN2TG6l/19YLFPj96v7Mw=; b=Z9h+KN1Vxujwsw9o9VDC0Vz0DnQMHSExc4NJzuIAnM1im+bA8o5xLAaRZKrRTxbnh1bucxtRxv64xgNAXgUkMugEj8EVrwD9rxEYrgsrcYKgp91aExyM0hgF/JvQsX3A1y+L8NOiP26oLiT70T+VGnZksVM09Cn2GBArgh8dAZ0= 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 1792606541999143.8340959723348; Wed, 21 Oct 2026 11:15:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoC-0004Ni-Of; Wed, 21 Oct 2026 14:13: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 1xJao5-0004Lo-Sj for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12: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 1xJao3-00082D-I8 for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:57 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69LHpSTq996557 for ; Wed, 21 Oct 2026 18:12:54 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 4hex7vs9th-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:53 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-cc4216aee8fso948064a12.1 for ; Wed, 21 Oct 2026 11:12:53 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ada48ed74bsm499152a91.3.2026.10.21.11.12.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= BHCQXaYrP4rutLahhJMCE3dN2TG6l/19YLFPj96v7Mw=; b=CoQA11TJKkQSVXmG KsSizqQBzcS286kxd2SbewWgvh+FAQZ9fjv6vbol5Bcs6wziNu6BJl3PL5WvbOH9 8i6iM6aeqhtmvvz3MGhE7LfOp2xnxPf696sqfLsM29k8y1xmq002cKQWZ7udgZda cYUtoYjdzNDFl+kkqAjkCmK1sqQRhzeEDYT4nlkXrMIOUIre+Z1fMtBXswXAwgsl XQegzN/esvoCAff7Kx2t4xxtX2QJS5tZKeohy7hDOqjv0K8ZE9hniK4Xzl4CqVPD ea4KwKKnSRKwriMD+68+riYa7aOiQlEq6R/SYppbOvexP4qkV34SV59vuQqz3TqU M1hYjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606373; x=1793211173; 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=BHCQXaYrP4rutLahhJMCE3dN2TG6l/19YLFPj96v7Mw=; b=QkHbCPxuGCUT3mT3LT6j7KKeMw8cdMsueqyiBK7y2VG+KNnDnFqh2NHetkCKe+sugl XEsxXTZZC1cHGBvVBHuetFoNpX4p/wgtFUAt5Od34WfQ6cNtK7MBBLbDB1cqr1gJ6d9t 7r6U8aKP8YrLUr1nD0yqTyy6RXOLrOIlR8kL7M2WD/ExUrT2qh4jzAkPp+UhQbGqcsBM 5LpSJBRoo1H0SOnJXeOLmkJnMDKqC31qzXgNfEIKTUVFBaMl3HBGcjzDdnjHS6ztRvZF 6gaxRAun6uXmOmXHUoMWCTBbJGvaHQYxtvV4eseEfGfRu6d2sSk4CgRTZQPzTE/FFVsY filg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606373; x=1793211173; 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=BHCQXaYrP4rutLahhJMCE3dN2TG6l/19YLFPj96v7Mw=; b=Op1R9XrCM0pXr9g5edRPB1o5lR9WgkRkypTAsIkXUlzkfHnVsxFeIeZQBhqymECATg LvBsfkVyet8gzp4caZpiePG0N8cwHnsLNOK6PnsdMQR5L1xHKNSsJxFI9z3TO72Z/9pa 3vZsUyz1u30xiety8GxrCcoFmSi+/wlQDd77m7Uq/Zq4mwzLg3p6C4MmTh+SziMrlM6U S42PzAdvx4Ey/fgc6cNMCZjJD8QJXVhmUxu6LXqgSV/YgHublNhZ15vhh1lA374M6xhu cs5sf7PF20yBSlJvmG+Rr1uGeNpxOXfGFt/c/l1dvAPidIRT9EfHUSyYwALU21G6Hk1n Tnuw== X-Gm-Message-State: AFq9FYI2AHfMNocApuPWNy6ngC/JCFTmmajhynyGVL1ZEB7nAycRWOhp oyldi6/iURKrUbD2BG1zg9qwf6LvyrDA39c8XXcw8p1pieQkDNsPj5vdfG/GTrN7BUjpXqXdGLg /ycIw5y8GoIRQtODcSQX4srUfGEwKzs/uLXRIv15iwXVXWHqA2GLSrziUkBTo9BwwRw== X-Gm-Gg: AYBFou0sTB28byoaGkeB9lRz2NHnI3EC9g348PmisWPScrhzFkbWmhudZIb0n4KPoVx WZzYh9R28H+kJa9Mm5cM1kRDzjNGp5P+GOPekKYbgzzJxyhT4nl3/g+Pr4LCbuHDqBUAdYUXaig JYXRYH+Vxg2QFK/G1dqNtl1nraYcmj/z563ub8p2ESlQUspB4/n+5Akh2NZV1nSbAPQ0TKDCvaq 692I3PwOwacpfrNBmvKLizORdqDSAWpftPpsC2fj+dRxPh+Bhp4qqs8G2YzhHWPthwIizIduEeq kamNqEWzsMTArFa5OYFpzXYD1G8w61UrTAwNt2JpnuUakhYVtpeSh2tkBhvCMvQoJiQSrolDMWc Ofc60e2K+C5K8/mwr2NDKSlFRdvCVfVvLzlYAsIf+oCXY/7AEfzv8EC+71cYQq1U= X-Received: by 2002:a17:90b:258e:b0:3ac:9a03:20bf with SMTP id 98e67ed59e1d1-3ad86f711b1mr2404821a91.55.1792606372734; Wed, 21 Oct 2026 11:12:52 -0700 (PDT) X-Received: by 2002:a17:90b:258e:b0:3ac:9a03:20bf with SMTP id 98e67ed59e1d1-3ad86f711b1mr2404802a91.55.1792606372241; Wed, 21 Oct 2026 11:12:52 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 04/21] include/qemu/typedefs: add GuestPhysBlockList Date: Wed, 21 Oct 2026 11:12:27 -0700 Message-ID: <20261021181244.867840-5-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: MeRfKehZNOh4gqlp0xRnQxMjAaI0n1ED X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfXwFGkIZRciXNo XGFlZzwS1v004hYVw2BsunrHdicLH8NlUf6sWPTN39tBRbC+emXyO/ZurseIclWAXpobM3Sm7zd eB+5uL7gEmV+0JtKURKiryG/zb7VNWw= X-Proofpoint-GUID: MeRfKehZNOh4gqlp0xRnQxMjAaI0n1ED X-Authority-Analysis: v=2.4 cv=e4uT2qp/ c=1 sm=1 tr=0 ts=6ad900a5 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=ZpdpYltYx_vBUK5n70dp:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=De2SjmbKK7625g2b_egA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=x9snwWr2DeNwDh03kgHS:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX4OOBp4pcUgLm q2mBw5/WHutm13439j6kyXZj6pboCBGPX1Gmd9hBj2Fz522CE1VecjHxo5JlqKXmIPrkw4efRSd zjDetOZo09fcXhbJw2zWBbShae0Uus74mm2Hm2iUrTFupRK/kZ51jgENX5kjrJ8jvh81uljkfle SPgTl2vGpQFzBi/c8HJiedx5i7D9u/cr2iFTSCZ46Nmbnsg+6Hle3dSsvfCAHHl/J9afrcH/V+e iJWWzW52+kpeI3pLCYLaSO8yYQisY9Hb9hTpuQNvVadghhxjmfFXwUjJ/7VziBfy50QHw+NgU30 8FW1cfd2B1sIPEzvohEP8szty07xmDPEBX+UTPleNrefbvteSdP5GMUKYvNjfdJOGPG98Dy/NSK uAyAE0gvQcxhAu+c8+AF6/UqKYEk8fii7IVhRhNcnlAYkFw2BSqPSz6w0o77NMYaLru+JLkNDd8 La11Kio2eSRMPC7T9pg== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 lowpriorityscore=0 spamscore=0 adultscore=0 clxscore=1015 priorityscore=1501 suspectscore=0 bulkscore=0 malwarescore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606542721158500 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 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 Sat Oct 24 01:39:54 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=1792606517; cv=none; d=zohomail.com; s=zohoarc; b=apBzl5xvA3LYUEhMHMLttn5ifTwmIMuO/VTM84f586Eg5LPSDk2ucY5X/M5yEuuQaqEhTVqHCP5c//wr51fusOaFRtzabGK9x6lDoE65PlJlqazSYscmSVrkU8uYF8Fz88P4m4afaCeJQFM5u1vrvIISApzDlOgXLkWbvoz8+s8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606517; 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=Zw6uegqP/ztylxdIrZULX3L8ibvztzh02NBpo5o2/1Q=; b=fEGx9KNIScOzFKMe+wjn7jESN7gIKHzJRWVY3iOq6n5qyGyT6275GoZHSszwxMnQDPrtjO65ajUYfIgkpHhjjwbqUsO7Cxwzdw6ZcMmnf+jqbGQfeAMD4KoBpJYUGaAKJ9iUT79oa8GWpJAYwMnOZa0F3WoHCtUx+ybtIFYXSDs= 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 1792606517776412.28934065485555; Wed, 21 Oct 2026 11:15:17 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoE-0004Nm-ER; Wed, 21 Oct 2026 14:13:06 -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 1xJao6-0004M2-W0 for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13: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 1xJao5-00082V-43 for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:58 -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 69LHpPqh2384281 for ; Wed, 21 Oct 2026 18:12:54 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 4hf0ke0jtq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:54 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3a46f0f158dso138554a91.1 for ; Wed, 21 Oct 2026 11:12: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-3ada48ed74bsm499152a91.3.2026.10.21.11.12.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12:52 -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= Zw6uegqP/ztylxdIrZULX3L8ibvztzh02NBpo5o2/1Q=; b=dM86rbkaCmHn1pxb H3ePZ8C8v2Wlboz9BAe/Jm6NLrugzVe5jM/0mtwrCaaEwrn3m7JXZ6FoLnJOtjJY vVH9dzy9tldpCEB4HuZxKEFsd7naap9eAzi/8CJdQAmQ4z8mCFWT2rYZyWkMHr0Q VOaa2KEX5rmacS1UxZVDYU/JzO56/lIz260/M28Bm2Mbc+OuAWoSrJ0x4g44fzMQ 3LwurYs0FI6psFmGQ9GribKNZmG3UzXwkyxVw9loHThqPBfXeWstMZaSk02ty6Or kkXeAU5CQE4TPN3lCaJbMkWKXaNchhoynZ0Qu1To8d3MiW/PgTHbJ76zhM84NVnl O3MNZg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606374; x=1793211174; 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=Zw6uegqP/ztylxdIrZULX3L8ibvztzh02NBpo5o2/1Q=; b=I/Sfg1rBC/vmOh6dg8ihbJZoVYNlJZVEXY2IwCuE0r/6lysyokTayFcWOVg6XTF2Gb iZMw9PwDhnVB2A8moKJRyCLRQuX180KaLV51pUMWVXEWSw9ywo997y6OVLat+anD0gZX 31lAFs8Lab/sFhUQU2zTCjTot/WmZBQEgZnrr9RsVzNsC5sBIFGPhXRXbFX2F3FXo4vY 7vNYGhI7Z/OQPRe7IBTuoRBOjbdDMVOQF36qH/vndr4iB5YVOQvFLVMOQiOEzSNRQK35 EMY7OUmbPWpdoccqMonjGBpgG3tg5HmJ4XYsuGl8zG5iVB55LNWr68qeR6qMf0FsPdrE 6hMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606374; x=1793211174; 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=Zw6uegqP/ztylxdIrZULX3L8ibvztzh02NBpo5o2/1Q=; b=o1UU1Me6Uok6druqsOrqg3to28tT2esZeUygldQxXFyxD9B4aWmnOUkIUibsGxXfnQ 5aGDvCy8xF8WRjkO5mex+UQR0oH3EZX9Pt7Eh0V5k4ZcYmQgRQ/q1GvmDhtz24wOdmFZ ac8sGmGgcsz6n+L2Dk1OPXSmigHtmNUeJszddmZVF4h1TxObBuQMHsk6Jt0n3VSTTuaP G1Tu+13wyaV7BmEDJ/K5eDD72OzxHxKZjXHuKyRoSw/vd0b4KCeGuc4haUeHV7dbFtPr uYisOC0LN7nTHP9VRGgNk0AtuWmEXPGwUUTqtgW/njzEKzAi54pd4geq+ltZp/BYKQ2e SOtg== X-Gm-Message-State: AFq9FYJIZth7ebqSISO9UrBKU0idqawCW6IfC7OmDgGQpWsOPiH8sh+q AvEYHPcHV23K+SIz5WAn+WKiyjctYdLJgrHAcIl8o+WBfv+QXH8iRSX9NfNk/Kk61tScKWnRs2I OVTe5uWJzCtkpL7PPCznHne/lcEFYZPvdvmXny/gMEHb2PDCLi/1LBY3V6kz7r0/9Eg== X-Gm-Gg: AYBFou2SGrN8rttTjIQq5stpI6u31L9WuuzGb1HYbuB8lsB9ST2Di+ORgxeC60VlDpP 3H25uKNUNsQ4fHXNJLV2dc21vNFMfxcEByXs48tGe4AabVNhhM8ezDl6bMisoJLNgGQVEAtC9jW mDQtpFOki0J17k9nVIxUMstapKB7QvW9fMcl6ewTosNnGAagjY+DY99CaPxHWFDYVRW2tJiXoFI ZlJqWqLC3wwx5/8Etkna7mYbfLPKpvhPS7O/8mAJLfvng9+uyK+xvWEWvCIMN7PLneo/UqvmIl0 LHgHle7p6zHy5jndqHGLHPkmhCgWZEf31DmOxkbemditedG5JZhcjS4fD6JHn18xjcGM906nCoB 5BxY65qijkryfgAHWHtJ33bZSawkC0mIm9B6QwYOzEDJ28FFk+FlN461h175YeAU= X-Received: by 2002:a17:90b:2c85:b0:3ac:b6eb:e0de with SMTP id 98e67ed59e1d1-3ada6c56dcfmr58458a91.4.1792606373761; Wed, 21 Oct 2026 11:12:53 -0700 (PDT) X-Received: by 2002:a17:90b:2c85:b0:3ac:b6eb:e0de with SMTP id 98e67ed59e1d1-3ada6c56dcfmr58451a91.4.1792606373366; Wed, 21 Oct 2026 11:12:53 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 05/21] hw/core/sysemu-cpu-ops: add get_dump_info Date: Wed, 21 Oct 2026 11:12:28 -0700 Message-ID: <20261021181244.867840-6-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: ztrYYAiE8oqsYZ4jeuzwv1761Tk456-q X-Proofpoint-ORIG-GUID: ztrYYAiE8oqsYZ4jeuzwv1761Tk456-q X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX1ekDZfftLOA/ 7QKOaI5UalukxNS8dXupp7/T0Y5mi8Obna2tyjeCgaSg+icoCHejxobiT4fz+CfyNUGujsQiPs4 mvd8mTsjR5HfO9v+i7ARELVXuiSIsRc= X-Authority-Analysis: v=2.4 cv=KOzPn1Fo c=1 sm=1 tr=0 ts=6ad900a6 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=Um2Pa8k9VHT-vaBCBUpS:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=7Qd54_oI6N-egMT3aNcA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX6BGjkY1z3dr+ hh9oFsB/Ypwel1qZ56AYgL4np+fgQFRNse956hJY2MV8bPzGerDaz5wGo5/eEiGocMWliwyyH81 6Jq+IRfull+ZE+qPLh9Im2eW5t13DiyRENqWChMHUpM3jQE+tlML81jzKKtsopfJKG4ljaBIoFV LpbIvWlhpwM5Ivwu9Tg3o3DBzKhI/SGTIIOyKZJ7/joxqgIzfo5rjLfdfl2sqCwUSXGxRDC2t9Y e7P1m9WDcfDqn0IkVbGkRf+dZVpNrvxnZYpyoH6l4SO1/SJrPm/FbKhV9gSZ3tonUj4LVPr7xWu 6Vxny37ntL+6Krir7BevDhv8ON7t0Jz6WsWXdEhtmRVwps/2IuyXoRCxhXkprOhoH2jN0v7QIBz 1ZByThUKvZe+ouNVkXMF21hj+cUrxq6QItl9E2I2E6FjkZtv6aT6vqDEMh44Qv8MFL7i4U5wXXP lEC63Jy1g94OHJgW8lQ== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606518313158500 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 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 Sat Oct 24 01:39:54 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=1792606570; cv=none; d=zohomail.com; s=zohoarc; b=UeFwV25DP8VmCxuI5DEwhM3Fq7wd374ztwbG+lrP51fbhYPleDTNU/CWFqcOhhhq2blPA6IsoJAo6LhgLFJS/6gGPJ1a02q2aQT+MHWbQ2/Vni8Wf21U6iynLN/L8/5/wiej1s/gqbcMbJ7vbAnEHo0O0aH5QkRA3pPVKCVjgDY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606570; 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=fejO+kq6XFAivGndPilBb+hTqkQbrBhnt+3RSJr93Rc=; b=nHBFgxRd9ynKpQltUxw83xc4/LOvlNlGulLkToxb2Mr9uMSEJ0RtDfhixe0/sJRuzlcgXC5fQnXfSYmMfT6tPeUiOFbHWJlXwiOEMgX2Dc3i5gdFdHfEFfpxOzRvyEvMKx6hpx74PLlk/pZ+dyct6b6SnOp5x7pPLx2+keEvjBI= 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 1792606570286850.0632322521774; Wed, 21 Oct 2026 11:16:10 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoG-0004OT-5G; Wed, 21 Oct 2026 14:13: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 1xJao7-0004MD-5j for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13: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 1xJao4-00082T-Vu for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:58 -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 69LHpIYA790725 for ; Wed, 21 Oct 2026 18:12:55 GMT Received: from mail-pj1-f72.google.com (mail-pj1-f72.google.com [209.85.216.72]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hf0cv0myx-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:55 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ac450b74b0so1724460a91.0 for ; Wed, 21 Oct 2026 11:12: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-3ada48ed74bsm499152a91.3.2026.10.21.11.12.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= fejO+kq6XFAivGndPilBb+hTqkQbrBhnt+3RSJr93Rc=; b=I/gz7QfeWMwyRSHa lvvNvrikYNF8VI919XOwob2sJ6a8BVezBARfdjsXsp2km7L38pTAqONndKlPNIRH jfvfKnUdBaTzkIjFfGcskar6fnd40kMEbXiAf3hed78NhcVwiOOVjPI4VeY8UPul G5KycHlvMSsd6Runio+i/yPhOYWGKLR4S5ZZJ6HmZFXCbU9QstsGxEgrzliRgibf YEGXD9vZ/cbflE1U9SbPS0esseL9HRFsmJHIKuBRxpgGqu8f+Ur8yULbxgv/Xd34 FfkD7ZAZrAlmzeVflJKzzrLUnsmpRRvIhxn4ICKipN7e6sOVPKgFYSIIZww7vKnv Gz/Gmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606375; x=1793211175; 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=fejO+kq6XFAivGndPilBb+hTqkQbrBhnt+3RSJr93Rc=; b=XxHU/JHAzZItTw8tGIPzwTNnohM7hY3inwyLo2DYE6ApmOl8FCtl2Gy6Cyrp8q7WdH 9zRFX0CIt0UDxiM4UQydHnL5lNn0FSplwCf3VG2R03WMHlwylRM5BbeSO30r3owikr11 wAwl9nSyFVTAMHuZSfMV0EQ+wg9+NV7ZbHGt//kvT+e+usMbnxlZ9Tx8lg/RM9O9ZDjI hOAJjSNut/qeCP66HPkl3We5F/0IMiv+VSSs7jGKOy+SpBbNya4tflDGeKjh9B/dUF8F d3ShGxOksgxu98VYGv2QeRAIFz/fNCakrk2wFP4VzA0FjKNhUwYeEzOgov0i1ttzJz8f 3NxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606375; x=1793211175; 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=fejO+kq6XFAivGndPilBb+hTqkQbrBhnt+3RSJr93Rc=; b=vFVoWzmIUUUsyhT3Zxe1QRzkaoizqxrIfvamsgn3MuuEsy4BWR/T/SOVwP0/L3Qx5o jWGpL0KsDScKJ1sc5AdBVM8qxJl8mfRZyMZhb7mcKVd1zm4I5SHdKzS+k81+A1DgDomi VymKkVaQdGeMDR3xpwpPvkOVPs7QebHRrXHIN2KjRk3TAcCizCMuLGcpT92CbWggHvoJ un0bW1k4zaL1MoCtOLTtUwWg+jDP3i9xK445S/2jLPNBC+8nGYld/dyLxC/0cabljNyr mz6jxniMm0oijJsdPTahqtGLzql4mPIo++Lk5Ga9/D+5fn/LOJBsCDhia/iZkk1LHSrN EfQg== X-Gm-Message-State: AFq9FYJgUBRXAjuN+e7aIPpti8J9p+00cchvMx1FftmHr/QpptRb1dkF +Lr0x9XcIJwSbysBWThklvT6NBDV86ZfEjBL20eHqQ4PW5g/Cb5QGo4Tum+iACg/guciLZuIGIh u0y5/XdU3Pk+K1rM3f7UxJOOvFTQn69cseetiEUtREpRoZSX+66JuUSD1hV2cz/nh0g== X-Gm-Gg: AYBFou2pY4R20QHYLUhcKoy5X29bywz1ghHbLfiAKKhQ7fWt5U0Rt+qFLgp/RlWf9jW HV4uCWnNQxCtBXRdr6xwiODb6RicFOx0vuV1HJObrfzP2aqjVB1yRmChFsXxKJm/Zi1J1VGiVwo boZa2UsHVClb/msx41rbWu5RlEAGENowm8vKE73rqJtVBs8fZuiDinU1VtlraBwIovCA63rvkVL of7g599UWplYtrnnOAh3F5wfmS/HSF/WySfhLG3NI1gknkIZ45Bu/4igVOK/BwBoU5CKmaY5Z6l BTjSKPjst0BIQn69dsfXcV/Tb7l9nyZR3tVgNgZsXa/9/zZdM/J8px6XeaBpd7YmDH/cupoQdew uG0CNQ0K5CghXajh0d0VrB+Ajd/GfJf0Tdoorzrqltok0izrBrqaKoLmUzgeOk2s= X-Received: by 2002:a17:90b:1846:b0:3ac:9e76:aa76 with SMTP id 98e67ed59e1d1-3ad86c7993emr2285969a91.13.1792606374754; Wed, 21 Oct 2026 11:12:54 -0700 (PDT) X-Received: by 2002:a17:90b:1846:b0:3ac:9e76:aa76 with SMTP id 98e67ed59e1d1-3ad86c7993emr2285956a91.13.1792606374226; Wed, 21 Oct 2026 11:12:54 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 06/21] target/arm: implement get_dump_info sysemu op Date: Wed, 21 Oct 2026 11:12:29 -0700 Message-ID: <20261021181244.867840-7-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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=NrRE4MdJ c=1 sm=1 tr=0 ts=6ad900a7 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=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=UlvQ5ZLdSjF5flW1Q70A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: 4EwtR70EvkN72qHrbW7eHIzKZnF3zkWE X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX7c7KDDiguXwR 2JerKvT4lpWuPCuzs07wVQa59z97cyx/TdxBxwP+teVZs5xaeoNd+QXlX9dmb0tCotmRK0FcsvP dkwnOGPBwpeZfSuMz3xca09xxeOflp4= X-Proofpoint-GUID: 4EwtR70EvkN72qHrbW7eHIzKZnF3zkWE X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX9GWU+QOHylTf Jdaygxf2b8f/4t45edv9gScu6qyOX5Wk2gHpysfifRwZTCsf22Q50Sij4I/sCjH4iYX0qfXw9Pl geJ/cJLzCmT6hwoEZodh+iUhFX8cd2MFF6uShIVotUvyZPDpfZp26SIobox0e22M26Jir6iJZ0y mIOEbzjB0rOaOOBaL/Uoal6OgU3IyI8p0ZH8B8f0xu/CVE/K59oa+Wj9JNL1Jk5MCB709iv9lD1 8Sc/+xH57re2JqzGwGKip0P54w4XIpxivSC1bZyVvHrqwvLEH9o/wMtPtcUucHoRJ9XO5h6rOqQ Gq5IyJkZcR8mX1B0C24pk4sVi9ffgqU4ljmy4oRKLhq1CsOn5FsmKSH9KQdlwcrsY+md/FqDBtd /R3qpVqwine7xwE64rUs5x7qAEFCVHNhlELYvNOPADxzw8anTEOVllsWyC7kjsuKT5ZuS7gd0UN 6rqQVkFnCBlMJ8GLBEg== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 spamscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606571244158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606500; cv=none; d=zohomail.com; s=zohoarc; b=W2zUUqsg0Rnukv248cIs5X/QpAVxD+d+TLUaJ9ak+/wHdBxQAtyvXUWTwb55O5cW7Otugyt9xQJIALdYBYudf+HrcXnRHp12LgE18hXRlO4eS/Tc22D1HYGp82iOx9VWtkYAnxkN2sKgJHqwlYpIMPrim4t9CHAk5iU3tiyliTw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606500; 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=LetIZKcCtlpEnZFO8wDfamn5P3Nwf3Rcq8dEdYUy35M=; b=dA3TNF9RyU1m4pfXIry1S3vJEeLE8RG+tYWABl86gnbdB/9BSe+YiQFdD7hHJi8WJ7e94isKDOFFqbOMD0VYRLdionsRXIj+ew+JblA06mQFLL1izsHASGqikubZ3yx4FUVeZdy1FnA7v57OCMxqm/fwAkCtiMTPIIeqlz6sWFo= 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 1792606500392676.6062508712433; Wed, 21 Oct 2026 11:15:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoE-0004Nl-EY; Wed, 21 Oct 2026 14:13:06 -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 1xJao7-0004MG-Fa for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13: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 1xJao5-00082m-Ks for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:59 -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 69LHpGUb2384123 for ; Wed, 21 Oct 2026 18:12:56 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 4hf0ke0jtu-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:56 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ac8f449d1bso1117611a91.3 for ; Wed, 21 Oct 2026 11:12:56 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ada48ed74bsm499152a91.3.2026.10.21.11.12.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12:54 -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= LetIZKcCtlpEnZFO8wDfamn5P3Nwf3Rcq8dEdYUy35M=; b=PCMfdi3I3ZEVUEC1 TdwDkwVo4Nz3xGFxg1GSVkXY1eJmiKyEroBqjcK4tEWn5ZgcEMaGyOp8LNMMAnwW wbOVGnAKe+TSE+PNCgCeG6GnKX5N5kwtDGK8FBcTn895FxxqV1Mw1J64iY0Udzjy HHkW5wl4NFq8N2jtUG+nRGceK+AczAKXaVfUaO3c5IcxnxbFuKLBdF5al4dxHnj7 RaiAFQyY+BFvpH7OHF2ZADZ8M7IIj3oafYipsMpp1wuoQ2tNXIPqaobzzLhrwPxR dj5F1lRFuqmkC9bo+DfV0Hdn/53uBfLthdEZlIXnSrMAqyhkgzVU/MJaS5+UAO0t ARmFWA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606375; x=1793211175; 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=LetIZKcCtlpEnZFO8wDfamn5P3Nwf3Rcq8dEdYUy35M=; b=FTlBiHhBUY2HPdwwZSiZP2+Sn299mQnz+m8GsAMBQJATfUwbuzuWFKAyAbbN+dQPJZ 7GfHO+ma2/2Nlxhq+dqHP/dHZf5w4H11Q6Ir+S5feZ+TKitzNAwfHAetn6bjew8h4JoB JppSR1Ed3hzGnhuNGJfc2e9XJ5rSW0+z1W+LiVjJz6BQO0apV+XER5OYJJAG/ep9qg2j k2I44Ig8ASPcTapOhyWxReldUWzwpbQC4TlbtAiUuf9Rui9p5p1nSv5iVLUP+pBZVONV NsXthhhYX8qkYNqSSo8tRJxeyt4uOMa3ModBa3tPRlv5J5lOOcM9RzmXCtEYmf1Z3pdw 9w6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606375; x=1793211175; 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=LetIZKcCtlpEnZFO8wDfamn5P3Nwf3Rcq8dEdYUy35M=; b=U1kYzw+C4cEs3L5q85J/WobdJOKmSRsDh4/ftksywapU+Kp6ck0YiHoqENOTOP0gdz k3q9SgebDXDewACfGRGhBVabomV1+ML0+THnrzsCqt/pk9rMsR54Kd71QhqC/cT4qW6f Be894D161IukFX0eceMwpFUBuKt8oJzuJoQ7PMGaybFc9pVV3y/kVbfIU2IdQftYXIRN Bxjyo4sOVutvcN+isgr5T1tR1o2OvwjDum85Wlncxs0bKr5mWxQf67uay+JepVsovwAU 03yF5bMefHqp3c0zbpcmcZUremJKOnuX60oCSF8+sPtQm0yDwsld0daMsg/eMADTuF2b /vhg== X-Gm-Message-State: AFq9FYKhBu9vguhZHhMBbCcblURpUqHOwNGSs6TBxjHQVmgtUbddh6Zt 7Ct+ClbGN0oAgAuTyLjeMn/KX6LgkAwrRHJoIkEZWWmX91rBvnZubotatofK0tXKOnvMfm+L0zN Up2J+gnOeT599xwSZfk/2ATLHtTmm02/PV4ZY75O7UrewehIJlgbbZTePlsFR70t0RQ== X-Gm-Gg: AYBFou3ZDHkh1YzVhxTtxAwX0cvZl4X3Oll9cEdJElnVmcOe9aAWbdYG2UN2BNDhqNd MGdcxgZcfgI+ID8OjwjIfA0a1k0QzeI575HMUl5GXlxVOOCTpyXv/hZ9VHNG39SfwfmjLyq5vWZ 4O02RkJh2+Na+fgMCUS716bYI13zPm/O3L8ABV3IJjoqXQ5OoZFyytqrTfVeiBknJYrnu8cZwq1 9zGq6PgImFyqkeRWsLk2A+kzWgFOhJ19VQQPNERSi/2SCkSPmAIug93bLoBjQ5f5Z5UvYCj/w2E mGhPv3A9XHx6D40Paznr0Akmkvj/uREsSH8g6EZVxXgio0lzMdTV6GI65p7F8Fz8egIqA9dtm/j EyZS0tVUg389w9RfI1AUDfXuiIZoh32DF0TTTlFgAKj/svp8rllaGuYuiAdvraqs= X-Received: by 2002:a17:90b:2f8b:b0:3a5:1b:34a5 with SMTP id 98e67ed59e1d1-3ad86d3874emr2422851a91.49.1792606375480; Wed, 21 Oct 2026 11:12:55 -0700 (PDT) X-Received: by 2002:a17:90b:2f8b:b0:3a5:1b:34a5 with SMTP id 98e67ed59e1d1-3ad86d3874emr2422834a91.49.1792606374874; Wed, 21 Oct 2026 11:12:54 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 07/21] target/i386: implement get_dump_info sysemu op Date: Wed, 21 Oct 2026 11:12:30 -0700 Message-ID: <20261021181244.867840-8-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: p1wUhWWN3goWfP-FUsiPyZtyv_LDIIpT X-Proofpoint-ORIG-GUID: p1wUhWWN3goWfP-FUsiPyZtyv_LDIIpT X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX8ugtaKIvo1FZ QD0/Eelm9engKhd06DxO0XGmCItSrujMOu0HdYZ8gjDn/M24Hsn/O0GpsZq947Sx62s/sVISJzF wPz8o9sMORhTZv/Ik3C6gpS3E0C9XLc= X-Authority-Analysis: v=2.4 cv=KOzPn1Fo c=1 sm=1 tr=0 ts=6ad900a8 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=Um2Pa8k9VHT-vaBCBUpS:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=9TR7Q1sQarOedDMGQfkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX8paMWv0d7qHr 8PfzNY0fVaA3czwMEQ5DQslgGgxqLRfN/fu3YodSVnWmQMPFewWCct73enjPapzBXBWuFwQ8OJ7 dv8gXh6uNQep9/zOWKWczEisOFRf8LuUywUzu53SxwpieWWHEYpEfZN0Qw5xtq37A6IXu0aD29E C3izR18Mx0nAMCAmL7YTS6lSwzWXd0O0wgMcdJeLqUm1VNK7RfMzwjGeLMdg4E8rLWf0dfnlir7 ++qbW8WDi0FrSTdAgPj5XKnqle5GmfdXnHdenp/LzUbM4cZnq663F37aO7r3rSBnBEvB+OC22Zz hBUN7GU8aMkYZRcn323o2EdTOX6j1XlA2ZbhVNxxmeXDvJnysuD6tMrt7CLLkVIGzkKmv5LnHs7 lw4gKZ1EMn3vxbe7ojoTWag7A+Jy007NBCSqCLjXC0558Rsj8hcVjkE2g1ZUiyG2nFU+ev0/0ML bawrWHXwYPTAgJ2zFwg== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606501972158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606553; cv=none; d=zohomail.com; s=zohoarc; b=Ha+u82jkGqD1mddX4atF9s8Hm+Xar1LyRMjszw+N8V4AcHO0Pu2BqTSqrfrXwctp0wgkAZX5BUrDU+0HBFFRrD36THGoqTzD27pQ2AXqwYhvyK9rIzWmGUEayydnW/wteKtMLaS/RSuefHIaOa66VvEZ0z/sgDxh4wRg8OraSIA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606553; 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=fDN6T4AgDJQ+QHacK9uCfNndCCdU4Bgk5L81UGVSCHc=; b=AyXXmai+om66pnrT8ujGo+xGBmS4mqa4OS6jIksgOhaAAdYm5MbtKWtIO3LOPoOzXtpxTtGiT8lSBpO52X/aEWdWDT1fSPBkUB2l1zaj6JfiNAtr23NssoAwfU/JabloRczt6LN7kvDacWKu8LUcO0q+vxVdiK+OfDTasGiLbOs= 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 1792606553740947.4040783138352; Wed, 21 Oct 2026 11:15:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoC-0004Nh-LQ; Wed, 21 Oct 2026 14:13: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 1xJao8-0004MI-2A for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13: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 1xJao6-00082t-BO for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:12:59 -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 69LHpOp92384272 for ; Wed, 21 Oct 2026 18:12:57 GMT Received: from mail-pl1-f198.google.com (mail-pl1-f198.google.com [209.85.214.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hf0ke0jtv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:56 +0000 (GMT) Received: by mail-pl1-f198.google.com with SMTP id d9443c01a7336-2e8ba4757baso9392185ad.0 for ; Wed, 21 Oct 2026 11:12:56 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ada48ed74bsm499152a91.3.2026.10.21.11.12.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12:55 -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= fDN6T4AgDJQ+QHacK9uCfNndCCdU4Bgk5L81UGVSCHc=; b=lb7IyQHj+bC2dlp8 PPXe+t8Ru/FlR6SIcRwcjes4sqlv+44+jsTcYNqyLB6bEWztzuAcWzwprSWIvq6E mgC4eu87II89yx3elZFhYV/xR7nqnA7VCj0oT7md0oOnzxRgKhl3KZ7n5FdGaRAv LlxCU73JfIiwAOjf3EHvZ2tR5bG7magsKrp1ftMPydzYGDIUE5VWSgqcpY1w/pAT CXffhI6VvaZO1MW2mggu1HercdMM7RujPwFaILneYE0eI7dhNG0yVsdLifzLt2iy 5+qzVWf320FEejsQGZ6JE6J7FUIcqvb8BWVl8GRJdzU1jKLys/2NnAufZravVs3+ A9Y67A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606376; x=1793211176; 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=fDN6T4AgDJQ+QHacK9uCfNndCCdU4Bgk5L81UGVSCHc=; b=TDLI8qODpWVVlB0byaSKZxXL+TN9X4nrxKwhkHEWxAwiYVjm5+oa2C1QnsprQpiK5s PXhRTcPd/+i3q/fpfN79e/ZiMX2a2bOtyf+FJiasn/cbKTKBsKlar1Q/Zzd7lZpWG4Jk 3tpesIZErW+4kWg8lQ5l+OjGLASp1Bk0trlq7dONsfdnw/HVfffq3uFQhHZo+JYAr1eF WnElUdU8o8tz4anJPLeaIOl3awWB2GFK4qoKalff672YW22ho+KgGL3eow2yBhmw1Q0b YvGVMTr0/H2Ar62eoF8PHmLga50EysOqW7Mzn2am9CA1yFN0NQYaM2zf3yI9sdSvzP+H Ks/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606376; x=1793211176; 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=fDN6T4AgDJQ+QHacK9uCfNndCCdU4Bgk5L81UGVSCHc=; b=zUhm6IxCRI/yivGpQTdWdKE6NwyFXQxgx3wyyORZf/CYa9vrkhtlDW31HA+H9rJgDy Vs+ZM6iqqJfRwkbUj2VyEoS1EKn5q5gWevTrR93Hz7uY4n6OLfOVoNzJbmGCHPE+PmzN O1eEWt1Wy+QQedZxPIQlH/IRl8RvJ2awClab1F7SbOLU0laV4KRN2tVYqDR1uRIuXYWD KSlyXBt8WyxPfGTYDuIg2VBjBz0oKwTnU4kesFROFuP0vWMMb44xFZVa8Kjduo0veJPH vQnIlosCNOoCYXSY22v3N+n3rRlwsEOe0Qj+XnCtLl4y+6UOCy+Q4cr/pGnB7qNBX06o PV8w== X-Gm-Message-State: AFq9FYKyRJRE7u+jvttP5CjLAwGE+zqRbTgQsQRBrPx5b/BqeR96Niwv KJtw05jNCgc5AKJulcyo6wficiLmAvfHovybrZ+onfdvb8jdcAJi61J3l1sDoHxhdXd9IDYM8BM PPCj+52qDcnDaS9fZGPTy5xyNmeojOnHoS/e5Emk60OP48u/WDc/KIDzTvMCXNA412A== X-Gm-Gg: AYBFou00yu5oQBydB/mryFTOMgVzeXumD1beT9q+pQGIDF3U/hlmKT4smwCFbKD7L7C i4L66fTRG3aPrhASflfUFfnKPkXjCOFMbf6v8tz70tJHY6IeGznOYk9fYbhPaHtiBSa0c6bR5eQ IMDTSJ/Z6N7ZACDAgWGz3YnrkoBhFPALb5uah1a68zpsZUiZp+vkWrbqmdr0JRJGljwYkEycu4L 8eBZpQm4/pbiECziL8ZRzFjjmy495B1FYO8PgIWxqoAYYhWYipaZMIucbLKkIOaEmiN7tgbxrPf xor0Pot6BbLzKu1VZv9LVjA9/mIAFDsuBB/u5CUUcPRRpDIFz+NJBZ8lnHbHsvPP9cZDfSMx0tc 1lIWzeYQ507Kc5dCTKitNdwFryKfzJrWbKEd7aXUMXIi61slhMZ88VH5maGbN50k= X-Received: by 2002:a17:90b:48c3:b0:3a4:fe48:d410 with SMTP id 98e67ed59e1d1-3ad86d50cc8mr2373680a91.30.1792606376143; Wed, 21 Oct 2026 11:12:56 -0700 (PDT) X-Received: by 2002:a17:90b:48c3:b0:3a4:fe48:d410 with SMTP id 98e67ed59e1d1-3ad86d50cc8mr2373669a91.30.1792606375663; Wed, 21 Oct 2026 11:12:55 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 08/21] target/ppc/cpu: constify cpu parameter for ppc_interrupts_little_endian Date: Wed, 21 Oct 2026 11:12:31 -0700 Message-ID: <20261021181244.867840-9-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: 8c8g_znFx-7pegg0P3F6jERb_YQ4qBWJ X-Proofpoint-ORIG-GUID: 8c8g_znFx-7pegg0P3F6jERb_YQ4qBWJ X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX7lq1MYA7ymt8 xZ84qAcYRunNtnq+mlStM9GV5TaT3EH2V/CCTfabKXIr9BcIoZyjUc7ibBjOPoJ26h4h4cV/2Kq 7Q7jOmrDNq+Jjd0C/Rv76Ko59JSIpCo= X-Authority-Analysis: v=2.4 cv=KOzPn1Fo c=1 sm=1 tr=0 ts=6ad900a8 cx=c_pps a=MTSHoo12Qbhz2p7MsH1ifg==: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=EUspDBNiAAAA:8 a=20KFwNOVAAAA:8 a=KOFfYGMdUDr6h6J8HrYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=GvdueXVYPmCkWapjIL-Q:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX0KpLEL8Vq+Tv 7bozfp4xRqy6fhNl2E4kAimNeEPukLAh86ZY0ziry+2LQ9MJWiYt0QQ7+2uh97N4spVjGmwUeDf kP7iY1mCnnnlQFbSfkTfiG8fNJJwFptL/FHVnGujE6PxHCih8T9u8DKS4Ns2C0eW9MxWm3wZYk8 AmquKn7BRb6Hylr3gN+cyK9D9P7hrgK23SKbAe4rN57U3UDTEy0IdB3QsVOaWkXPc+oUgjgIDxV moOw++BCRuDtywY/KaubQBc+6gPQQMsJgJWH3ZqMvIn72+pn9y0tcBZqEWjJD+6jlOk324QMSg4 IXJqsGNCo6PBFWItTRD3BGNLi+TjeuqAyrzieuQQwyI0SCx8pDmNag3gTSJQjjiwi3oafiqqRi8 mr4f6uTy9RUKGq8zncKyj6rrwbGwiz9WZ5F9VJwk6Qa+OgTE78d92GDK4FNBkUqXq8DXSiZjYf/ NDLpGQFMv57xZQrZIhA== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606554869158500 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606452; cv=none; d=zohomail.com; s=zohoarc; b=WjnnKS1fGAShNKvcRLnLzYnVMziDe0mxPsSNNOsV/lDv8zg/quxPOR0hsKnpVJuhslAhLLHEnB79HCCUwhOQIwuv1rjgcY3L84B+yjOvTYaMLs1S8I/bOnC5pqEjB7+11loocCQELlRbMpEEePMAJLI3cxfre9oqxrAWEXAoCtg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606452; 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=k6ZKJhJFFQEQhjnQerJPyvAsT2gUQFT6V9SyxqcK4o0=; b=fpe/EjqbUTvpbzXZJUMwkK+XwCnHbfz3i9OJbzUeWs3WfhHkxgV1nfSYe5e2nguw47SinbeI8zgDB9oT8NX2D2u5WpWBNxeCEh/DI6vlldNOXwhblAK94vspcxOToEb91Q3wPzSnWVk8cHjCGo6Y1tqXRWmi6UyFWeTER5tWDf0= 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 1792606452957383.9395491222467; Wed, 21 Oct 2026 11:14:12 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoH-0004Oz-6i; Wed, 21 Oct 2026 14:13: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 1xJao9-0004MP-MT for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:01 -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 1xJao7-00083O-Oq for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:01 -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 69LHpLEj2416065 for ; Wed, 21 Oct 2026 18:12: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 4heuhuj02h-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:58 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ab67ff8ec3so790165a91.0 for ; Wed, 21 Oct 2026 11:12: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-3ada48ed74bsm499152a91.3.2026.10.21.11.12.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12:55 -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= k6ZKJhJFFQEQhjnQerJPyvAsT2gUQFT6V9SyxqcK4o0=; b=K/cnahE/OVn43Onu hw+hzB+YoO9EQi24CzEM1o3S4e41r7FPeuV2nyV7NM++YGeBoq8ozgnv/ZSWRyNC ezs7WMIMIYpjzVbY/69Q5UvPAzVcwAL3x0r4Jxonjr73JQlCgYlaqi8/q/T8IfY8 XHDiXvNDt6V+eivHcmGPcPVgSVflHsLL0yujDcUpwkkbrJ0CFEMgAZdQi7wWbcUp I8tMycNcgckdHAS4s3IaD9SmZy2DYeF7cyLEqP+grGE/7ZCYCU/6PkhZN2OQHsWF JgwbpOev6DE/OEGvdA66Ezz1GkqOxp0koP2Xijrz3o6lVSs0IDa04IMcilMoHW3D DUSx1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606378; x=1793211178; 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=k6ZKJhJFFQEQhjnQerJPyvAsT2gUQFT6V9SyxqcK4o0=; b=hAI6DK+p4f83lmXG4XI1DII9A5FwsvFFgrM1hPYknMjyKwkAaZkR//ZoGG5Bt00l3/ f7t4O1Qhec68hBG+fE+qdWul8yFG6YK2rVIxrAwmxk6TMfTCqpqLlf4d6Ie/MjkrZS3v L5ekWl+UwLDpMOYaPCb30b6c88ac6U1fyAfFwnJZdNluJHHJM6SVs8VKt2q00+36ES5s kiJjBvJusH+MLATpMlhVMlNL/JOd6wZSbDVVrcgsK85xrmUGNX6yDFu+agjfzQD2Dmjs +6h7dJm8b45EqAJBUJQZtDXnESqud6r7lzepe7IR/qP4CIt7D25PmOy4pkviUC41fuBn MzWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606378; x=1793211178; 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=k6ZKJhJFFQEQhjnQerJPyvAsT2gUQFT6V9SyxqcK4o0=; b=LNUAfb3JWWYNtbpGpUX5jpTmDLEvJOWFVmT/MXqx2xneXK2KoBnQbcdHmzHCh+/JHa RCCUheDSZc62s75Q7i/cshhpeyHJqhJmLET4UtrLeXu0D1hM4DHR+W/hICVi4Ppqo6Wd taU9WrvZ0W7XBTcKiF7M+pFmtxnRMLY714tcy5pybWNCCz2pynjQEJx+XDylT9h9nIq/ 1ZSl1vTzSI2wI+25mnLhF9h0jl/Ahj7l0VeNm/Rrdr8ffviZnV2jWIm851ooKiBCTC0C 3E1FKmlvmciJ4AbDoaDyxOPtEQSUPAagBl1gaXVTre0Oyq4bweYLmI0kstZordw26xgU z2HA== X-Gm-Message-State: AFq9FYJFGJINyTSo479lJlSFRTUptv8zV7PqlnZzjPjXd27jXqNgMopv TBAkdqK4xfu7RwOp7xjoQsyWfatcfkaHz52EO0N/f6muZPXirZEVpf6dXR5e8BRK6f+sQdUtE68 ZYztGnXAmihz+KusVSUeY3JcO9ycmThYTsa5tWCkrgXeLl7l6CI8FK6+KqliALh5XKQ== X-Gm-Gg: AYBFou2l0isYADDDBoFIC2/gI4/1J6KV/vp+p+AoamQzJP6nBxIHLkdq2gB3olYeUoH HoxCo0Bls1NHUwfsM0YuTGpm+U86GuaietlKZQrpZ5fvJZBfJDu5HfbiA3Kmqlc4gCWyCgD/MZH pqRjfntebv/LETRak4utYlGBwHWTqjG+GmgaU844gbH8RhwyI4rDwwNqBkMq6uye5xURhy2lt0w gxPIG6bhs3FdJVIr0aU+9WhzAIK5pRqb6dVPUPqaAulO64OEv1QtZBXW7mwltnFnTTfEGWsIBqn XJBpc+yE1v/+kKY0f1UOJqsJhl18ssWZj+Lau+QuiIs7rI+xhePb51SwsaIagj+eUmT63YnM6Ua C8zuB3KKJCGNUSpfs1lDrClE5Pfbyr+EpKLVJnVIdyn6FESnHXD+7kj+P2+IY7Kk= X-Received: by 2002:a17:90b:384a:b0:3ac:9e76:aa9b with SMTP id 98e67ed59e1d1-3ad86c2e426mr2461507a91.7.1792606377590; Wed, 21 Oct 2026 11:12:57 -0700 (PDT) X-Received: by 2002:a17:90b:384a:b0:3ac:9e76:aa9b with SMTP id 98e67ed59e1d1-3ad86c2e426mr2461490a91.7.1792606377026; Wed, 21 Oct 2026 11:12:57 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 09/21] target/ppc: implement get_dump_info sysemu op Date: Wed, 21 Oct 2026 11:12:32 -0700 Message-ID: <20261021181244.867840-10-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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=d4JgWhjE c=1 sm=1 tr=0 ts=6ad900aa 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=eoimf2acIAo5FJnRuUoq:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=HC5FQ_MKihgnNVCgyfIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX1tP78X6U74lU 1TXEBNLAJ9lPH9pHdJ4j49OBHRXnFR7heU2wFO8/06SWr0ZZkCWTkGSGv6ABBkuxZ45iv44Cbpk +rBu34Q1ZcR2289d0gE6PjZxibmKytM= X-Proofpoint-GUID: pz3P808xj3aZXKEzrwQOis1oX0uZHiHO X-Proofpoint-ORIG-GUID: pz3P808xj3aZXKEzrwQOis1oX0uZHiHO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX2hYAaPHElMRh 14QguCQ74+DaFKw+c6aEuW0xmxbK49VJsN/DAyuNu6lV5mESXBWJN1jX53vaqM6/+60fENnTCUr fQTZ7XYeCAdev6lJZfWHCTczr3sXCx5xtZbh/YZm5hMVROuVUYeaPSNg9L1jBhkzsDEh9YRTX5E faP2odlquRZhuc5zmK6Xr3J2GUquo7ze8XeCOk3aGeWPvwfeBmOGjw2KTrE5Ur0A2lR4GyQF3tr 8j8aIg0aCmfpCt7T9o2X4l6PEkeiv7lqbyuMtIe9xuJ+FWDXSGA731jOaqF54N92bArhYKsNX0E xZWfm5R1O1CTvFu31U6A1BQLY2wO4yFuyaiu/x/UobTCpSm9Pfb0kbUrGWtwf9+rjq6bmZFeCNB CNYeXs7H0BX3yTphTNSfPooHOpJswNcGMHNcaop1UguoaVR+u84/ah3CWIcVi65ctYz9oFIAc/K GDP0gtBG73LvFDLsj4Q== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606455148158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606546; cv=none; d=zohomail.com; s=zohoarc; b=XLDQXN10Tsz+JkCaL/PAvf7EKV/Ywlrs+VogPR5L8GC20C7B5tDGzkoYj9azXU7QX4qbbGe/6cC+lLGhoBWRA9r/H24c53zDpwLyelNx3XQqssfBSfp3KbjLSdw42rAaSs/EYCT9YcqS8aJhrlYfghrwAArUHazNLJBIVJ4UdT8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606546; 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=3TVBizQ4o/KQ+vNhUd+UliSRR7xPynBqUOdb79A8Uac=; b=jAGJBWW67TJoX7wuAHgQyca9C3Ir0Lt2fN52BQJueJMRRyXBUO/TVsnFVrxFrXS7Ipng/2wzAIVh4D7ZKVbQKc3TlZTSge6UKSuGA+TPhdcuX8sLZ2joqvaj6Pn5ifaK8NDAES1w2K1iaa95+/Nkpe45nIxMlDSeYCEMddaatvg= 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 1792606546270507.64655072737276; Wed, 21 Oct 2026 11:15:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoH-0004PO-Ta; Wed, 21 Oct 2026 14:13: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 1xJaoA-0004Mr-4S for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13: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 1xJao8-00083b-CS for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:01 -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 69LHpLra454467 for ; Wed, 21 Oct 2026 18:12: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 4hex589c1v-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:58 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3acc98e3b3cso996481a91.3 for ; Wed, 21 Oct 2026 11:12: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-3ada48ed74bsm499152a91.3.2026.10.21.11.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= 3TVBizQ4o/KQ+vNhUd+UliSRR7xPynBqUOdb79A8Uac=; b=RSgHRze8lZNWEhb6 y4MlbLwGSw28u9EytNwfO6lW/LcFG0WbXg+8J2DwD1wu9zSWgQmGnbidy92Uieve u7ezAbbd8WTdTc5z+DR7Kr9kZD17eTIM/194gxRlwvFpRAKjb6jiENaoCPxQ5f9g inonSALKFY5qH6YA5J92yhrNNlf/qnyJgI5EJq0Pmu4/RwDGdRxnplYR/6Nmako/ ts3awmwcfjDe/U0aQT9L7K8E74oeedI9ueHp+WSjXbnPKLVjgfu6ZtyRsgCgq4tq rSNqUXRUbAAaVmpWbfLJRG47FWgPhtIb02rGjg8CEBedM+CBIwiel3tIM4WTzgsg mQCQtw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606378; x=1793211178; 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=3TVBizQ4o/KQ+vNhUd+UliSRR7xPynBqUOdb79A8Uac=; b=Fp3Pe+ybn9lySPKYmu7v/NFfLWOnG60osrdF2/OYQMQD6DDb6xP+atJnEvTZCPsnxa Omn02S/T/Z5VkWqvc1xwa1rgvutWW19Ggo8ZRcGxNERJibdwpqG+Cl4lgdgRohKwcKLT JchBEqz89+MWbYUgzFsL3Jisubi242JnxTzQ8nl27A7PyaI2dcbl7QyCXBhRwlhlo/GQ hfjY422mz7/nx5crP+SZLjd7oJciP90u0R3lg1RBHujgOcF+JulaJ9jc6dkI/YSAB0TW 1rIQCWtpeefAS0pZ8gepoDq4lBvu8AywEOaNQZp+8ayy9ypgopfiyd45A6wYL6VGL/as HqAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606378; x=1793211178; 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=3TVBizQ4o/KQ+vNhUd+UliSRR7xPynBqUOdb79A8Uac=; b=Bw9O23DKACVepUx1vot6aKBU6b4+CX2Q+LJM+dtrZhoK84orU3GLI7AqeRF1rj1Upr dqlmFevUhRCbckYtVsrCBtNsKlvmpsE0qmDYdjooSkIuLgCW/D1LqjXnTmVrWC/GFYug DbtJugdruCnQJJ2kIKACfJu4vr8B5UDao/p+l5i7xktlIcCXe6PEE7Iz+YtM7fiIQe4I 2hydTkIQjO6BBdYDHkUJqOsfWOH8bn+vEtGUedXmbpGpUmtYzBFVylphthZ7bBD89MMX UQ3bjnqrf/J9zHS4ECiUIyYll+5bRc4/zRUx37Du30+6RDeBfZNJ/9XessO94nkesl3z Ld7g== X-Gm-Message-State: AFq9FYLt9Jed3uhHzjnD3T1nJ5tgk5TIzh7sPj9Bp7vjVsqctuENGqUi Qtdk6YQtf0s5omzCY0D3OlCr9Pp2Tn8D/s+/38mqYnFqPRJksdBF84GnYMeHtYj4+P1kVQwlR7F QOV70n0uv02H5atY3e8+tCym9qLG8/xZ5N2eeLlKo6IrnG10pGbROvkxASY85oh+Upg== X-Gm-Gg: AYBFou1Y4XFuWXTfwZ9fxmbqhP16FGVXb6nb1q359ydTdY2IBiXYRL9LVaUtsoOSJwy zUMRrQG2HF0nw28HldRssX0W1B8YiZBiKHTEXF9BnT2L7L8cuD6h1jsgWSOQ9Ffzpcvoeo3MUOa 49YFIp+x18UzgKwKi2QmoSNRWB1xCyGwZ2azkF6mX4teBK2eG2R6tlgny95lRBe6FR7ixfxg7q8 VDY2C9AuOFX15fZs5wl63bN/fB/jda3rZMJQi9auj02I5Y7qcEgOiRozPS9p71jjT7DvcZwGwSq wEcBx+TPgxG5pKQO7gsKuYwsMAGXLv38ML9pQHBUHG0IIA9L63TY/K/8uIHKkSfJG7Z2s/ihw/Z B/jdjNaG6r09Y49ZQDGXePPA7OozGb1LNzNzTa5HTkh90Cd4IBehdF7VHdz0kSBU= X-Received: by 2002:a17:90b:48d0:b0:3ac:9ed8:f310 with SMTP id 98e67ed59e1d1-3ad86dc0735mr2476600a91.49.1792606378190; Wed, 21 Oct 2026 11:12:58 -0700 (PDT) X-Received: by 2002:a17:90b:48d0:b0:3ac:9ed8:f310 with SMTP id 98e67ed59e1d1-3ad86dc0735mr2476586a91.49.1792606377738; Wed, 21 Oct 2026 11:12:57 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 10/21] target/riscv: implement get_dump_info sysemu op Date: Wed, 21 Oct 2026 11:12:33 -0700 Message-ID: <20261021181244.867840-11-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX0zYpy1LOHzUd XvbRnd0KnIUtMtl3SDTaB3iK204DH/5Ox8gF+2/GSmtnLLrXakmTxQ7qZiTitbL4VAxT1uKNjax t6Rf53Yrs4y1OB99pQ8Hv/LNvXXg0EM= X-Proofpoint-GUID: lIHucuuXb6m2NeaQuC4O4fWVBrJZoZIq X-Proofpoint-ORIG-GUID: lIHucuuXb6m2NeaQuC4O4fWVBrJZoZIq X-Authority-Analysis: v=2.4 cv=Ku7YSmWN c=1 sm=1 tr=0 ts=6ad900aa 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=YMgV9FUhrdKAYTUUvYB2:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=a_k_kdOq9Wkoc2Y14hoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX34pBfQzcZINw EocBxhuoK73aWW5zHkWZrNulteAb5JcratPngoWiEIvshm9pSYFb1U7S323uTZsvf1CQOh8v3r3 XSuoGz2l1ywHz4Go/e+6CY4oQKmKRqA0GqctzaVjCfSmoF+VrgqLyGE0Xd6A6VXL9GdxeNB/X/g p1fmPIK0fO4x61abxuTekH4Brp11RVN+In+p7vrab7U87nAlY+FlMxAXQFhs8ZxSgTp958qu8Q5 M831C4mLuPFNKlP97w0VdnJrooIsPehyBLzlzbOElIoc4kKQj81h1KmPsdkjkSFb7q5OmB8x4GE z2HQ7v+foJNoAyARSNFaC4wHrBQdOZ3NuUsDx+tu8OIZ993jN/t9DcKNNCCWlboO9yEve/VgUTY xREoAjmQDJzRlOt9VwLk9yU7QmT56+mPx7nRe9xGOYmLEvAK5EINYA4Qe/wyURU04IYoLk0NdBB T0ZbLVWrLZT7jy5+Y0g== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606546715158500 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606508; cv=none; d=zohomail.com; s=zohoarc; b=Z4A1214DNS1CRIFT6uhh4Bgsw350iSIfQHgYnELzZpdNHymzPEZ3+rUvtHAV7EpZ6F9fCpPvxPR7a9gcFZSB4YfVh5NEuSfhpssNMI6ACv6iXBAJFJYnQfV42QFvV1mg4gOPWvQbG+52q6IWJ4oFPAOIuZoGfeTdPQWsIJYxrWM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606508; 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=jleAmRsQfaGc5DWguPhI7dFEJVXGdQW5T2OOrFoUs0Y=; b=ClHjHVJr2DmYoqLn2+ILHbMW+4lkrnnrBRABRLdTjdGSqZHSioKeiXDQZA6h4TFKAoDhujVySE2nL0+fQEcmwhwMKBVNgQ01iYIyKwS9G1n1cCZgeq7LbJ3McMDDeUOPfL9wMHyq99SOy5Nw/maMiMQnKnnwjC8gZ2IAzYiZ3Ow= 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 1792606508720192.68361630350603; Wed, 21 Oct 2026 11:15:08 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoM-0004Qs-6Z; Wed, 21 Oct 2026 14:13:14 -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 1xJaoK-0004Qc-Qn for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:12 -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 1xJaoJ-00083k-4q for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:12 -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 69LHpQQX2384285 for ; Wed, 21 Oct 2026 18:12: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 4hf0ke0ju4-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:12:59 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab27eb38d6so1024687a91.2 for ; Wed, 21 Oct 2026 11:12: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-3ada48ed74bsm499152a91.3.2026.10.21.11.12.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= jleAmRsQfaGc5DWguPhI7dFEJVXGdQW5T2OOrFoUs0Y=; b=pmnFSU3wsL5Ih9zM hzgHF7OReEWGuBfeVDGiCViGLgSoi2TLAMyjKVYmRq2yRg2tpe91VJVHdcwgd3AD 2KRovOGBnmdnOS4GML/VKExnV0/zUX5O5aYVXsJioyI4t5dziPryJdAmmVRBse3k 2osGuQnZpo8R7nBbNukifT/L+3LY7q1I59uzYO6OtM+GSpr/vgObLpRGIJUbFbAy 0w/lMfI5xY/lER8XanxPuhoWI5TwBGSNY8S1kgw0YLmGcdxBGjOkWVtUhC2+G5go qXOHwy9dQiQCMkhdZ+zm5rVGPE4DygmoENy42tcjIzuNUezdLGaEnP66jRJelotj N4IPcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606379; x=1793211179; 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=jleAmRsQfaGc5DWguPhI7dFEJVXGdQW5T2OOrFoUs0Y=; b=Seh9PI0wzYpLvPje85JalwmjQ2C11ZX3OP9X9TnjYyKxds5PBhewqU5D1zUobEiAtp VWOF5+E2tlK67DHImzYvAWRBaRn9v9l8fCuFbqiMliJJ7D+TvnKEC10/PfY4ZDg/FsbH mU9So1xE5zDx0MlcRhPU9xwuPQmpZ3z5kTpT+4zWfBC3u640jkjD8gFJ+zdmpoFov2ua 1AI7NeUltpeDymm4v1yN5KXlrXevzbGYAVlcoVk9VsI+YXSvjW4O/utYGaqhS5sa1iwe hV2GMi7JMAWnHHbVK8VWNdLnmYvED87Jpn/+e0a+f9UFuVSTHc3jKNtQBG3zSwC+Lbcs yFog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606379; x=1793211179; 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=jleAmRsQfaGc5DWguPhI7dFEJVXGdQW5T2OOrFoUs0Y=; b=uyBno2F+QZZ7V6cqFEOzzF6g5mzBXCkuOOrlm+Ek1yCAJGLWe834qlCjMY70uVfLqA bWWEZOsiTs1ydKaSZCclNFUcpzHu4+2u6FSN04XuSbtJl1FjXf8TVyb0/x6QkifJPp/m VqRr4bXTufl2D1cOthm12c3U8Iy3lxDyKL7PCha7EJTWfAv6iMo81S6TbRF3xwHwFOIf Kp16LGwHw2Codzl204avSIU+gNfYucNLxJRYEeCFSBlluGIDEs5yWksYOh9a57Z7bKoF yRJhWgC8UaIfQvOpl2Vsc+l9Tu8zU8snG4u5gfyNpB0uE7T/NKSZ5Qn11xU1yE5yRtpM S/Ig== X-Gm-Message-State: AFq9FYJ9ddAsFWDcdEbPowpb9PhMTQcnqffO1o17xoFvl5b3VzYkBtbU neQDVytQcq64hBpi/8llL9owT0auwcMwVnvbM4ZHP2+HWQQCFbhD3BcBwEdJeNC26AyHxzNcyyq oPuL3CDluVdmg63QB7SbBS9Zsy6ZmpYIup7Ng3kJKw4AazL6lxktfeFDowEp219WjWQ== X-Gm-Gg: AYBFou3lFTKAlJGRqUOtsJtT7wS6qRrGwzrnSpRcLTuZh8ii78IWevX9/jbHV8lw3/Z Iw9xgBqnmvRbNRKQCW5TA4zRKFNzNmeusIb4zYNSYrS3q0eFHUh6msm/rvzNm2BcEEL4Yysgk3c LQWWU7y8EIWsHDXB/dh9/RH7eFlPNmWsfxm4oSBlld/EVYUIRi79Uh0sK9waNpvH3YHtiDMLB/+ 0N35cb9uUGY+u3j5rkXYQsQwdeCsymxz+iSySqbEvEXraNrujVataExPItK4vFHr7rPc/hcNRV3 iFISmJx570TFz7GiKZGfv2jZnG13qfOcYgNMnhtQNnhTbiO6cCE9r7ioEtQZkM8XCg/nzIvFokz NUXWNTo5Xn0ZsKKUv27e+SUXHA0H1PouLJVow3qV2L2qk9Drl1YYIv1laG7eUYfI= X-Received: by 2002:a17:90b:3ec5:b0:3ab:e588:c288 with SMTP id 98e67ed59e1d1-3ad86e9e4cdmr2517882a91.11.1792606378924; Wed, 21 Oct 2026 11:12:58 -0700 (PDT) X-Received: by 2002:a17:90b:3ec5:b0:3ab:e588:c288 with SMTP id 98e67ed59e1d1-3ad86e9e4cdmr2517871a91.11.1792606378437; Wed, 21 Oct 2026 11:12:58 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 11/21] target/s390x: implement get_dump_info sysemu op Date: Wed, 21 Oct 2026 11:12:34 -0700 Message-ID: <20261021181244.867840-12-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: 9IOannd3-Y0--JZQA_ZabHvy7xIiZuJX X-Proofpoint-ORIG-GUID: 9IOannd3-Y0--JZQA_ZabHvy7xIiZuJX X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX7lL4w2SNTkQh 9759cudYRqjLFwm7qy48o40zdHHVmc2mdLLUlcDlb+J4sZj+4hCe9sqcYOW6N2VsbAs3+nx2qMl GrxqFUfJgb7SLsg4VyZR9fxmBq2Yr5U= X-Authority-Analysis: v=2.4 cv=KOzPn1Fo c=1 sm=1 tr=0 ts=6ad900ab 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=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=tWNUsTMbvNwxkxjYQD0A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX1KD/OaMUIyJ3 02WzmL4RIu9wBELn6alOasPjuIgPu2zGsdImmnOxx3t3DHLfy9NhsLomGSvn9i3IA50rvjkxl+g 96Ty8UGpm7W6ODCGKTyN/zBkSG1Tbe2RCdq9gpl9Kc5dJ5nBCePrvh/aLX8r/KWgP7p8N525uYY Cw6yIyzDRS7vTTv0d/JBbYUMPWrQFI2JtA+ZmuyH4iS5LHixVY70AxELKQK7ld74N3i805y6bRQ OQO5MsD9qRnJ/mnJZ3nO23DsiOdv4gC3nl0wH2Fqis2kFDzrPZ0O5jiNNv0Y23dNTmCkXUVMW4r ntKOSuh4gD/1lOqsqaZKbpJqOmZq5yF/eb9Pi6RKCxXS4S6lyW83fKBiLs3qNiYYiyURc1W5PUX Qo6WVBDQWpXnIVFdt/c31hX4AtmjRJ4fgw0gfLOVpioGgpPBpouCwKg1zp777DQwZ3sVhuZ1r4Z TOIM9lDuXJvdNlwjIXw== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606510177158501 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606646; cv=none; d=zohomail.com; s=zohoarc; b=XQb+lEXnulFYDAq2kx26LYGl0HWEAGIydpSGbL/tmB2kdpoq/yro7aIat4Ae4EFAwb5bNzYoQvYIRQBKyNzfw2wRqBy+E6Lz96eNEri41BRqD7YxC0yM2YXuK3/UUCkgq9DF4/+ybdnFI9vHstohx5WBf/BdyDCIctUB9N7P6zE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606646; 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=g1mHNtw5K0vFNzknyEFmbx8s84NcxD0M5aLORwLR5VU=; b=TLUCaWZIceVY8t/IiIfxKlS06C9EcdS89T9KXo6mV5T8HLPAyY2Vx1hfrhaSzqnw2b+Hkk7jwYCu+KYxagmKbcjOp1j0mDlgOpqORq76b0hYgqZMhYxcd0hrHV2KnVyULMaNQNNGmflDGXV+66JZb3Fpc7OW3FPyEurc7CNa6rU= 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 1792606646010125.40897178575335; Wed, 21 Oct 2026 11:17:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoO-0004Ro-75; Wed, 21 Oct 2026 14:13: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 1xJaoM-0004Qt-7J for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13: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 1xJaoJ-00083o-Sj for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:13 -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 69LHpQQY2384285 for ; Wed, 21 Oct 2026 18:13:00 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 4hf0ke0ju6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:00 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3acd21ba24eso831800a91.3 for ; Wed, 21 Oct 2026 11:13: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-3ada48ed74bsm499152a91.3.2026.10.21.11.12.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= g1mHNtw5K0vFNzknyEFmbx8s84NcxD0M5aLORwLR5VU=; b=W1QJgQ2eryn+6fu2 sTho9G0MwjoXd91vNf4cUFa5mGTpQTBgi9Iqb7IJpvHyMsgzCmwxuXpQk/lrHSNg nt4rQzQpLC1L6i9t7UUM9lUNsrlkDbam8zTCu56Y9d0kIv2D+fPy4R+NJV04MXkX jdCTDmJAgbxD/fnb+/Vc2Nz8Nib5ePY+pgWsqFMWTbr9AvpMGW3/bsPhg/XxdOsU 4k51HNowcBUXrhb6HQPWFsFHyoGEyF/gUUZD/jnhRSx70/DLySPDW3c+UVYdp6Tw +qMpr/xQBtffLFs2pZ7SIYzZwj6amypL4XenkGwEpWSYE14yUPRIj8/cHYYg7q0O pqqJ0Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606380; x=1793211180; 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=g1mHNtw5K0vFNzknyEFmbx8s84NcxD0M5aLORwLR5VU=; b=eJqT4SJR+xR20/zAlBwH9BUFUbnXkGMZMtDMn2LjYjtoVP+MLEmXiWpkkCyEJzr9Lf ydsLGQzmkUyZ+a6GK4lvqNbLzadH5fqwmVBev7csQIq0Mag9/sjQ8RKA5dZuVVfBuPXT zwQgVDfXs/OlGX2Z9Yj1v8ihu1rp2oflOf92zW07RuJYyAar41p5nnBFS0Un1M6I+Ri/ RlbrLenW+UzZo26AZoRLfQwJhuN/chNtHuNp8pj1CyAHCtW+BD9lxo3cnSts/ToEVBrT QckoakfgMkXGXNoOwUECXa7f2HdbWV2s32o21zDc3czoEOXszzcQbOVQneBzcPA1K4bA F38g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606380; x=1793211180; 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=g1mHNtw5K0vFNzknyEFmbx8s84NcxD0M5aLORwLR5VU=; b=Q1rP0jlNTBCtPeYSoX6PtTZv2VKehJgd982b/xwnyCRQs45bfYTOm/i1s2HBi2zZ91 VH9Ualyw2x8rYq8GEDQfobd1PorcsgDAQ83MI4GDwilD0PyLQ5NaRp91VDAd7+Bhqa6q enn7YYJojB6njCpVJuBLVZ2d/TaFbkiL77eyv1tyvnLwoYwW6F5HZvHi5D7KzVVnSwEN Zee+jA+gSqsPV0/Uuonx9fDVHc/Jjoi6jbTSKkQIcr7Yc7HIkU3C8s84+/iULBj5n8b8 C0eE0zPv+efMdHh41OTjj5yDDWlWEdq8A1rzo/o+sSIo/DDJdCuj6POfLWaO6tLPW2jf /yQw== X-Gm-Message-State: AFq9FYLWh/y2QCqBtUcNsxVwFb2bWEYNwRn/W+bqaLzu/aFty7ugJvXl CNDPjDfFJJGSeKfdrK7RL6c37RwAZrIAiAQo2tJvTHC4Ts4+q4+2CK1+Kn/x3t+0Fuk/2rY8iNo 8Qlhp3AeitcZ5e14qhbsTfInhv25ADKrx/bNFyJ/Hrj5m5xkHCipLrGifN06DyKCdzg== X-Gm-Gg: AYBFou2K6hllMillLXLY1lLQnPLeel7ssnot68x5m51fNbKR6gBQ+wPxLtbM1EvSSkO V3WRZ6b9wVGfW6otg6bDBtFHcSQSad94wCREXhU42/oexxJHMx1ge0LU9Lzv2/nDltV+0ZlLEWW xrELevxHFW3lFPNxjuzaTZsJ/cSUsYncnUY2MDSMHFvA1wqs/0g5MHSLvGRVuQSVq568Rc9SRNT vOHucd/rGNnb2fyhb5Rmo6osVgb4WoiLayQZss5fJYUgJIUq2FZOOhHW0xAfUKOsrIuhqOT3yHX /NZVRcFFcUxpmmYY9vQb8E97ihh2r0pk23sHhe/oY6YeVE+noc/+SSBr1cvLifK1oIrqQmOs8iQ bhex8C+1LnjHlJ8dPS8kCbudPtm3eq+bERaLzqmZR1P1CHhrr3ytgk7MCAyG8xvY= X-Received: by 2002:a17:90b:3a43:b0:3ac:9c37:9429 with SMTP id 98e67ed59e1d1-3ad86f1b5f7mr2592310a91.52.1792606379630; Wed, 21 Oct 2026 11:12:59 -0700 (PDT) X-Received: by 2002:a17:90b:3a43:b0:3ac:9c37:9429 with SMTP id 98e67ed59e1d1-3ad86f1b5f7mr2592289a91.52.1792606379120; Wed, 21 Oct 2026 11:12:59 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 12/21] target/loongarch: implement get_dump_info sysemu op Date: Wed, 21 Oct 2026 11:12:35 -0700 Message-ID: <20261021181244.867840-13-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: AWH7RndvpfSdYKLck9VGGJLiKFUqwc3n X-Proofpoint-ORIG-GUID: AWH7RndvpfSdYKLck9VGGJLiKFUqwc3n X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX/f8YgMxM/SJ+ 2XM44ogbJUKGAoCkBZ1s6mZkfj60JB1wEyEZQSp1MPtxONiVAAbfQbPafjApdKPa2RuNSq77URQ GKm8ZWZbP++4MMp9KQ+xEEIJFOdd2Ms= X-Authority-Analysis: v=2.4 cv=KOzPn1Fo c=1 sm=1 tr=0 ts=6ad900ac 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=Um2Pa8k9VHT-vaBCBUpS:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=FnhWYSpmk11jPv6NQAkA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX1bK3HC0FNvze T67yr3pYVkFWVAC3Ki+n7LU60Uj1VzLsyRI/u6X4tmIpmhLvtIgh/QHPc3GcS5ZogHZG7yIRKtf FAQBrglWJZhnboKVbM+rkxP7nSwJVIlKOGBYOog07HOJUhhQeZX3NrZXkEFRZhiL5CDmjKjOAuG TJFfU9s+VlEmzyhd6rxIdyo2nwYEs4/qL73h3FYKFcyz9h0Svd8E5cFaFcUkGgLGhKCi39ZOgP2 GEnBK0dZ79DdLzUB4cSyGTfk5YzCtcvO/L642pHucpuo3EhL2t89bgBNCtv/z1kzDSRACFDz4LW DPYySbaFiSl6w26R46FVQrpSIpi7fpyB8Ud7XplKykWF27I7YfGcSbfrbSVhrX0iR8L8nYvqorr NPXSwbBm9AK0lqAkqWocShFMQUvah96P8QkfPQ7VPhP5pWOS3r43orgngASjopk/hkKNzQhuNt8 ck/W5on36BWEo3ymMcA== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606646627158501 For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606485; cv=none; d=zohomail.com; s=zohoarc; b=L3KVvxKSHM5EUkmBcRB9uTyMqp5Xht/Dh3f2WChFi3a8/7MT4tIPlI0Lx37vbJUVpH+ehDJJz0KvWwShG6fTBUbillD+Tx8FJAOWcCKIqE6IKuvsMOF3eMtRgZgr64THbMDoJlFNCVRY+an97ykuL82/BiD6dsI+bi+i0IyrVPQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606485; 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=Kcq+sMUVu3TSI+TIkjMKcZ1YZleL8cuiiGwSc6BhC4c=; b=mXzVDzmClUS7DDVBT1jvADXyBSRFELG7pIYnAktjwtXIcwwUV8SLM+c4nwOZ2hFWbPW0seBWleheN/QLDYJGj2OH40SkRMkBFrPycsis9+qUnNfJWzEcti2NTTTFnrrLlwUnF+Uxr6QjRHRI97LxyuKB6yuwm89dEdy0laKWuq0= 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 1792606485001815.9607512832855; Wed, 21 Oct 2026 11:14:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoS-0004TY-TK; Wed, 21 Oct 2026 14:13:20 -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 1xJaoN-0004RJ-KZ for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:15 -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 1xJaoK-000846-VM for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:15 -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 69LHpWjW2384364 for ; Wed, 21 Oct 2026 18:13:01 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 4hf0ke0jua-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:01 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ac575a9198so1665542a91.3 for ; Wed, 21 Oct 2026 11:13:01 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3ada48ed74bsm499152a91.3.2026.10.21.11.12.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:12: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= Kcq+sMUVu3TSI+TIkjMKcZ1YZleL8cuiiGwSc6BhC4c=; b=Q+hHO2q1cBroOnaB l+CTv4gYjeJyAI+OqNOEBWqBjNkae71WqWwVUerGdgKyGCRpkETwl0SdHS6aTfzM IDT878l6SgriXms6TtEh0iD3xgCzzxaQzk9/GDZ+kCmCR3kjKwFbzUBeejlk1fWI 8OQcEvMgHVIAJNSpmZIVHFp1WeHHjK3+stQegUIjMzftX3fueGMIWYCoGYc5DNFl c8YSXIni1UA8o7IThiBWILJqHW6iLbFtgdVEY9QpbWZCiJZAgU/J6Mj+t3Pjcfun uH1SmZqt1XXNkog44fzaBFz5F6PMLtpLHXvPjZi0A5P2N0d3G4iGvCF9IRu2PRA5 EH8mkw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606381; x=1793211181; 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=Kcq+sMUVu3TSI+TIkjMKcZ1YZleL8cuiiGwSc6BhC4c=; b=Ki0UX/t8uq3ez8bXt00EuO2AKU7xYQ5IEQSHucWq9GiMB0+EsUE06SjuFOSby4uMCb R//d347H148tFhfEg/zZ0Ch4TBbGjlMAjaKT1AHJ6fKT+WYtHKNN8CfoqAv+3tLQfS4D h19JTmSQXH58tgt62X7+O1NusokM4qurJX56ANeBhn66j9bQfMunWf0jkYaiIxmWI3do 1ZfLFgTH6fFzT8R43hc7T2lP//hUmOncO99WfRNWgLlWXuMbLGOJ7VPNqKm5u5+Y+ZZ2 4lz3huQBxLZhXwFKgrD3gkBrg4g/DG486JteJb/ZHaZ8RXypoI9DtLdqE6+Cw82qPA3s XgHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606381; x=1793211181; 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=Kcq+sMUVu3TSI+TIkjMKcZ1YZleL8cuiiGwSc6BhC4c=; b=haLe0+RZvAHx8QVcGC0kQeAfTNpVrAcx6DEaucxjERH5hf7lz3/8BtFmn3eEfyYPp3 LJF/tAcFtKM1XZdlNFWug+9Z2yrMLLKZ3x++6c+xWgc3xsWL4PRBFR7yKPzuLVYzIwZo f/vFHSkmyMiC17xN2oKSfHSuPylwa+BI+4HkXKRxx3b//G0wAEzMWG0VZbJoBrlp0g5k cNM3KrhmdhmGakMnrUsCTX4I4SvmS2GJDxobUsoQH/5Zap6jWGHQavlJ3xseZL4q7UKV T2s25YK3bPXJYlTh1caAHov7rYNPY7du9qBuaVEPqWfyp5GrLwEdEzDAXxQB0gM189Fb fQbA== X-Gm-Message-State: AFq9FYKKFGUJzTwRI0bZDWX/ml0HEMlRhX/XG8VtBiLXu1hfa6yufPMc 6AZWLaRyGNBJZ1mRv0Dn6xPV207T18qrPg+w3cfAQhV1TANf2haNpnn92aCEeH9s6M8WpMMP4i5 YTPZmKDsoFfNPJ2IJc0RsZLPNrJeznEYlv2lJj1bnRE4D6PpIVp7Qe5gHKzOJn2SZ6g== X-Gm-Gg: AYBFou1aOPtA4X3LFlbZjl7oafBHX1FV7xpzxKwyI6KmM6h1anLJ3mnYgV7+tPsf/jr IZm0kE9gu9Camw6gKxS73gfNxz8wOeSHMTr6Ta2Uu/G1hNf60Wn0Z6VQ6Bt1T/U+CkvJAaVOKDL fKuH5m6ZufzUu4tN/Cuvk4vVPdWtsVVBfoUwuRJH3fW864yFDhdKcNyIjbG5hXYkqimSYqdInpb x8fVw6a4BjAjOt5a20huOjnrNXkkPC6Wjo0vIKMyg/+dE01+Sx2OlzavMDxiLFK4I8d4PfN98u9 TaDA04VTNUHjBFiao85YxS0N5YghxU1mQpymRsGin4L5xU7ClGn6AL3j4HJ6HEQBz3Xntk90TVa xifMRpFpSMO4B5r6G2zaEm+eWK4Wm5qLuflEMLuvg551H6KgP2zzPiJUSjhJ2zFk= X-Received: by 2002:a17:90b:3a46:b0:3ac:9d83:885e with SMTP id 98e67ed59e1d1-3ad87094657mr2237592a91.52.1792606380593; Wed, 21 Oct 2026 11:13:00 -0700 (PDT) X-Received: by 2002:a17:90b:3a46:b0:3ac:9d83:885e with SMTP id 98e67ed59e1d1-3ad87094657mr2237577a91.52.1792606380159; Wed, 21 Oct 2026 11:13:00 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 13/21] dump: reimplement cpu_get_dump_info using get_dump_info sysemu op Date: Wed, 21 Oct 2026 11:12:36 -0700 Message-ID: <20261021181244.867840-14-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: UZnmgKZCapmykm3o36WB6itV2ILqhFhZ X-Proofpoint-ORIG-GUID: UZnmgKZCapmykm3o36WB6itV2ILqhFhZ X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX0vwqRY7MOUwm 897WrVdCqd/U/ddytDt7p0W7qnhJacaTg8oHSUmUGHKLTiA+SEiOZTYuXJKP71fqCfMsPcpRqtb M3HTltix11rcgKyoZb8HkMANyCvSYwQ= X-Authority-Analysis: v=2.4 cv=KOzPn1Fo c=1 sm=1 tr=0 ts=6ad900ad 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=Um2Pa8k9VHT-vaBCBUpS:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=KrnFjeb05bSd2A7PV60A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX2S6Ajc5QoQ+h Ur9vNJQerS0fH835AWzD2ZmG/n8QOumyjZ4rxY6BFGt4uFJJx/6W8gMys8rikTcnSupxsbHhuap Ut5t/pLyscPIbwI7EWHNoTPsKprZHZ4Mvpjy0wKNKaJq/ueK8oK2J8g6HIhsE6/pRTIWzYWyF/v FociHEQpXmIme7uwEHY5mRKQBmHrKCxuOGgaf4/EpU63WQ1pzt8fnOYMiNWmI+LF6pY5XLe6BYH wUt0LTUPZ06AHl9POzXDBjO+ELZaX1/aWYmJSdonYBbAAcNDLX1erhSIvpPaC7QM88bMPmZOM4I KbroT00M2fXD7VpCHSMgfFnlRBMXY82MNfGtqFvZ6jdnZcgZNOdVfw7yTclya7BrSGfCIJSMqQ5 UW9GpfRTCFJeDTLaGPX3qKzlp5SO4tjuf3I8dVPGpwIeQuM1Nq7xLMglIqsoNkm37T16QHiUTOA cgJ9RScy9zj+YJOy4Yg== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606485866158500 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 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 Sat Oct 24 01:39:54 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=1792606548; cv=none; d=zohomail.com; s=zohoarc; b=Z4OChvlUWN9jfliobKi6IVO3NRPNycBQF9W7+M0cmySfCtnEb/0pJtIU2Ri6wPk82clTGVT2MTsZwKeGRbmTp4npPEyrPEqJUDRx05O09mGEng0Nq46xwb1qiMUux8wa2rO8Hk+PgIJMmPGaCc7PMvBkDUQZlpyla1q0jq3AcgU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606548; 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=ux67zfQ7JX2LE9t4lTOz3fktCHrJkpxNSXYAjH2AxDs=; b=LezhqvC9zCwPD2TKrjl6+UcLNkCFss1ZPnf57eGORsM1bgIn8udekUW8AmCb4fVRkoQOaZLlJBZIHXzdyrlHJZNVjuug/5PvDrLecuBvRGl/G5DtIGYae+FERYFqJ+uczkdC1Mkerpo+Qo3QsoJ3hdbkqmf5LgSKm11WWVIZbog= 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 1792606548725859.4604764034436; Wed, 21 Oct 2026 11:15:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoQ-0004T6-TU; Wed, 21 Oct 2026 14:13:18 -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 1xJaoN-0004RI-HH for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:15 -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 1xJaoL-00084D-Ut for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:15 -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 69LHpKEu2415972 for ; Wed, 21 Oct 2026 18:13:02 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4heuhuj032-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:02 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3ab27eb38d6so1024927a91.2 for ; Wed, 21 Oct 2026 11:13: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-3ada48ed74bsm499152a91.3.2026.10.21.11.13.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:13: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= ux67zfQ7JX2LE9t4lTOz3fktCHrJkpxNSXYAjH2AxDs=; b=o7AmseQHVPgLbvOe ENDRxxEP+I8xdDxEBvXWxwb0Cdo69sdKGAshYAUUeZ6iHDPvGQF7GZNgK5ZYJXVI B4EB6lt41ruAgph4ODoKjF7Sk+PfUcakSZBcXR0d71DZl9kZqQsYV8ez9IfQW0Ls MkFSqi+SfNnVynnyHqe3blRNDnfyFXjbkSM9aIIQ3o5edd1SOU4WCEYVn6N+PFNs 7yTAcICFgowAtcFYzuXIfkMEzoqOtn+N156BM686iwypP4ywkKfHv599YC/zIo44 Ci4u3e6pER31owwB2EfZp1qR0Vumci30fVVd6cY7ZFT72whkqHL0Ie2vPyZg9RXF JBDC3g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606382; x=1793211182; 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=ux67zfQ7JX2LE9t4lTOz3fktCHrJkpxNSXYAjH2AxDs=; b=WRYtyM4XGdB/xVJ4IQLpOeaFjtbt9PLfABOYJipDTLSumDtUWIO7IzD0BTgC9t969G Mi7KsFD9JRDAxuZ3tiRHqT05LOwGkDjx1fuFbTTnGA3B6ZDpHj2QmU9LJ9QXAdiW9swn Y1kWxHMSkq1rTxkMWXTUvFgldsEKA176peEUfZze7bFh1+jRL2/L6Hj0AQPF3u6c4VdZ plx5Tx2ce0aBCGtKu3FVSM8Bg33JvvvaykqrVECN/LlFpyUKEbI/IyWsgq1lzxIz0BxE yEoEfqh8+e3VdOxWV4BCjMTVa7ro5SiIWF3rapekgmmQbOnrRwJ0fcvwGlVXzyrmXapz GW6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606382; x=1793211182; 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=ux67zfQ7JX2LE9t4lTOz3fktCHrJkpxNSXYAjH2AxDs=; b=sQ7JlIvTD4Rg8r37DIQOv3YYoEFsuLqCJ7rky9Ek6E0M5ZQwJxubldBXyowMTSHCA4 9wfpTGXEb6hQIMwf8NpqrUSI9o1etg3qumh+LGZFKPSAjaicNMkUkYfOyBp/KgEfUzuT s8v26I+JpUZA5UHvBeFYhCUvfCS3y3QdoHUIlbh60y2FEvGdvAzP0kRJ2nnV75JMiLLF x1uH5gHZgilQWdjMHGAIwYUFdIZHBQMYgQuxNXZosDEECWgMLLqP8uyUOY8PxxV5RNmG cuiKCrHJK6BHGou9OcQo5+QEgO3sXgDrrtpmSJqHwJV6WWkZDTRyus+yrCPeUVSywB/T E0dw== X-Gm-Message-State: AFq9FYJjQyZjz2M/PSCjR2ZgnnBWfuxx3bZ+jbnupdm7bqvF/G46yh7o t72cZOaGcaujpP/t7b5lHoATqjX023NvjrVPuF/Vjuz5r6GOSILn6hFU/IGDqkR9APoaeBY2KWy nwYJtdN2WsF8TgF2MbVlCBKbtJKjyfaVSmv0OpdSWZFhnVl2JvAdr/b1pF0Hhl8S36Q== X-Gm-Gg: AYBFou0AZqyXq+Ke4ywWcnBqpJ9+w/ZfW/STPHIf+xaq20Upws+psiWCeiha5BC6eoc GrOs3VIkkaUsDxpoXiGsVWboinx64FI5viFzJz9Qm0D0vFOxvNMFE0WRcc2MWf5dc7To7Bj+d6S CapyxBmyncq6nFTf9Xq7KQ4JfllRxfX0hpiL6P1a/i8Z6XlyOfRyxaJI3pa7jFsfDMYoiTfJp+z NH2N0f8sebwW46ekZ4m80r0ezVqGI7JDsGQy0s/ryLRGWAhUsKSmrzbpLL4Zj/mqpSAxd5H0MO9 cfhI7tRqVIQ0JMYQ5fnu1Hobtk4DCi+VdARdz9tZGjZSS2CUu/Cokj+ks0CFJGWh2uih/G/d7oy tqkJ4jkpnfIXyJHSc0lPmH4pCVsn6y7ImralnBOfGA7fJ20pTNstTEUYg/ShZch8= X-Received: by 2002:a17:90b:5688:b0:3ac:b185:fa16 with SMTP id 98e67ed59e1d1-3ad86ef57d3mr2434529a91.43.1792606381831; Wed, 21 Oct 2026 11:13:01 -0700 (PDT) X-Received: by 2002:a17:90b:5688:b0:3ac:b185:fa16 with SMTP id 98e67ed59e1d1-3ad86ef57d3mr2434507a91.43.1792606381374; Wed, 21 Oct 2026 11:13:01 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 14/21] hw/core/sysemu-cpu-ops: add get_note_size Date: Wed, 21 Oct 2026 11:12:37 -0700 Message-ID: <20261021181244.867840-15-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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=d4JgWhjE c=1 sm=1 tr=0 ts=6ad900ae cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==: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=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=s0xbLSvG6KTaNPbiVawA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX9YJHo4PTe6SQ yRwwPbe4dRyG0NyRxG4q2+64ZiwQDT2cxrKcXZjQZAakQUR2f+y1GdclDgTxcJ0etJK0OmiIas5 fkoaX0nC7Dg/EPBVaaagm7sOZhFfZqs= X-Proofpoint-GUID: J2wrciPDh_-5yS4QWVptZwR080G9nh1l X-Proofpoint-ORIG-GUID: J2wrciPDh_-5yS4QWVptZwR080G9nh1l X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX6HhQwj8G8oxo 0AWbElZ7WkIsFzktJ/ClsM3Lj4EKxYWl7CoH2qOTTqoyZfqa3EyHpI0WH4rMkjC/CNf9yx9nIkz Yrot9BAb9fazEl6CLLeVK+/vms5DMwD8exEQRBlScML9QE5QFZPOuKfF3g+cg08nvfPQ2qNmULI jSxkErjBMi1KFIA78N55oEQPs44snuo92X1dMj8gN5GiWxWbyBpEbnOM+nylELTph4iAGbsVtpd 4Lsht50C8bOsuUhvdcWvB6l7ufLSBYjspxh3uyEZaWhfvYWXChKMlT9Okihxzt76B8DRfTVFIym zczDF7HHNLPqXzI8B3MB9OLjDKa3wRRRwwLTVhs/pzMgF7ANEF4/pZPT3v5bmyrFj+9A24LZLXH UJ/IzXDFXD0zrq2Y4aRLlzRnBWqHOGjQEwzvpKmb4h0JW201y/7LdLckdzIhcxdDE+AJY+uWAQ1 oEy8bJYNi6Hyw44Orrg== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 suspectscore=0 spamscore=0 malwarescore=0 priorityscore=1501 adultscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606550823158500 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 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 Sat Oct 24 01:39:54 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=1792606661; cv=none; d=zohomail.com; s=zohoarc; b=SmeKq2mceMRuWECtOVpEOQ9iY58He7K2sp/gmQTB9nW04hppdoUDf/NIztXNOCqfclOnza1YCMeHouMZtFIeDXZ/qh7MCtc+OgCQ7NUjVR9QjbdgKgyHhZ/f/5Y7KDPyv/p33NPx8hHACWWrGJNmfsIl2ycWqY0mLeX9RqcScj0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606661; 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=iSu/3rfOXr3KnlWfxYH3mqgdMtcqBvhBkdiL/nbm4MM=; b=nmuOrnzQWuIJ9oO6DkAcXznnEiky4dldCPiWyOx3p+J7QDPU3bnZ0WNBrY7+Yv7NcuK9ljvFzXPlnpMdOKRhgMomK7BafbCQOBKM+q7lA6iv4rjeHiojwGEdnyp8ni1PJk/++6juBd7ks1ADv0JEPU6B5Qs1se5P9ctJuRrkMUM= 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 1792606661019146.14640957424558; Wed, 21 Oct 2026 11:17:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoU-0004Tv-56; Wed, 21 Oct 2026 14:13:22 -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 1xJaoO-0004S7-Ph for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:16 -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 1xJaoN-00084M-4F for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:16 -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 69LHpElR2384113 for ; Wed, 21 Oct 2026 18:13:03 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 4hf0ke0jum-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:03 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ac575a9198so1665580a91.3 for ; Wed, 21 Oct 2026 11:13:03 -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-3ada48ed74bsm499152a91.3.2026.10.21.11.13.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:13: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= iSu/3rfOXr3KnlWfxYH3mqgdMtcqBvhBkdiL/nbm4MM=; b=Tgh3xUqcMMKJTCpt Moa5NlwcsCK1xosr4SJlnzUHL3Zex9+yeIvTpCkrQtrwZbWkyLPW6yCSHUodJfnN LZOfP9t9Nzh5o+VG1rR1Zyi76KZxoz4vmHCH2L6x2n9JcbNkxvrL6+uh4aQ4fzDq CYOFxgqnHVXcvVgl6VtniLF38AH/6BOXWJoC7/7OKDO7S909vDzGjtva4cbT0EVd BoMc2kI/+yCGdNkqmr83U7ZNLa1fbG1MOI1usp8HBweIBxPMWwUEttdjJ+7U0/Sw VFVX18Fds5VsBB/GhozZARYxA+rYK88Nr3dcg9Yjcz8ELfbXft6ldhdJjnNEbQ0f pRKl/w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606383; x=1793211183; 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=iSu/3rfOXr3KnlWfxYH3mqgdMtcqBvhBkdiL/nbm4MM=; b=Oy5529Nsj3CPuv/jLt7skC3612+pX7Qzy2jTOVreltD6FB+BF5U2Uldz4jZK30Xyxn ILR4zVgRj+41Fi9i6GR1B/JB8aEOmlow1SuuN9lj8LFpG7txEnei+hga+RiZtVAOIVQU /pVfoxZdDHjysCxZqin64eaRPEOz4X2HTB2HTu12k5/MmB7ifhqaVjd1IZKGXiG35kB0 4X0ZNzXyoGxUd+eHRhOFMmsjEn8M9o/PICpF9IHH0H5ozAcOnDblxSgyBXggdrwy55We divxnUzr1Xiuoh+90PsSw+qEl6E65jh88ts1Gr1XjtxZ7gdV826SrNds0GFgdY6/isi/ qJbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606383; x=1793211183; 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=iSu/3rfOXr3KnlWfxYH3mqgdMtcqBvhBkdiL/nbm4MM=; b=V05BvfZYPKt+4iknJ7QaaxbjNterQt5JkJDBA9X/+T9S2CndbyGZLWKie8TSq9chC0 s5Cvs2I0ceBn2XmuoCYxCPPh9NwgDBEPUb/tQcNTTU2amm+VyzL3WBd4aaV0iyS1qpSX PYKmyCY4p4sE9l6Z+63uGLG3paH2DgU3c+2Ow8Y31WWvG3Nb35CSC5c87TnOZa2ptPQK GOGkVOdy55X1P85985BPL+ozJyCXno7Pi+O9VZGV4i5Ft8yxCtckLIiYVXoYl0sT3MR8 /NUN6s1u7vegUOQYHrJEYXEXnZQ1r5yAl87huHdI9F4HEgvWUumJT1OrPta/oz4ctNZe Ax8A== X-Gm-Message-State: AFq9FYL111ivO/jTGEU1VjwtgvWHzLPyf61sJHyMY9vpRxeBiymi8AKq FN+BpUE+WH+yGZEEnc4OEmgBvvXjjekIpjBtvaSWi4uDodJPV7sjAlz9f3LZBAp3ZmeTr5Xc7MZ BzdXaG29PdCfONHgKNK10Uq8GxIrHb4qUAW1fWE2jNio6kpBBtTNZ02EqKRfRZNkO4w== X-Gm-Gg: AYBFou3xZNYAnLvTTJUOlXqIb+Fn7u5YRZRJG0wArnR9BgMZ/5XYV9xQhCBBUaA5o/g WmQV9OG6UJP6rfGph1fIlcOK9A6Y915WPaaDreudX5rWKPjym1kY0DhH49tjZ063RpfHlMFtemq sEd68fMOfG+02iq2lK6yatFz2hLL6Hb8GPHVNJOOtrSnJvsfOPRFuMztX4cQ0sraGz2yeMUUGFr zxAXPlb38dTDBk0+bEuOb//PfN7FzYOfES6wWgf6Z05tkKijD9y7tRP3qMQDuoWq4luZIWlSGYG fSbmTAhljbIK86olXN8lJCbBtwOAD98lxw9ANUWocBwTfBQbyAm0JTcFoqeL4WfsUOCt/EfW+nR tm9qQFLZkuus+41FVU0uFTNDvQyLyqno810z4s77DyXuskidbBDPGEzkS40qyNQg= X-Received: by 2002:a17:90b:548e:b0:3a8:2c7e:8986 with SMTP id 98e67ed59e1d1-3ad86f44838mr2388162a91.17.1792606382934; Wed, 21 Oct 2026 11:13:02 -0700 (PDT) X-Received: by 2002:a17:90b:548e:b0:3a8:2c7e:8986 with SMTP id 98e67ed59e1d1-3ad86f44838mr2388148a91.17.1792606382499; Wed, 21 Oct 2026 11:13:02 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 15/21] target/arm: implement get_note_size sysemu op Date: Wed, 21 Oct 2026 11:12:38 -0700 Message-ID: <20261021181244.867840-16-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: Qn0mRkQ0WUu6J1D8YuYvp-qNQkUDLsy0 X-Proofpoint-ORIG-GUID: Qn0mRkQ0WUu6J1D8YuYvp-qNQkUDLsy0 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX2rUc28LZyfLE Sv/eh7sNqvB7bYhcMf/eKvP2D8mgNlUgtxz2Q4fLTBSSGy49ld1x0cyQbo4izwuitxCN2IPegF8 kPyYmeRD2I/6vRpUHMexULiJM3E0Dw8= X-Authority-Analysis: v=2.4 cv=KOzPn1Fo c=1 sm=1 tr=0 ts=6ad900af 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=Um2Pa8k9VHT-vaBCBUpS:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=Vcmh8FhFDDEcUw5d5KwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX21hxqhWuFKPp 2yzFssIt74oRj1K+xRW43c+XLVV3Kr69CeERcyL2KYNMRCeeOP9CRsN9GHylsHhQ2o3R0/tQI7z ZwJXWOVAJsXZwjdQkRWs3hjtDVQZTVTQKUguaLdgDroUM7+7E7KwhC+zj3k5NziCLrHRQT1R3/8 So755V+/it7DV8G7z7pCUO2rxYzspreNUxaoChgiyLkDTYPGKAA0NzN0RwY3ShDKdVhCrEEw4wP B8I/YkfqGFxXnbeJShYx/yluAT9RfiN87VbMMo/CrZniqoQ7jLF/OCkNvlXlDZ6ut2j6/g+ayUa xx6zaQXHf+9PWHAm1kw4+j9O8cjbOlWd8Oc86D0fob1phdLOtEm4iih11QthRJK9Le5sMmWpRHq awy18FrqqT5xPNzx5yRS9FM4i/EDoCv958OcEbteJSyaItI7dHqQo28si4K407aUv6T/RfDU4vk Vc1RjAXOc++GaZiMiJw== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 spamscore=0 impostorscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 priorityscore=1501 malwarescore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606662955158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606583; cv=none; d=zohomail.com; s=zohoarc; b=OLrA0qKRYZqeUxeDiWEphp2R6t+bTY7QuMJzDtIf4AuVAOGKKB3h55d94rP9eQ3e3qlLHE8GdX1jV83XfEsD297EO1oVnsI7NIz3nx/TjLieY1hNN8zON4XIlvDVY5r5HiSE9k55s5zC2K2OMIl/8Embf9H1plUyf4tZXTITTXI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606583; 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=JP0YrXeH6WRFXhDp2PBgCgtcZy4/CuZS1RSjSelqaT4=; b=gxH/vNJZ8Evcpmug3icIkEttMm336APAumngn7MdZNaCI+HW9jl/4BhonFBo0lGPhxuV98/9yNlIkfppChTdDYp6FVQHhwwqq5p0HOK7GdgTe/oQXO5FroWqXxMZ10qB6X79BkgyEl7BO3NVgvGA5ZYq3riOi9yqXfzQLchhJaM= 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 1792606583855227.6318571938234; Wed, 21 Oct 2026 11:16:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoQ-0004T7-Ta; Wed, 21 Oct 2026 14:13:18 -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 1xJaoP-0004SM-Fm for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:17 -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 1xJaoN-00084Y-V6 for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:17 -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 69LHpNtO454561 for ; Wed, 21 Oct 2026 18:13: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 4hex589c29-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:04 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-39de4e72b33so1510278a91.2 for ; Wed, 21 Oct 2026 11:13: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-3ada48ed74bsm499152a91.3.2026.10.21.11.13.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:13:02 -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= JP0YrXeH6WRFXhDp2PBgCgtcZy4/CuZS1RSjSelqaT4=; b=GcBeGc02u1bks5Ig tDwX8wu31Cr3hvZ69XZFQfMk5BrBIxIeXNtpcrFJophd1u0lRAthAh6JNvznVWMZ 4EXQtIT6y9NvHs/6suPBKCvlb2a4Qd/w5W7Gjrkp3pFSbn56+LXFTVivNk/dTSe7 kB+Uf6NQJujIQnYQhgLW30+IGbic7Y1Y/fPTMXFwjZCf8RClpexIblKp4ABkdwaZ N4YlEUUQ8yfqQjQe7yXiOtZARab1RIkQ2sCeKP36DqHqqmDiEYJdtloMuJZiOjQs kjOza5DMeXJ2DmehqAF16qAhusSy+8NdKZ9lSYqJ5y+u+8Re0nJpU79l2FtjAJZw TmaF/A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606384; x=1793211184; 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=JP0YrXeH6WRFXhDp2PBgCgtcZy4/CuZS1RSjSelqaT4=; b=Z2nqXsoT2Zj68DfV4w/HRom4I5hkKec0Vd7Rctpb6X9I4gFxgpq8rSHLiCoUvGQz0V jTuSiRPmZqxBzQcNWZzKKtXugGB59674E27FZOKDXmzVvpdz6OM3esSLkCdeuOhW0n1R 66P5f21rwNptRt7Ub4lZcQDVybV21ra5kCC1sK8AVk+CEq585Q+TibHDFlYhbZsmh0ij NBOnQ1HOv2g3Ms3gdUTt0tZ8jQSU07OAuw7TTxepIdHGZ26hSC7yTMvBQzbJgek+sbpz 4fS+u1/MZQL52D0AdWH7Yeq+TUb3JHCh7FJpB6gnn81Nl/JxXU2dY/QuTP+ouqbh9oj9 vDpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606384; x=1793211184; 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=JP0YrXeH6WRFXhDp2PBgCgtcZy4/CuZS1RSjSelqaT4=; b=T6zNT3j9xeIPHVqw8CzaFVK+ZwDVm6DmxBU0bZsMyagUrKwWoy32YJn+wbYjPPExWk A7eNfJE0QdJSj4uC0ueEPzS20X10JWIhjs10TdUr2U/yjhYrwGCO1cWotTS2oK4hzB0d sxmbhDOAOVz6I/XYf3VDKquZLKsX7+Ir4spynQ3b5hmY3t3uzyYVNOR0sofrw14m2tTu dYVLrhrA6D6RSe7VvrxkBYclT9LllWLT+L+Ff0u6vKX7nVGkLESiqbC5HzaOfoZTDG+C NNDF6Qnpf1FUVZc+xZJdyTN/lpm35udynVeYbyzsflwoENpudzNG6G9CbXTAguBQd1+M IZ+w== X-Gm-Message-State: AFq9FYIY4ydS4wijzJLjrdFCQ7uyoWmDbVeJuHprj1RDgokGQ5wwW0rB JK6QuFhXZ/sRDLZS8IJQqL3SHLynasXzVgsQiTpRUMGVR5c4DbLuhSWOesknCUqMTgQKUnMCrvU fsK7GCvJmCPI0TREG2vitLi23CKxRpn7jUml31ecaXmbHOuR+vKZZSGno3H8ZMxxUpQ== X-Gm-Gg: AYBFou0Bd+tzi1RqNbe8VGinHY35WcdEN25I41DqZvDANKEBTj22r9/A9RbAU8EaKfO eriMLr4xZTwV8HaxqTonPOWC0zxj7LJTqf7zPRpep18aheCQKnStImAYjXCDDhXZf6N+rR/Lgsk yQDqDxRk/rg28hciaw0zCw4zZbSiAEiQ4fGQ1LBMhSbJEHsTMd3LcU31DmDIFh3VjgtngexmJLl MH5npWlUni3UJrfxZ2cusYcxZVtiLw+LXSyRGtJiIsJ3hbL/Lyn2qK0C7SIfK6gtu/FkVdHKNem qy0qEaz+6EG5xDU6xBmbiJ5oks/BDL83MtfkCeVG1irAjpheAq7bWTQq+tiqtLDgKRL1ukWVv5K wK53v0sGK16eaYAKLIjCOjS02zb5ORYAf1cVnd4hFjdWX5x7PphURpDZ8zt6C4Ys= X-Received: by 2002:a17:90b:51c3:b0:3ac:9706:7739 with SMTP id 98e67ed59e1d1-3ad86f1bd90mr1990364a91.17.1792606383918; Wed, 21 Oct 2026 11:13:03 -0700 (PDT) X-Received: by 2002:a17:90b:51c3:b0:3ac:9706:7739 with SMTP id 98e67ed59e1d1-3ad86f1bd90mr1990350a91.17.1792606383458; Wed, 21 Oct 2026 11:13:03 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 16/21] target/i386: implement get_note_size sysemu op Date: Wed, 21 Oct 2026 11:12:39 -0700 Message-ID: <20261021181244.867840-17-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfXyUVHrrxrtdPA c1Bzcn6pyIEzNIHH/Ftva+tMdcPmPV8Oaa1kaLK0KTMzlYgUHuZqBk9Pfi6DFRwe+v5HKQ1mfPt SoEGVitVcfi6+4Xu1Ev5YKFaQKdgOpM= X-Proofpoint-GUID: EstiKBz7H3t79Z7TVCi9HAUUtMW8c-ED X-Proofpoint-ORIG-GUID: EstiKBz7H3t79Z7TVCi9HAUUtMW8c-ED X-Authority-Analysis: v=2.4 cv=Ku7YSmWN c=1 sm=1 tr=0 ts=6ad900b0 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=YMgV9FUhrdKAYTUUvYB2:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=VkRzHO9NBAn2Hx42XgYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX0cbNjNt3rWMw hHGLXQzvUvF/pyBN7du4JefYu0mbKvshFn3s3FU1dvP+tu5TlJBycxsNUPxmC9ne3n7RBR6nghB jv76JbYONtwT0bkjk5Vqy/qwGguGQXRS+medOkRCEmgvL8o/h290IZDekX8EYXRwYGK67DfeKsU U4LCWMA6S4hiCeN8Q4dJtjJdKg917CEKimqgKUQ4HcSj2EwHfP9gr6TS8nOYUq43j3TCz8+F9Bt fLONZvtTWkPsUVLdg9tKs7+FUkAbXFkjqjD/zkeplqgAr+H531ybWtDqEDq5k3b95Rt1TqiyyKM zQtNmB4IJg8hl5PDvjyDKBevreNtlVRI77So6JIYt73/sVk0JVqGYHUeG3jR+E9xtsOvanLeOev SnT+IQwvEylOxDM94k7ywYGh+2vS3WywQbsKTxR8SQzb4mcu+sIcW8geUG5imSQ9DgabdCK4LVb ng86G7RRc94nsZnEWvg== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 malwarescore=0 adultscore=0 clxscore=1015 priorityscore=1501 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606585487158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606673; cv=none; d=zohomail.com; s=zohoarc; b=Mw14d//DsY2IBxjtwAQyjPO+0IOy96iO3aNOaw/MPF4pGgXA6kJOQn1ccBTxicgwwIA4yUaYLlAFIY7dGPR2+Ot+1OewK2O5GDQ/VdyqIc6hZoxeqjPQeDWNtRNZ5I3sNaNNXDZc/Wqs4DttNGma3birJFr1BUV0oT4qvUw0/S4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606673; 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=zlXbTVeWFZwsfRc9vm8hY0+L+2iMTjCs8AdXtzKMREY=; b=F3+r1g0CcrhH9pt8zROajHWuoeXwf+42XyQnW9CSzNjbOfjy0NAALUjtXta6ngfNfdb//RR9lxKkuGvxiMQ84gDa4GN4tEaRuKe31StFARTnZqIo5TleyRYKXIwIGgwHp7/4ERbaWBZhRhAFct0J73qtTPNaIFbxUvjNDyubMkM= 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 1792606673185674.8709041080276; Wed, 21 Oct 2026 11:17:53 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoU-0004Ty-M3; Wed, 21 Oct 2026 14:13:22 -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 1xJaoQ-0004SX-7S for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:18 -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 1xJaoO-00084e-Ky for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:17 -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 69LHpjTW4040097 for ; Wed, 21 Oct 2026 18:13:05 GMT Received: from mail-pj1-f70.google.com (mail-pj1-f70.google.com [209.85.216.70]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hesy7ahn0-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:05 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ac0ae43900so1191612a91.0 for ; Wed, 21 Oct 2026 11:13: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-3ada48ed74bsm499152a91.3.2026.10.21.11.13.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:13: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= zlXbTVeWFZwsfRc9vm8hY0+L+2iMTjCs8AdXtzKMREY=; b=FXmS7zOBWfB7pWR4 tF5rQCVDUnmhdSkS/MH2ooyRVcwY2dR4qgigeT93+uR8992BA8uMrBz4WAiHBa5i LNW6o3oPkWn3LNFdVj4vWPip294gRsSEj6WtscRKTpfxob/XmDbbXOqWzBODF18L CqRG4zFVHE0KVKSmJkSu5Pq2+1XSY5L3myQIiQJI/eX9dJQSGPji9AUYBgwc4GV2 0BfpKTsbZs9B4y9DNAlz1T4ikL5VG1Dlu6z3PFV/q9etHw845IwqguZZjLSBjA/p jzf4us4YHTBFWiF7+Yq1+V1bBDH/ckbl7T7u3O0azn7HMvJkbQXdwJYbl0fHS1Wi m6l4kw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606385; x=1793211185; 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=zlXbTVeWFZwsfRc9vm8hY0+L+2iMTjCs8AdXtzKMREY=; b=ONPTGkfcn7ud7CuxqMa5IuoeTeo32J5Gy279whWx6h+EX8krzcWbIHDqgLv891xkmB 8ODjDXoCkIku/z4h+y/TbRsImAd6y0nzdmQlwGACi9s+KbAmrSK2hdq68LQPLMa4WuAa 46BE1YAVjMELwwRt7XHBZAKkWHOyAQam6w0NcPul9G+3COMSPMuScQSjt0KXnMF7bOou OVanjxLC8HHThdkOGx+n8LIpZNoqtXXPbA+Hu8j5F5Wk1TUOXdWDIllDgt8oZTjfHNoX ZZsSb7OMTadvXr/WWrAI/eAMlMV7U5fbeOubAtEEQHIceSiFrry6bweZs8ekBwoTw2PM DSxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606385; x=1793211185; 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=zlXbTVeWFZwsfRc9vm8hY0+L+2iMTjCs8AdXtzKMREY=; b=n8cLh+bw/LG8DihpksE/hW47xkAeGUMHsMGGrMHP4BpGuJCTmXCxu+j3oVjr04lwnD Kx+WlaYmQyVPCuW0sEieDE7ojY3+/dMvh8+YJEisHUstuvYFfTKGO+VRi0DUWFWOjvEw 2UI9aAYmF83eSppzDF1xHnh4LJA2nOMsaRgs+37Vh2Aguz+tgjblTXmP4/mJj5cGtWSA YBUArUOdOFtVw98uV7tXjce70b8Io/fYRX6/GrIFYFukP7oGKUCqT1bkt8wvRKcH5Fpg rXDed3y/XX3gliuSzjXsOBx5bhQ65jgQrs5LbmWlLWEILkfk4eM6ftmX6HYL4noul7zP 7jZg== X-Gm-Message-State: AFq9FYKhi7Ht5JkldssKHKPjGhv53SVVwunfrWApiFzgn2DnxzS+a5Xw wenJMxLO9ZVKffDEfunW9F2snywubd6hEB3FatPEP0nw1mGmrKBQFskVE9WLpvxNGSeTadkmEvl pDbi7i+Jt2bczkOStQKvtelwa/YBJkjA5cLWU3OecCfkVPnoB4N2yrKGDdN8G8gePfg== X-Gm-Gg: AYBFou0HteqcLUs4S42/WJI8zUm/siDlLJCmFRKwbenbCfJX2lDuD/3jAV71zDCj5nI I3e02jFB+5HpQvjdRCXWhbPXn7MHB7bmLs2avLWt02KAxre2ZOGQZZYO5Jl+k57nVPTUIENs2ow a86DEpCTHayBTIWb8LZKDfFVkqZj+KifsQjMc4jonW2WEbvpbbRLwJFIn9xjw8FrL2Z5THIM/jP H5p7JloWYA0zV/oBAWGG2V48DPF9hTtIqFCGJ0CbtxiwvFIaZSgWl9bcP8069lOKfXVpeBYk5d0 fCHbAxbdAguEkGfAZ4F3sD20JaVYKg8Zh5A9JI6kmBLTXgacHQbJBkrauUh4yNY9wfl9+tycFbv v4Ekl0u2DajIxuCBrbxlHNZxwKuW1qemPvZp+5TO7S4TQEF1lmPnzi3yEHL0tAsQ= X-Received: by 2002:a17:90b:2b4f:b0:3ab:c80:9365 with SMTP id 98e67ed59e1d1-3ad86d5066dmr2270111a91.42.1792606384591; Wed, 21 Oct 2026 11:13:04 -0700 (PDT) X-Received: by 2002:a17:90b:2b4f:b0:3ab:c80:9365 with SMTP id 98e67ed59e1d1-3ad86d5066dmr2270094a91.42.1792606384108; Wed, 21 Oct 2026 11:13:04 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 17/21] target/ppc: implement get_note_size sysemu op Date: Wed, 21 Oct 2026 11:12:40 -0700 Message-ID: <20261021181244.867840-18-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: vLnJuLEZ73EfjY9BtUVw3-ulgIxo1I6t X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX3LUl1PsdmQk1 56Neanl/b8N70cn72vJxntkyAw1CKk61PZS4xjtseSbsdkHc9ELXeuMJ/sS0XRLgoU/YIedm6C2 fmz6nILx6300Hgkc4s/O4yHZCkX1BBnEz8TFWrUCYt+enY6fde/vWWPAf408a2tdtoO+/wars7B fLLk6igN/9mJI5jYJuxTBcHhDrU8p2fznS9aO9EY7HWJs2yNJoPphhp8fad82IiNieRlvLGgsM6 QZapE11tZQYvWt9R4AbgsemBLADGZ4ak/FDtIf2tRPlrYgCMlHrey9RHFQNywPeGQTQssRSard7 OjyDGUVv//4+iU2wf2v8jxOMBRLsk4T19tTHb/EeVp1jETricBHfgYtxsSH9rElWxZLMGT+npyU m7fZ5eXZzq+uHondeQeyaUKvtFSbIsTTuoguNpGsrZaIbw121oxwle+YeWEhh91RL4oFFTbvb3d 8i4lVy5Qrm/Vl8XWaNw== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX2qAvNXZGbklX FBrS9I6d4kJc1m6480MLUFeH2rjDeNnVre9gFLwKhD+sw9YNKsEbSJ+1so45X9abISujHlcCDSn imobZevJ92Mc0sgGYB94iA4cCzRKWg4= X-Proofpoint-ORIG-GUID: vLnJuLEZ73EfjY9BtUVw3-ulgIxo1I6t X-Authority-Analysis: v=2.4 cv=IPaXmQvG c=1 sm=1 tr=0 ts=6ad900b1 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=DJpcGTmdVt4CTyJn9g5Z:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=Lumvk8zKUu4O7nVSwh0A: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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 phishscore=0 lowpriorityscore=0 suspectscore=0 impostorscore=0 spamscore=0 priorityscore=1501 adultscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606675145158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606548; cv=none; d=zohomail.com; s=zohoarc; b=d8yjcxGaOj8DXLgRh0IsXJlWFfdBF5ltTGkNDyrUwiDqxa41ll1/CEtHWQq7GZaGWP8z9dwwVI7qNBHO4s5klC1IEnl02BItdmwS7LmCj885h1S7ZBdQIPJD5M4+5gBEnBtrcHNcjtAItDe+q/vRAOTWwZv/sQg7XImNYyPekWs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606548; 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=M8UuXxhSXXjnNdpJ0Gfsf68nKuzHyB0D4qkHeAp5mb4=; b=k7Xcx+LOgOjTeL2sdXf7c+kto6EO8w16u/LNVorwlylg9iSsaTIyLe/CSb+91XOsCdXr4RZoZ7OqP39S5o0uJ+ju9LhpS/tBqoVvlTMllm3g8wioh1zuqISQjHdqat2ssJrMfwr+XE1NsT26qk3U1zJxf2/6u4DdemzTTIBDR/Y= 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 1792606548179658.2135909967952; Wed, 21 Oct 2026 11:15:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoT-0004Ta-Gb; Wed, 21 Oct 2026 14:13:21 -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 1xJaoR-0004T9-HT for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:19 -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 1xJaoQ-00084j-0E for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:19 -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 69LHpMTd791150 for ; Wed, 21 Oct 2026 18:13:06 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hf0cv0n0j-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:06 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3ac76132001so836660a91.0 for ; Wed, 21 Oct 2026 11:13:06 -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-3ada48ed74bsm499152a91.3.2026.10.21.11.13.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:13: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= M8UuXxhSXXjnNdpJ0Gfsf68nKuzHyB0D4qkHeAp5mb4=; b=p7HSdXhidtrUli6R nrMXp6MQvV7gaz9VDx1X8Gds4VJ7yTbydual7l5Ol2p7vv/WYnfw5Z1lWvmYwN7p c+NGv+nR/W/jI1/P1KD97SnfwuaTDinmbHzKzCx9HgUjVceikRODtYY4m7cOZxE9 V2dMTDhvBemtv79zub61DMvgi1Tcit+RgiLucUBycSVmiqhlR11ET/lwsgVcXiDG 6mHFiLjzlUc5P9n5TBbchIfV5iV7d6efaW0Rye5xLxwZl51Pq3pIDUNfafPLo+ON YOUgoQ4+Vh2IhleXwN0LhwolF5mOywFZ/iFJqf+/NxkiflhoXY1+lolfAO1ZaU9q TCnwug== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606386; x=1793211186; 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=M8UuXxhSXXjnNdpJ0Gfsf68nKuzHyB0D4qkHeAp5mb4=; b=kf0PAuVqTu4joIxw/OIA/QHGdHIqbPeNwhkEkQzG7C0Gk2rmlSIsAjmzFjkumW/qnA +VnDAZ4P+ZAYjSQjk0ePlUwGBCcqiNsYkzgjZUDwgzq88pdD1G07d/8dWPvrU8B20czw ig48que/vWpKYQBKyCTgZZVN0kCdrCVV/uLIpNX9oSNp/PvP7XJ5e/UzlI7PDkCXXqG+ m2mwDC0blIB1leuMvP06tiKKBAHfYK4xl4LVcex6TeGNYSVG0dThwB0u3anR1MCfIBNI b8QraQeTm8mCpaUCX/NqFFpfAvFnhEZ3jCpPvYqBKmsFLM4HE6hL3S3Xmc0nkBx3sxzW bZgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606386; x=1793211186; 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=M8UuXxhSXXjnNdpJ0Gfsf68nKuzHyB0D4qkHeAp5mb4=; b=jfFNAcYx9MrjIjqLdPB7MSGR0Xa3waxVIgGnyv6aIt+jnwkqFs6W3GuQDrdjnwcNDy WiHfx13GQ+6tUeFxLSuc3vz8sFaSxjjOgpq7qT5+trdrxbblEWvImcChJcl/rTzjjh9a LokqjmczIwdYmXCC7IUUiiAA83GKhgXCKPLdlLED7C80gEkWbaU7yS39qJXfXCWOyf5Z Imqfkei2bFetv+soJKHtvLV7jBFhAoXyrsG99ytsP/zcR6RTnI0mTW+fPoev2dU8F4RK 0/bo9dXpoHBD74Dmnceqfn6gX3wH7YML03HT+Qq+9flNTFUxRvHA+/8NzzS4uih5NJP2 tR5A== X-Gm-Message-State: AFq9FYKi4yFWh0YoGCmXllLU7OHJSB/9mo8W1sCO2o2UZwToC4e+N9BJ FHSmB6bWqu7BK8y9PvBDf9fzWPDPkJjMs++lIKap4ncu1+I6CsU8TclpcYbe9bzhQQ99aZNLlMP uS6hj0JJXG1PWsjqYGZOEqe5w0gVtmgJimie/GynCIsvEVvu7vhspP61H7tPdAk1c6Q== X-Gm-Gg: AYBFou0fcmIhYv8poz5f3gpnSa8qj3VX2mnOKTrMc6cLno8ZqoKCz0Pxz62RPx+2ZZq iVAJ95DwgP9vkVs/rpilrxUe8/fPuDOCjlDt/BhH4+CwfKuWOjWjDcByvH9BWq8vjOfhPkYp13d HGogNeQr3NS7Wc7OpgjzwD2FglBcdK82csjrtF8KN6gKJ8AFZGYxesC2IjZ6sfFtWE9EMo2+RGg YjUymd5XbPjiB6IFca4faUk8EYOxu7Tr7m5yXF4wKSdmoDdFeQ6JUlpANhMQxnUnQpm/ATfTw7n lF/um0f+vBx6zXnt2AvWbl2Amo14lHTFwfD+uelSh1dpSiJkTqrwkFpBghyLxsngkyiYLh01EGJ EVMetSlEAzoXmkW2lgO102g+AlTQaS2T69iL/pYahAMjL5FvGrf56D//o0FS1i0M= X-Received: by 2002:a17:90b:4d06:b0:3ac:9e76:aa93 with SMTP id 98e67ed59e1d1-3ad86dbc0c6mr2025129a91.7.1792606385932; Wed, 21 Oct 2026 11:13:05 -0700 (PDT) X-Received: by 2002:a17:90b:4d06:b0:3ac:9e76:aa93 with SMTP id 98e67ed59e1d1-3ad86dbc0c6mr2025115a91.7.1792606385424; Wed, 21 Oct 2026 11:13:05 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 18/21] target/riscv: implement get_note_size sysemu op Date: Wed, 21 Oct 2026 11:12:41 -0700 Message-ID: <20261021181244.867840-19-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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=NrRE4MdJ c=1 sm=1 tr=0 ts=6ad900b2 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==: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=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=WHTxxU84TY79vzyxHH8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-ORIG-GUID: PT6QiJv_a-Pnt2yjtse0JMRMvYyc2oeK X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX3N4Xhx5b45bB ujNb8XlzV3iQDni5VXSegNioJEWHK1aUY4r9rDTWLtysjRBu5U+Vap2Nd8KlbbhdhkeZb3rbJM8 /7l54rt/dlqn3t0I02zTRl87O9wujJ4= X-Proofpoint-GUID: PT6QiJv_a-Pnt2yjtse0JMRMvYyc2oeK X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX9uklg/+nZUgJ fp4mxiCbCC6CG7yvrurCTSHLgNSc1Ig1+MlYUE5p4JLLAOMrQ/X1NMwEl4u/8B+cRkWpI84pxiu xls9ZeBlFO5S1EPwTqhfAjBH766tY2wGAyo6Fsq9RNS0eG9HPI/LUxSBsVbtiI7gjVxF6lVQS1o NLqOyuiVZpG9m4Z/MI6eHMKp0xdQyp1SUQH/298xQYgr9KDvHtAhfgESl1kxCK9eGF6RxEJtT2y umwP7GuGQscBSUzeZhnREOqmeivhoazEAEbn2tafLb1Ew12U6z2BU8+fY9Rfy2pYb6oX55mGe0w BQ+KXOcCTs3k8997SJMytR/6tSYMQorZxPmwvuikUaY9z9aAePP4TAOXNpgPOmq6G/jMI81e+S0 biPGgVLCyzpYvBjYoPJRISEeMEkXDWjLNpAH37f+U6PkraleofAaCtvv3e8OXGEckDu9FktlmIi 8ycPM50YgqJgEwTvpQA== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 spamscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606548771158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606461; cv=none; d=zohomail.com; s=zohoarc; b=ASV4TFLBIvRFWZLFinzgQ3+Xh3B7AyiBgGfXJ2e4yHEaGUvHho5IMiYVVHMGelA4CoC8QM3zzt4Itlnk/w10mZWT4msn6mbzud6xeD5Vo5Aq9JUt9dlfxZ2rmtNdu5vprB30U24vCll1HUbSLdXrQynmlkHyYfjLY4Ls3bqodmw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606461; 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=AYQaWd5Z1MF4/UxaSk84LD4bb40q2r0A7bRtpzCu1SM=; b=ayFjxRAMKq0iCPCcqDoexQmQZMlax40ozEUdU7lO1ucfkOa2RQbTYO9oJjREe5zbJ0eA1//3vwFx8vp03fMLMn4yez7fhKopjhzmKKseJjTJY47BZGHf0meFXrkf3rlC0JSlI2lJIYdXObDdNNNwvQOR/a4KQ6UAw+VE/yKhlVI= 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 179260646135516.841196021779865; Wed, 21 Oct 2026 11:14:21 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoK-0004QP-L6; Wed, 21 Oct 2026 14:13: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 1xJaoI-0004Q7-U4 for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13: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 1xJaoH-00084o-BR for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:10 -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 69LHpOXi1795267 for ; Wed, 21 Oct 2026 18:13: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 4hf1u3g5e3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:07 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3aaf955db5fso1500656a91.0 for ; Wed, 21 Oct 2026 11:13: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-3ada48ed74bsm499152a91.3.2026.10.21.11.13.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:13: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= AYQaWd5Z1MF4/UxaSk84LD4bb40q2r0A7bRtpzCu1SM=; b=XcgVR9KI0lZK0CFp 8aN+M7OHxo/QG8HLklmkEZVC6AvTd+eOpSa3W3fAkB3bBuOXRVsbZcrh5Hqgx8ih aPkIiV5UMgxmJ/JcPjEOdei3rxO6H0JoF0uCAe//o5X+oMkn0hhKl1XgGQIrWPdS eXJksF2IimebKsHxbQ5pATpWxFAR1lMPP4rinpZbs49H9kmyGzAOuqZUUv+/QeS5 i258Amo2v81+XHJNe7c8mUkbVB1bBatWq87Tw++2C6iO2mVoZ2iQUXSsrYuFqa6w wfxyt+xVb7TKIjsfv5BhOmOItZhYBboAUG0W2EOueANz/zPoqwuM9JOx/TTTUdXN zw9iig== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606387; x=1793211187; 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=AYQaWd5Z1MF4/UxaSk84LD4bb40q2r0A7bRtpzCu1SM=; b=b+WoSPpZNpDMFaIiNRDI3qAw7dJ0gJ3dSz8c3zv5T6lP3ImjH5bQr6qWNXXkL9NUQU 5NAlR1Tz/C72BhXV3SsNmqmS1gJL51Z7qbRr2nKjXaydoUZp1SMrU6yC+HAThUuorLr5 FoqWH9N1bSDQdmx5qsUbF6+xoaidOFCyYP2MH3RyhuLpf+ZaOb2A/275jvqNVzYS0yDx gxWOU8Liz84MtGI4eTNs5hx1fwTlTmFLygHJxJGsKL5oW3OeqUnqAumNM7gezvL7XxPq TBCsR93B0g47FL6Bx0QRvfQy37fo+Kv3wPHELZ9Zdz5SJzSxyYCvaQ0MHDN7ZnCbgSLP LXGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606387; x=1793211187; 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=AYQaWd5Z1MF4/UxaSk84LD4bb40q2r0A7bRtpzCu1SM=; b=MhVtKYrLNW3+PRyWZos9UF8zbwcRlgtfu0C1fngrdROa1gVBFpne+UGraNNQsUcpJL uofyzjNYnI1Uj6Lx6pMsahDHlnBwPjuHZmqpAbjwp1sK+m8i10lI38Stk48vXHMSDcwL G9S4VDvcSWJzTLfb2biLnlenqOjvWRdBJCl3pPOf1+QqXcnB2ZM3zt0RaiSIFKkVQsUy 7sdrCvI5q+uWqOxMtOFbOAo8I9l58kGzJuLwa5qz6XwDaZgpagtCduI9pEXDJLJdNPwB IgXNvSoDFcZM4CEurv52jrKXqFznIkjgwKNBuIydGZcEcXDEoP+BbmWor/xCpzGAPI4p Y6lw== X-Gm-Message-State: AFq9FYKQgqFLvb7Hco4s4RfTcdDM1i68VfLC/wjraQ046dVA2yYx7fne YNFAA7Ykbivlpm7GSHpG7jkdR+DqnJXkp4spyXlIvBSOj6nWMawh7ds0Rj9nwml0QiC1dVN5SG4 eKWK9K3PqGJnnAGCzb9dIqQgjFOMA3Ru5/L/mOkBENJc9Xrz7/6+RuK1J0GTvSY0a3Q== X-Gm-Gg: AYBFou3JuC5TPp37IawWsgz73ehRo11hN623OYguKTtGb8Gp9zoyWRhq10diPg5H9G8 gJz+t5PSain8pDgah5QlFgwamN5DMcT4EXLt1O05d7AGMI7jCbQ198hruVazwoU/inFgpY2tie/ 2Lo0so/I5xFpGYtOGO8rhomQ4BWiSgLDH8P+rP2bHSAazCHaYsv5pC7d6r9nc4lrKw6cNBz2E9a 5jJMjuPppivyWCJ70YApZMOW/lCXYhep9okgVFTvacnAlf1s0LYl3zpJdCpHFsu8hlP6Cb0N73K uuut00xPY4vsKOQ8KnE78+1cs6mk3jWIVnWDhvBX8oisRgfpJ4aG3JcvqKGMiyF9tWjUX8aFSn8 1a0slar3NxLQjhMuc/jqNRhHfKBEG1qArj6UDqWUYyZP2mYBBmE3mU0ru+lphZNI= X-Received: by 2002:a17:90b:3d8b:b0:3ac:4e18:2390 with SMTP id 98e67ed59e1d1-3ad86dcac3cmr2188635a91.7.1792606386901; Wed, 21 Oct 2026 11:13:06 -0700 (PDT) X-Received: by 2002:a17:90b:3d8b:b0:3ac:4e18:2390 with SMTP id 98e67ed59e1d1-3ad86dcac3cmr2188620a91.7.1792606386405; Wed, 21 Oct 2026 11:13:06 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 19/21] target/s390x: implement get_note_size sysemu op Date: Wed, 21 Oct 2026 11:12:42 -0700 Message-ID: <20261021181244.867840-20-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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=S8ZMU4sP c=1 sm=1 tr=0 ts=6ad900b3 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=_glEPmIy2e8OvE2BGh3C:22 a=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=EDlH-CkopuZvdY7HuOYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: rAfIF8jnLkNhZUVwktRr6vKF8P_G6ttn X-Proofpoint-GUID: rAfIF8jnLkNhZUVwktRr6vKF8P_G6ttn X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX9XI7oRcXCijD 2qi3l2IrMpEIK+d2LKP8mTFzZ8h6qL7kuyDLNjPfr8u6cCZ7uEhXoZsUYv93WPtQQn7tvQgMp2N l/LNAQM1gfMi0v1737Ea665UY9TuhRYnk66XmL4DDQyAKU3VbCZcyqyqONTo+CFU3hi8i91Ut3l ih5zcxRyILBUeExFjbMoP8K2x0u1izHSIPUr3eZ5PraELNEWRR8ZPUvDN0Oj8bHTQ7ZbE+AryqG nOLJ+Ot0OuIciwlD3T2chneLnVHp4T8HYmovoSHy8MYAwTxq+S9/uuuUVSt2jFcjD2LS7GeEvX1 RXaZkGib8iHVAg6qlc+fia4c6JU4hrooYj1en+o1Eh2YRWslTVHO9jqrH3reBKKhMEh24tSIIRa R5oHq3tFT+5iGYWTTVuuNP530RCHQnzZcGueNNCHhzQszcEI7tmoQzI7Gbc7ImEeQtzxeX57NRI wgHN7XFtqRb2pIaZE4g== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX/nqHx7HVng4X tmygCAf6a6x3uMomFZHbKcR4HcuNFzcbHQiOT4dVlg7CY4c1Rih0A5s25YD6DHMx7kXjCchsFZ+ h4ychis8Ua3b+Dh9QsE/vPtXmzExqcE= 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 bulkscore=0 phishscore=0 clxscore=1015 adultscore=0 impostorscore=0 malwarescore=0 spamscore=0 suspectscore=0 lowpriorityscore=0 priorityscore=1501 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606463617158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606463; cv=none; d=zohomail.com; s=zohoarc; b=Svfc6OhMEHs9qKJO5E5wwuTUVngEOMG+7Nzcj9XEdDpxzxIofBlL7aMowXumyHJKnFh/CK+CuTVZ/ahMfIoC7+4j/V4Z9DvJI8b9TN+/5lLDeZ3fO5+iE98EjIoD6uP/ExwaHmZ6pELpT9sYq41BFdz7BDTWhYBNH0sy9O3wg18= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606463; 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=h2jTlZiDdjPjAMEPohS+5uafdG9Vx/YqO9x5Q4tOymM=; b=gAzNiDVbgVYvgiXE4zdBU9Wi35PgbrM2XA7YfiFS55Bd+hpsmUqPmDlBZ99VprzmP2nQ5uXI/pYqwFtQWF8Nry6w97UFmnW+dyXFvgjJJCrs/5uGmWzH+KPioaydC763qfLymQmt3opgz2HqzBM7ZJIQfjVoK+nR1w4ZEsBoQJs= 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 1792606463572598.9963346340921; Wed, 21 Oct 2026 11:14:23 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoW-0004Ud-Jz; Wed, 21 Oct 2026 14:13:24 -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 1xJaoU-0004U1-Ob for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:22 -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 1xJaoT-00084u-5g for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:22 -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 69LHpPXr791166 for ; Wed, 21 Oct 2026 18:13:09 GMT Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hf0cv0n0p-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:09 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-39de4e72b33so1510382a91.2 for ; Wed, 21 Oct 2026 11:13:09 -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-3ada48ed74bsm499152a91.3.2026.10.21.11.13.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:13: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= h2jTlZiDdjPjAMEPohS+5uafdG9Vx/YqO9x5Q4tOymM=; b=QEf+7G08fX3BfnRO vo9ZB/quMOYqi7xrU5vvuDXVQFVjIOI3yr/EiQHQryjOLkrYuhmr49LOiGEPRLi3 M9SwcblwoOAS83JiC+6ffi5Z8Jkt6tjXtuzM3CyyyUH4qpDEhw08AGs+H+0FAWMn hU9IhNZcGV1OXhNHkYhTrftNsInPvPdbcEWS7yBzDWbB962bl0SvAvkoNpwXjrtv FdkU1LkGPhPSKWHvNgikDvrwYJtq914XqCAIKjM+70FcKOoqBUUpBXLNyW8UH7wJ xsPuIHUDlTteFC5oWfbw6jpAIKpUG4/FhNOxU0D30WnLBm6AoXOhEIlDgvvJsMoE uCYm1g== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606389; x=1793211189; 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=h2jTlZiDdjPjAMEPohS+5uafdG9Vx/YqO9x5Q4tOymM=; b=bUPLHNLODKc02PfwxWR+ij4UgvmKas6lK6IpJ/S9ID5isppWbCLD6JlV0f9OMmlONC Jjg8OwznYoLMriwn/6lXckAtGw9oI4UNnJv50R5Emma/yMEl+kweZCeggqZQ3kQQcdyl Xs6aMZcdUqqdUVzrihQAPgQLAMoVPZYbV35wvE01sSKmUDKnrrMcxPdPm+ZtcoJSnuJn gfOs8I5BOeW2O+J2cEhJhH4yAvl+8P9JJUDfvfK4gGhPVO3u2Svb6qNMpJbQFuQqVK7V dfu6hwcUaaDONYuh/r2M49OJlWB+dRsEqwnMGMbh9a2Nvw+sTaID5TD0+0iXR496xwdL PO8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606389; x=1793211189; 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=h2jTlZiDdjPjAMEPohS+5uafdG9Vx/YqO9x5Q4tOymM=; b=yf9hm5fj2QD6FLGFGLCUyrgpmjuyU1lxEygEk34FR9sjo0sFQ78dABPMA7Pp/Y+lbM jcDWSkQPLDsJ97XA1TkCJbvCfDBui9OvzZci/1ZP2R/GWwPmvT6CZKULkasc3eblPRwz kUNOQuPCDhuXw1+FXAXZQ+scPvsjR/awkxD7pyfxrMYD/8KARRf560oOVTH3PA2jCA/u HDSexzaU8PtydyHOpUoNYEvWTnwrfCl/Oz7KDlJvjkiK8NuVcPXfVP1pmT7YAwdsdUKG bUF8Qh0mLI6K+otFFJtRpM1kCBZ2bSc2NVxt50aSHtAE5bSRV0O4UNeBNWfe1lcmWqp/ FZoA== X-Gm-Message-State: AFq9FYJmq/gorJ3y2FfzzGr7RHoPWH8mdYfwnibID6IKV+zHJyu1lvr+ FeqAqyeBM7iEfepzZMILIiXDvb3aw8OQP/esULRemBIRcdJkZk7ruV6HBWF7HXA1u/v/FpDIhbo kx+uPDFSo36+7oxaC9OA//wyAHx/r1/tvvdahc9an8H4I67VWuiF8OJYLZm459H47yA== X-Gm-Gg: AYBFou1wuxXik5+mcnzGTrISyw9ENlOyKVqFjyBlwi3/WnNDsp/ufE7BbIy1o3At5V2 wjC6InJABwZmvXxdA7nrQo6xsl1MnHodoK08bVHSM6RnwZp41ksL0R17Vi2mMEgDVFkmg8GDkWG Z8MtlNHgMPmyZngBXqI6zSokW5xqI1rB9iIlmNJziMOY4l1Z5Njg3N7lFJ9MeiWSGM+gfxLi/Gb KjZw3OXAFAJkqkXvRxVm25DypGamlj3h+FJG+yJbCq4BsFyxGzroQ9RU7mGYJUMoYp+NPkVOioR uTmfACyKrNN7tiuaE+HEcq7Abvz8anlxLuCkswQbfTe4ZHLGvIDCPsvqM/60ypAMeLgrMSKwuHq vvw37Z+Qh/1tRz8hZAplqn4PwxV+nbOyZLOUdyCTpe3K97aUahV9JeIFAQD4VOtk= X-Received: by 2002:a17:90b:570f:b0:3ac:7f4c:a68c with SMTP id 98e67ed59e1d1-3ad8707153bmr2338922a91.49.1792606388918; Wed, 21 Oct 2026 11:13:08 -0700 (PDT) X-Received: by 2002:a17:90b:570f:b0:3ac:7f4c:a68c with SMTP id 98e67ed59e1d1-3ad8707153bmr2338869a91.49.1792606387074; Wed, 21 Oct 2026 11:13:07 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 20/21] target/loongarch: implement get_note_size sysemu op Date: Wed, 21 Oct 2026 11:12:43 -0700 Message-ID: <20261021181244.867840-21-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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=NrRE4MdJ c=1 sm=1 tr=0 ts=6ad900b5 cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==: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=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=VoVa20T_UCIUsInyF4AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-ORIG-GUID: L5fUWn1SeFKlr0cRlWjR6oLAHhML2C3Y X-Proofpoint-Spam-Info: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX7W0NKPcyIDnf D/vvz5t4V38RcPCuSwbP7gJOIt+EWBqEKkE4gsuFlOA0/977CJKXlceyv2ugO/QfBx0QK79HBrp WwjUSieYsSDI5R76DwQJrUTobO5pnu0= X-Proofpoint-GUID: L5fUWn1SeFKlr0cRlWjR6oLAHhML2C3Y X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfXx9eouuIdn25y WX+fVMgr6DraIyyyQtWMLmxosuLdujU+jTda4uHrlJbEOe+pvs3ni/WjGhnzZKBNttgcOzTJhRv dHXsOdeFbQxu8JBhouRxBiTer0Laf8XqFYhLOH4Tt3OARytDBJkyplnTaPKEbg5bqnudmxYp6pB FaGr666znc3NyMyGrOBZ6tIN8X4Dcj8/stLpz1VduL6HOCtNpUbU7xBgg6ViDFG7tRpnMDWIPqG 5f7Uwr8D16Ox3k4FFSrL5L+Xmmff+aHUqPLzXCZvkFYu8uoUIlHmNZlDJKLZwofp9ztvp/Tvslx SmqjGMgdpB//KcfEgjjJs3Lc9+IfO4unSNVSclUzNtEnmfBt2KnK7Q+hLZ4s24ovOJ+gWDiiScA d1TnHRY4poIbDzPqlPqv+yiS7JNfJqjiSKl9+YuGH8+WKMN4SBVlmfku7Cj0bGfVjkVXde7VYlm wJ6y7gYbyEui64qBL6w== 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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 spamscore=0 bulkscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606465283158500 For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau 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 Sat Oct 24 01:39:54 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=1792606598; cv=none; d=zohomail.com; s=zohoarc; b=Bq2dqica3oZABCRKBGNmK05jJbkwNFO8IXXL6GbsNetWU+OW8Ku0NhekTR4RID3d4s5v+kjIRhLTIHCBs69IuJZ9SgX9lgHRvKFnuNO1b62JM9FtZSk4DqmQvTR4suOQqH3XlUJRgbBQGEF206jPaQhw9A5K5+0yaHPlPV9vbj8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792606598; 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=oZ3DN0XzHS5CgC6CedL2s1HAxBRsMBT/udd8AKrT/v0=; b=Pw1W3joxOmlfK1hHJXam8wd/LrflgPnnJPnkmFZAfGyux7BT33xkIhuoNfLvEXDxDoo0tRLpGKiMQdBRjw0ssIEkTMjgcKroGCJVGk60ACP4iYCAGcZigQyqARy3It9akC4Q2RijeCQ3mmQfQSci8wWGjqyjMORb+wyWGo6b7s4= 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 1792606598028506.82031826129094; Wed, 21 Oct 2026 11:16:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xJaoN-0004RH-Ds; Wed, 21 Oct 2026 14:13:15 -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 1xJaoL-0004Ql-UZ for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:13 -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 1xJaoJ-000856-Tb for qemu-devel@nongnu.org; Wed, 21 Oct 2026 14:13:13 -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 69LHpLZF1135924 for ; Wed, 21 Oct 2026 18:13:11 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 4hf0k2gj90-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 21 Oct 2026 18:13:10 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab67ff8ec3so790258a91.0 for ; Wed, 21 Oct 2026 11:13: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-3ada48ed74bsm499152a91.3.2026.10.21.11.13.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Oct 2026 11:13:08 -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= oZ3DN0XzHS5CgC6CedL2s1HAxBRsMBT/udd8AKrT/v0=; b=SDLAoKy0orQV59Dz qchdXNcCwxZln5l6sJYjMyNOWUDgzmZGwJYxHfueCayk44RqA4ZMWMTpeO1e+xqY T6O6d1UL09+OSXqWhqMpV/t69O0v3mNWj2DlB/Yx4BsG3NXmtetUzw9zLlE8ccLF sEkCqxMgG0bNNSn0WldfKePnKO67YalDm7MWNZvtMbw4MnyJUGg7dAHPwWQGG+h0 pTHclwoVAa6Uvfrr3qKov8/CA3QWZ55oldb9ds/ltJWGiGykl0VnGi6EBvdP3SDs G0fxsXwr+Bh+UkWmGW5IS3Xhx1EuJWJreC8zoOTg7mKvidaFtf1lJjJplWXYyxdh +qslmw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792606390; x=1793211190; 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=oZ3DN0XzHS5CgC6CedL2s1HAxBRsMBT/udd8AKrT/v0=; b=kBHh83Mfyu3sb++vtdNA9UmVGXjH7xtXNXMgRlPh8KYPpZUnsSS/Pz7XVEl6eHl2sw YXgnH5xo34DLRezq5LZxfxg1MRKsuixLJOChpnX5qurqIKYaWEMB/Ik6W3QDrgrYlEHp BZVGamohUDrahnnbo9mmvkBEK+zUFIfL6tpDwokwKHuiUyDh8BzTMXluw9nTZufXwGyv hYazkkYDXU3Od7XfYc6TXzLWVIXUNC1ty68Jw/vDQeiuj/sLLBPHvB1IvHNwwdQvy9rn wEuVEf3w/oGu2xBqrW+QaWPmuqySD1jjIhAIyOwEqY90jZxyYLxvmy2YAUyh+7Qu5DoV QGMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792606390; x=1793211190; 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=oZ3DN0XzHS5CgC6CedL2s1HAxBRsMBT/udd8AKrT/v0=; b=ZVOAJkofs21OXXC5BGM4tqRwCHYFUfM7lloFyINDVG6NKDTbH+nAeGwFproqhDWtKA M44TIz/5PxD2LdyeC3fI5zusQRSZFDr4Nf/Q1fk811tvnjJlBmsEu9XWy9iZlSqgH8Vk EpsVPE0Jqi48Mn5A05og4nnoX+o5HRzQ4PDORwnVp5Y67HHevHg2p+I/bdUmf2avQK4s s6NMIynQiZFvDQePTRr6slTmBhAIL12nNjbTENul0DwaOeGZSzfFjdMzTQRzfFR58I7i 6ICdvQQGLaUHTRHEZsManzzv1y/zOYIzgSEA85XwPiTfDNl2B385gW86UOKX8es8H6kj lzPg== X-Gm-Message-State: AFq9FYL6S2DegZp/wyOUv33XiktUlNncyASATIhjgE6JKhstKaXkJh2X tXUmeaublUYgAoOhV5QJqPwvgNh2Js+LgSQVCrnc7ClLRjkoS5kogW9c7f75i5mqEGMEkIyLULE HRHN2sGuFY2TMOigtnnxEzw0xTdovXj11HlCa+a/3VG+UT0dx7kQ9MWC6F36Gks+SQQ== X-Gm-Gg: AYBFou2qJIy94CuTIUPm2+HFtNryXFn4Fdk1GjDXcK3gClTMB2f8TA2ih7WlJ1hPcJl IrJtkx8w67NSD7hQVU3wjgkOyGueYLM+DYdZAZFrak7UtSTqCQV3w5dij/9a1k2drP9fnCLKxn/ tT7MWLsdYVYXrvCf8klg6T9CyuyT4jbpeBrWnyLhzeP8MveTVCX7GOmskvAJqUq5XmgIedwe3Vk ip8xiZiuTD16FWvMNPxSfy1yIORFJCblGtFmOF9sOE6aPEzIMqge30cSM983qdFjWsFb5V8ihz4 u63LVPqB+MOEtRmnmJXf0zk3o8jPhYgfaJtP4/x/rs47UlWIkzYUCNem8W1oOA7n9RBMWInbyIo NgIKtjOcVjCiWKZQpYYoZsDKAGtkE6odqUsozAtx8qYhn3pOVCaJlSsdZ1YU2oPo= X-Received: by 2002:a17:90b:4a06:b0:3a0:b312:1fbe with SMTP id 98e67ed59e1d1-3ad86d1d13amr2454789a91.23.1792606389771; Wed, 21 Oct 2026 11:13:09 -0700 (PDT) X-Received: by 2002:a17:90b:4a06:b0:3a0:b312:1fbe with SMTP id 98e67ed59e1d1-3ad86d1d13amr2454760a91.23.1792606389144; Wed, 21 Oct 2026 11:13:09 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, Pierrick Bouvier Subject: [PATCH v5 21/21] dump: reimplement cpu_get_note_size using get_note_size sysemu op Date: Wed, 21 Oct 2026 11:12:44 -0700 Message-ID: <20261021181244.867840-22-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261021181244.867840-1-pierrick.bouvier@oss.qualcomm.com> References: <20261021181244.867840-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: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfXzHwyP3t2uUsV UDOTX3oJo3II49GnGJefjWF0StGCUOCfoyTUSFCW0vHBbrhNbZBT6LRAoIGksQ1vmNL7GZVdufN CYIRfS6eWlE12RpPcJZF+vH+j+SI+OU= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDIxMDA3MiBTYWx0ZWRfX4y1ZH88qH5UB Xyw/owtbr1mAseUPsLL954IkdgLqWHaxDhwSqjJE8SFsP/vRTe5dqIN2oanaIVzCkSphoLEg33V lY6vhxF3JtWEenhcQ5Ce7Cbu48fW3lgjwS7g/6qxiMSJL2K9y/ap+m/EdRacJBWiirGO63wqBdh e8nXXRewqu6KFB0sA7JdedQBtrrhPxmctwN2YbETya8JhQ8h4RyRPdEFaN+hkSSQwlByCfdxA53 xt++hm0JytN+1oiHPXPeFWYx1axpeP2L44B9GWaxPIYLIqzxLygzGNmaMoyTHimugpvHEIF3TpM wyQdcl/D7qdgtODDm3Wrz2DEq/rTcE1b81jjo+2gAy6kGq19Raa8XEAsSFmSXS6gba04Anmk6Jo SyNm8ydj4HUxmOlwgmxkfgmcj3MBuZYSQwWZjQWVXQtz3P3oJ1Xj52qlxDHercAM1+pW9uy4+jA Lk5QXwy5LYBeQZkyHbw== X-Proofpoint-ORIG-GUID: Thh78otvyHRjbTq0bYo5siUVVluiYIuH X-Proofpoint-GUID: Thh78otvyHRjbTq0bYo5siUVVluiYIuH X-Authority-Analysis: v=2.4 cv=K/+3jCWI c=1 sm=1 tr=0 ts=6ad900b6 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=20KFwNOVAAAA:8 a=EUspDBNiAAAA:8 a=omOdbC7AAAAA:8 a=3kt3mrAgU2v5JAFOdb8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=iS9zxrgQBfv6-_F4QbHw: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-21_05,2026-10-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 clxscore=1015 spamscore=0 bulkscore=0 suspectscore=0 priorityscore=1501 impostorscore=0 malwarescore=0 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610190000 definitions=main-2610210072 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: 1792606599728158500 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 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