From nobody Sat Oct 24 15:41:33 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=1792174495; cv=none; d=zohomail.com; s=zohoarc; b=V4kHCOfqa7IX90n/9ouWZPfXrFcOqZcELKsZFXvvidBjW8D1wEUUohR6z/XJ0wR3/fo3SjCggs8hU49nJ606NQ7rur1zrglpzUWgL30mOS38pN5i26xO1Nd4b0XymHMww+d1Tx5H7LcGVrYQfmuH69Awt1xi/gk3bqlczoil4ng= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174495; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=sHCvKcH4WY/B5Yq6/c5OukZLpLqjtB/TYLvBS58kYc4=; b=H4JCdJoRjuQggJ70RcV6ZxmfuQ4Hwf+pvqup0kgN9rvlPJiByBvF/cofz1dtlQOaQEi2wFJ9ZdkqvMAJnMht3Eix7sSLxcJ/QXZw+7jhxmdGnkc1EGr4Ffka/i8Bt5JgmkpavLjRCpBbbW3B+z43IqfB6pXga5zVoDRkx7q/kDg= 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 1792174495511972.8992624871453; Fri, 16 Oct 2026 11:14:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmRm-00075y-Va; Fri, 16 Oct 2026 14:14:27 -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 1xHmRl-00075F-Kb for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:25 -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 1xHmRj-0000UO-Ga for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:25 -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 69GE5gnm1613410 for ; Fri, 16 Oct 2026 18:14:19 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 4hbk3v1hgb-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:19 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3ab9850456aso377105a91.0 for ; Fri, 16 Oct 2026 11:14:19 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=sHCvKcH4WY/ B5Yq6/c5OukZLpLqjtB/TYLvBS58kYc4=; b=dgUguDs7uXJNc2PcyheFLKwxHws Zv+vY+bupGuppKp7GPhmHoxyRv9oqBgsS80P+OV73CQoGF8owRbA0ow/po0a9gew 5sEZ8/C9KDYXAKiT4LpSLu0yjydXLneh37nYti858C//6JQ7KFA9slP4+CQ77Ht9 gHa5bcv6BwTcBvpagS268/HstNdP7qKgqdN8oJm2+miF+f3SJ6WDINbNLz3EYbYc ukj+WEDd9YKAo19j7FT8PN8d7aUn1TKJV1WAnNUkva2RJKq+7AWYcDzhdZmDc4zw qtVmGIFdP+xnDFPY4qRyQMaBr9bJbNb/zaER3WNqokfDbveyVej/nFnWC8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174459; x=1792779259; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=sHCvKcH4WY/B5Yq6/c5OukZLpLqjtB/TYLvBS58kYc4=; b=WR74StlO2Ns/pmIV5rR16jDdoYb/fWZrG3wDm9zHVVB4scs4arxokYakfIXu3VlzwC p4AkuYE4ecCjm9TUhFtv9e8x5lAwq6xW2J0ahepwAg7smbsK01uShjWjVK3obWPRMKak Uyz5IF4N8cHX1hHhV4rZbt9DW7ZLgqDteHqnDqK+Jvmyum1i1oyhR/auDAJsF9+F+DaS vz3Uaq6pYi29V534v3vIvo0bQedAfLBVmT4sz+IGgAxM8C77XSXcHrp9pYfsFwsXrntV kTxx+fNMS9NgPKDspn53w/tg97PpwweSRhe/jC2r0bRZeZShms/Ws4/zmmqM+UK4ETs1 HrdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174459; x=1792779259; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=sHCvKcH4WY/B5Yq6/c5OukZLpLqjtB/TYLvBS58kYc4=; b=yBu1LOJaiFmciAHIsCEQQvbWSJ1iAAkRyyGi0mh4ovrHcfXXBD7oIbf+say4COHWNC UcRSVaaTJTeNkIL5jJz1HNKeXCNqYVONzlQs80PTv12EAQEy77z4koHFp2zW6JIq7Mmy MKS08AmehWYypLeJsESZxMo1NozkOPFRBPfIQpAvponeujJkZppEv4pJmsjd2+F+oA8r TfzoBvBnfsAhGMgpAAiRfIbzH23wTiral2jNxIsDxKPg/f2ervu32gHRwAg+pzvI/RCx O9kDsWBvKPgUnoulcFjwvxwqSxuG3ZqrUjT/53AHMi5svmw9wgk7ukLt7BY6RKHTGWL2 HxlQ== X-Gm-Message-State: AFq9FYLtxuURAUyXaVc8xDvLeKVlzprgumQ1/oZLJwl8cpz02TQl7g8I lSYNvhxR3OiQiN5CiJQygoOcTt0/t1zotMeqRUR9qSJMqkYxJ7QV9ZFOiMJy1iIFyOswwAP+Jzs /iaU/DsTM+vsDtMR0Yv95/BRNNJbZR7Hn/Zax7YL+3lXzQant4t9aXlKK2VXoH5l6zA== X-Gm-Gg: AYBFou23n9n+Gv/GoLTg/7+SnabKzz2QJ82aZ0bOeUIg73qzk66BPocPzNz2bkkM3i2 1yFJFx7XT8oCMPmzY88VKFi8N1wv2vHRY89SJbc/SyFLJXoCW2OBsmC6IKuvJDIVoCCJusTvL5Q t/GJSZP7o27vHBet54Kei/hFhRx7esDvIL5tmIcvcZIMFrlyG/yffUl46VmaoZZ6CjO0qH09sUv R9cIp116VtTsJx1I1PxLJP1k1O43bzuLTS7wABCGGsnqKWL5UeNafvY/89n4BJkOCgWY0YcHr/x /3SdX0oIPtE9EXVAnl/c/VO5vWY8tFabl3z6KcYQ6CoQu8Bz2x71R6VfxheAcW73pBgBdoNyKtq XQkqP+PPKpS/kmMXpX2jZgq3CeEB4bQnJryOLT4jJP2dyLy/bK4OxYMsotbIdXRM= X-Received: by 2002:a17:90b:3892:b0:3ac:9d83:885e with SMTP id 98e67ed59e1d1-3acef3aa12bmr623274a91.52.1792174458537; Fri, 16 Oct 2026 11:14:18 -0700 (PDT) X-Received: by 2002:a17:90b:3892:b0:3ac:9d83:885e with SMTP id 98e67ed59e1d1-3acef3aa12bmr623250a91.52.1792174458110; Fri, 16 Oct 2026 11:14:18 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 01/23] target-info: add target_heterogeneous Date: Fri, 16 Oct 2026 11:13:48 -0700 Message-ID: <20261016181410.191743-2-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: UhTBkBWjit91bM_OcosHxIVFkmHdGRzy X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX2fr+31cXsaWd EwuFpL3fyTf8kZC02jFIwN4jwVjickDbFK8CteaDfTAEq66D1BavqET6WeVaCgSY1ExR1Qa5eoS /ATwrTMzSyoOnmvKObpsjkmH5FvvRtw= X-Authority-Analysis: v=2.4 cv=BZdNQbt2 c=1 sm=1 tr=0 ts=6ad2697b cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=gWBptB01sUyPCzWYWEIA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX57ubUIAPiUdw gjSagKncF7NTfrZCP4uY8xtFpIWLu9ZXFQ7HN4fCSwEARyUJ4VXF0Ns0UR27lrSfjaWWgdzVAW5 qRCaWf1i7C0HqjVRNA69X8QLgur4WQ1N4aHva/Uaa1biwi14hLMaDQ0mlD50kilqgSwEJJzNTj8 bAb44Ll8MebIeSIVPeZIoq8onbTvRKvnKQOxel2kXTrcrAaAB52/3zRZ8Cy92yEnJkyxQvpWO6U Duz4oYWPsdPcz2zJ5Z8FW7z0oqOlhHV381Skkmi7o8XhkjZXu7p+rcIH9fCyE5IjEIQEs0ROHHZ uCVodO5EWLbMXwTLiajSYKuP0pIDapSuOUG2hKHd4AEAQf0Okkr237GeTU5D89H82+o+bALzZH5 x78LVrlHRIwUvI8hU5nW8ZlHi26dfzkNWCqRDbZwDrD1h69OG3FEEppj7nJPZZ55nYNvyvtEek9 lkSjLCoyYgZeFnpIG5A== X-Proofpoint-ORIG-GUID: UhTBkBWjit91bM_OcosHxIVFkmHdGRzy X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 phishscore=0 malwarescore=0 adultscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174496724158500 Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Pierrick Bouvier Reviewed-by: Anton Johansson Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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 15:41:33 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=1792174590; cv=none; d=zohomail.com; s=zohoarc; b=KFnpTJ4r17gXe+rP6yoplomE1zMbPGkqp8ePDmv+kUAYVH0UKjlTQnBwng3IxU5HlBOb58M5E7hp51rMocHCTsQrM5kgcv27ysf2pZ3HBFQjw1hj2fichmExR9jFOCeqh2/UmVWyniIXoq9wUBNwyl/6ujohyNUEeEwFCNKDIQ0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174590; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=hpEZ15T/wh5aEQUnoeyOZAyCvyIMU4BnlrDNd99Wy78=; b=QoB/w1bcW7ekC+fh60PNmuNfQ4+kNTuCjPkG4osqhS8F2b7XFAIdh40H3GYUyYHDdm7kiWH/ndhkLeXoXBkKybzlwDt9l0JKs39bgwT5abSzu0xjxv8WYHDl8SERRc7PXvXG5QcdKLJiJdv/GPeUCFxa+s2XDSsQT0WLsJR2xAc= 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 1792174590506205.2438285494095; Fri, 16 Oct 2026 11:16:30 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmRo-00076e-7O; Fri, 16 Oct 2026 14:14:28 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRk-00074y-LZ for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:25 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRi-0000Uh-P0 for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:24 -0400 Received: from pps.filterd (m0279872.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69GE61mH1450979 for ; Fri, 16 Oct 2026 18:14:20 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 4hbhur1tee-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:20 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-38f97b3f853so245575a91.3 for ; Fri, 16 Oct 2026 11:14:20 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=hpEZ15T/wh5 aEQUnoeyOZAyCvyIMU4BnlrDNd99Wy78=; b=DWKvaDMMIQwWG3P74NMf8kPibDC /MSqhStQ1rSZj2wk0mcvlYSOGO8bx7UbkqRf/Q6JONtWVXSDW7NmSpRUt4UJGnh0 D33MiCZ6TQhDUnyQixXG7eaRhjt50EGInEShstfLf8BxxX9L83A0X2OyLcIWEkmJ QTahm4ot3yNZZJEdJNMv8rzJ5oGSps3bsVd03RxW/IXUg2odbQ5Ay1/pOG36kr4b yq856tBZKoeCJW4PHlRt6MpQkkTcbf7cJCW5ICAgOTHSl8lC2cIbr4JhTO520Cpj Jy2dw24jZPfQ2141uCo6Ia9SArCFig1s9mi6FQfEbmtpD4aTUrsxGKLJHgQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174459; x=1792779259; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=hpEZ15T/wh5aEQUnoeyOZAyCvyIMU4BnlrDNd99Wy78=; b=KRHiYfkF/SpxwV9GiVmLf0PuVgeAu08UKOMczbY3uiWzV1baZQfGJAtQua0ChZV30u R3I5CfpVyTx1rAwbnr6O4AtXqQ8FigxJoC6WbEsNK72e03Ua0pmvEVfXwdLotD1sjESK 5tTYPxwIfbp7WMQ8RzZ4XRunntcuGM8iunBxgvxVHFyIPqF/pf5SBr/6Tf4kzekLMfZU bnsUo2qAP3w4Uc+bj5HQ8XbsoGIgZXqSYzE+M7xTmWWRhPESKq30aQQJ+BUGNVgAZ5dZ 2sFQtqMbHLFrCM1L+qMuGUvjGqNT5i5ohv7mbwJNJPk2DCeXUXLiWDWOgLd+uxsw7YQ0 aG2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174459; x=1792779259; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=hpEZ15T/wh5aEQUnoeyOZAyCvyIMU4BnlrDNd99Wy78=; b=Fm8tTwt+HkPJpV/SWE7RIEFsBrQHQVnbcQP/uVppeJvcPBdoyoxwIGEM0usmdrDPmb PJWZycgZEq1cM4wG4FVbz/5fiqPM5DzOYsjX/f7+ZDRpoQ7GsgZLuKty5j+XjThgVrrt NKNOlLz2+jwXF7EaqHahs5ADZZLHgx4IK8obo52GLNb9Q56SuZmWLAXYgjEerj5z+HWy sfzJnPJOzIc+vic/FyM3KG8xN03Xg3O46zhzxqWZdn/TWnyskvBKxoi7L1HONSeMWn9M ZPMPs3//8Jg8VBM7s/NZS6m8COqkB83SqGP1feIdHVq1RW8k1HfHKl9GdCZ76eDhlYBA uArQ== X-Gm-Message-State: AFq9FYJkXxRO04b2raKLf+1xiLqWvW0rdGGbSzQ2yug+uBU2yd9+hUj1 bHyphxSy1/qQC/QVnWkt1GLdxyv6YrczLLrVYCrb1oz0X7/ftwdES2TVMucIYNQZ4dAfpgK7xuR 38BJnpXsBq+jh9+xHG+eOHREmDjiaOWkhLca2AALAVtHb3UjsV5jvUNK+OGjmhIhEqw== X-Gm-Gg: AYBFou1Y+Ge4ZkZRd3aavGsjer4w8S8/WEY5Kz4JxV7HEf7TYyV/FadoPmZTpHzqxgN NS/REXuBmexO5Ev5wBN9tZ5OobyJgpw4/DD0S4IGkWbnD9ClgFufvRjTQM42HXgoQa5RK4lf6CH kkMJecqoT0BoCvNhR+xnX1UlDm1OgEyP4zEECELrUFwzkpy3PzIJbHi9BPy1+X9ilqNgxzoCB3q eJ7X+mi0xpvjpFCkF97aq6aeu2cwxj7E1TZegWOKppTjCa/XD6/E+ccnD+uiOQV2t5kzXh6vqa4 c4z/TLr+SBpmdVy0wpfo8JOJEBP47DlBC9cO6TMSTBxb/y5ka/Z55XYKVercJNubJffUSlE4wKS CA8IxsewmkTlcVrXozDeOnDjo6Mk+1BCPxEVkE3NjZkPn1SYPs0NQDtDwQaSKY2c= X-Received: by 2002:a17:90b:58d0:b0:3ac:b3e5:428f with SMTP id 98e67ed59e1d1-3acef0ce59dmr587288a91.53.1792174459542; Fri, 16 Oct 2026 11:14:19 -0700 (PDT) X-Received: by 2002:a17:90b:58d0:b0:3ac:b3e5:428f with SMTP id 98e67ed59e1d1-3acef0ce59dmr587275a91.53.1792174459048; Fri, 16 Oct 2026 11:14:19 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 02/23] dump/dump: do not dump machine if doing heterogeneous emulation Date: Fri, 16 Oct 2026 11:13:49 -0700 Message-ID: <20261016181410.191743-3-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX/Xgb+7R1YJYz VKTysFAFG4i8kB3EUkeaEuEPTal8gJZDvkY1K7eNVVw3UakUtvOb6MA4QpR+5CqsV386m8jtBWc +AIU2gd710PfhF+8swqNzmxZiPjGsb1EXASA6Ffr48sTqvUufLJk8E5gGs0roUy29vM2+1xvVAy BZG2By6W75p8uYHr9Z3xjc+hQMTViclnam7oLaE+9ouKwyfAMegNhbay5fswQTmkrxFBN/0Lrv2 wdT/W60duzhQP8TkwgS/EOGQy0RX0Ab04DmulZMUDkSrrK9B7r5HPT7F97/rmAU0PibngBbtZLI ekyBEF9DQdh5tVEct4g6GaJJJoG0UvsCcwVvzcCI3/PhP+6nGD935++7xeFjG6NsUvHNDJ1XyGx bTg/W2tugvf0e5yLoqOTV3hhrhereRqPVfl/f6zmD7SzdmOfMYrCJCQ9rOhpWZIb/2MBZ07/B5S rW+RxUfq9387jt2Isjg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXxhbKWW/3XUS8 Yra+qElc9gDASo5PMWPnwtmRtSR/gwYpJUk7vfaw3+l66VsA1lsk9bb9C8y69YdaMgV0cODspG3 fEGcXVoHw8ZgyaTx/0U1D/tmgkFk+Kk= X-Authority-Analysis: v=2.4 cv=PqsG/AM3 c=1 sm=1 tr=0 ts=6ad2697c cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=yx91gb_oNiZeI1HMLzn7:22 a=EUspDBNiAAAA:8 a=PZcAJl5xHOMMM7CFr9sA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-ORIG-GUID: bY9YM5uMSP03K4f4XYwdEYuK6N3ZVXZX X-Proofpoint-GUID: bY9YM5uMSP03K4f4XYwdEYuK6N3ZVXZX X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 bulkscore=0 priorityscore=1501 lowpriorityscore=0 impostorscore=0 phishscore=0 clxscore=1015 malwarescore=0 suspectscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174592417158500 Content-Type: text/plain; charset="utf-8" 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. Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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 15:41:33 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=1792174564; cv=none; d=zohomail.com; s=zohoarc; b=ZTzMFjuZKZsJk5nlifSuNGM4Q4ltqgGDB8RRnhwst8/iziNKbydclr5DHdDuZo8guYDke8hOoU6c7y3p5wYRoIConmgxkoLyp/Ae+sz+QaUNggPdRGNodY/xIwLrSInPkf+CQ5UKCOKgC3n21tVSJ9hJi4Sp+i33+2r1xGodAmA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174564; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=iZzoLSVOKrzuJphUl+dMnLlDtXEwIlX+iwOf6YH9gzM=; b=cyC3uWNRoAPdEAZc8EQSlxWNCK83Ui+mKCmqwxgwqG7aWd5BEFIXGSKWLQ6INoeWeRmOpjvyD7UyVde/7+FoWUcLUCR2nfEyRJIihbu+xE1zBzgVfumFDPL/PDZm0JDETgT9IJwv3vIYOb9LjmfyrApufnHKzB/UeiQIOvqWGeE= 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 1792174564127967.6580062061479; Fri, 16 Oct 2026 11:16:04 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmRn-00076G-Am; Fri, 16 Oct 2026 14:14:27 -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 1xHmRk-000750-UK for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:25 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRj-0000Ux-FN for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:24 -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 69GG16xf2551798 for ; Fri, 16 Oct 2026 18:14:22 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 4hbq2wrq1s-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:22 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3ac450b74b0so302922a91.0 for ; Fri, 16 Oct 2026 11:14:22 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=iZzoLSVOKrz uJphUl+dMnLlDtXEwIlX+iwOf6YH9gzM=; b=SunKa+Dv5TaJF18MUcsMuEXlNXe 2+PQOr0THOYdMUg+lW+lpO5dT7lK6Ex4++AcabGRV3u/rviOIQHY4KbjIUQbqUWj IlCN12UktyMSoL5xOEFg/bQRahUHLZWGobrk3mC4feLyigv3/tPDSscHuQWd6tG+ zmvsqBk9WFkRElnmm5N610WRrCuc9D5oIlJc76r3sR5rukAs1MJso9m5K8FyxsNp KAQXpgXOJy5BI1/Cy4US4ME5S6rU1t7AgxJp1LPqoCQtVyAAw7LjwvgQbHvOeX/L 2qv1g23P+rDIKs0mlV5GqNaLJnrBCnXj5wGGoUBynS1vjNKkjQTjPVVQMGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174461; x=1792779261; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=iZzoLSVOKrzuJphUl+dMnLlDtXEwIlX+iwOf6YH9gzM=; b=Ouw8lVuVRTgU2lWtvUauZzedSIQXap6yH7M8VH8sSCPR1Hlsbq/8d0+6oFUcypDH6/ Yj/JfuyC/MYSB3FSdp8I0KYUMuZQe69X/l3fMMI9oSnjy7tSK29FWxRhKoENE4vxiZFo eo7k1TWB5JTFs/nx6ZUwYnIcY63U4p9ertVWl8GF/Tchu32Ywb1j56sk7WixLHStY3X8 uXkVQJi/1SJRlX/e9XvVmwGPP4wsuCBfAk56ot8jUcsebBfT1x+sdBfY/KufhTiqNxts ZQ+DOgCG4WBBsybVWssesTZV2wYOT+EFzn7LyqvENB8pxbIWX9JYEnVXPNybK1uAG9ws tt2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174461; x=1792779261; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=iZzoLSVOKrzuJphUl+dMnLlDtXEwIlX+iwOf6YH9gzM=; b=OZXrRPhvi9ioOpbe/+qnM8Roo6ks82TAHVTQuv2OkUWp3+EQSREemqolFBqycE5Fvx azB9O1s9LpLPRWonJ4ObrecMbZ0mLmzGSZEOp+rRsHRENdUYxSa+wvzQs4swxvekv+iR L5INtrrVU3vo1kgd0PuNMrhZ66atBFGMowdYdlaD3qXQ1qfOjyflKo/PeGzRlJEYdhLD OJ7k0bK3RDVnjDOueCVrOzdbs8OIfHm/1UmxrJDBxjEtua3VxFmwUH4nZRtjydPa4lJi sys0eNOIbbdjuT47nhaDTjQr8wv9p7CqpNU5Lj3/I7QT8QwfNFG43nBWxMnWHPhevoHG yjkA== X-Gm-Message-State: AFq9FYLwuyct2/jFf5je3SbED1yjJQoiM0u2sb9gOe/Uo9t6SdXKdVIr Qkc6ZWU/dcGvALB1U+b5gq2sPTBoS2fqFjpbCiHXF0OqUHaiVhILulFXGb0SK5UMYWSoohuzJVd eUMdAz4n1sUs/I1ZSIsEcfLXnaxQCDDwdt0f44sKf79JZyZVAxmQIgb7uxNUnropi1w== X-Gm-Gg: AYBFou23pctCT1Y+NWUqtzWGyqZCyMMxgu4rGjcajtxTkRCmCmgKDAl7xzER6CtGy+K vrhW3mLPmswwX+yQTe6/WU4cnD8kuymOrKXLDUKJvsn4rIxDmyLMANkhjCTGdYAVbeZxByADL16 B02YTWyVOzWoncj2fLEWCSxqFAfI8TMA9DpCaErR3UVFHweSizu+9s/70wAN+jM/eRzT+7/tOzY hk5fQ9sOmnAMk+G2beTUcVgF4FnZavEml9wVRuDfJNYWZfifwWu7tIEXIpuVuyeO+z3jmUoAZwQ e5sqqayECF6zib9hvuL5EE+oYrbUfpmyQxPUGhSWUSgUZahbJTSIs4keVKsrjoEPVHkyj/2P3W3 WzXVuM/G6TUDJ97zp0R21zCgCsEY3yYmfyOS/QXUgBpQKqmpePY0Ct7fR98u5Z1s= X-Received: by 2002:a17:90b:28c5:b0:3a8:c0cd:57f9 with SMTP id 98e67ed59e1d1-3acef10d02dmr560221a91.25.1792174461275; Fri, 16 Oct 2026 11:14:21 -0700 (PDT) X-Received: by 2002:a17:90b:28c5:b0:3a8:c0cd:57f9 with SMTP id 98e67ed59e1d1-3acef10d02dmr560193a91.25.1792174460607; Fri, 16 Oct 2026 11:14:20 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 03/23] include/qemu/typedefs: add ArchDumpInfo Date: Fri, 16 Oct 2026 11:13:50 -0700 Message-ID: <20261016181410.191743-4-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=WIHqzXsR c=1 sm=1 tr=0 ts=6ad2697e cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=GJhCjEP8skSFdoIm4HwA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-GUID: kCFTwP4nUOCYsNT-qwSxA-4s3FiA4a0F X-Proofpoint-ORIG-GUID: kCFTwP4nUOCYsNT-qwSxA-4s3FiA4a0F X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX5KuMwMVAivaO KxlbJblalhRw8CBbA5fPhmTu71keiT78BzY0QpROZdcPKZdaIa/t6Xyuc9DmolFVpCNM3SApp2Y JtXzIV5dIrNGqNPkfi4y98EiG2L92mqkYH36ujgB6pwIHw6H90i0U/9cuSuTAFje5Xcz8rgqO5/ KxgGXIMdEM2CVH/FlSruoaymy7T9wmrA9EqVU9FtK2mEV9tmwm3UJhj4DxzvOApLs8uRL81UQyH me1vMzuE+YdmA2zMR/EuUBwXbU+UiGN7nJSV/ApvmF6iwHQrSArC7sa3Ma6w/jO9WszWoI7KiYp jOdSfuEbwo12aNx0OhL1f9mORYZLm9H/Cm08AplwesKeOvSLoi1eJEVw0ikcIZyFas4eCKPngVR TGpPFO7njW93YmLW+YKmA8U+SidsxvqwdRGDPnsGPi6h0uqaKJuJ/xsrdN+Qs1vx+U1xk8QyJdI Sc+j9rb5jJXV6vLu2qg== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX+cxxe8ftjYlx Ad0cNOBAuIUWFn07MpiO/y+7Zw9trLDtTw6m0KOqPcyc1XsJIrisq90M7LCBUxyoacMX5c5Q75m UUvkSE4SDfHFHnQ3z64ni/VK7OKNLUI= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 phishscore=0 impostorscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174565895158500 Content-Type: text/plain; charset="utf-8" This allows to use a forward declaration instead of including system/dump-arch.h. Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- include/qemu/typedefs.h | 1 + 1 file changed, 1 insertion(+) 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; --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174635; cv=none; d=zohomail.com; s=zohoarc; b=CoAekAvM5IFIRx4geIqS53OFQcXlPSgdWwiDkksjZuMo77QijAkuT06SiDZUKGyilVmUGDXPl1840Re7aejGDlHkD/qV8BdrBl+d7ZqaoyDVlkalzPn4l/GMk0teUTp2NNwZiW+Yz7mlKKeqjn8Q0LY54Vs8RN3fowGFp9rSjZA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174635; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=155pBYhgx+WwsUegV+Bz5EVgyz9dIb4XZ8v4z+i7FV4=; b=fsobCI/oxwCqzrIf9R4CbqGJS0LQ9JYuec3XD89ZsSIKKHUf7xDGBq4FyGOwsAmGeW+CCxGN0p/6/tu81j/dpYIE8Vurufjjf0OmO+GPs1sRnoFyNMmIQ6G39JN4LNb1quAYe8IRnMG+Nc4lnp3QVi5JnJ7aSthTrr+i56wfQUs= 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 1792174635876168.80239302476127; Fri, 16 Oct 2026 11:17:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmRq-00077Y-Fk; Fri, 16 Oct 2026 14:14:30 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRm-00075u-I6 for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:26 -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 1xHmRl-0000V3-26 for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:26 -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 69GI5NBX4097587 for ; Fri, 16 Oct 2026 18:14:23 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 4hbrw7013x-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:23 +0000 (GMT) Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-3a47617a0b3so272228a91.2 for ; Fri, 16 Oct 2026 11:14:23 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=155pBYhgx+W wsUegV+Bz5EVgyz9dIb4XZ8v4z+i7FV4=; b=E6zblaK/350D89/Tr7Gy8l+brjC +kAu5NAHT542v0iRlx5ZKNORhKDN+HoZXOAXZJYrNbYOlBFnvZYb7AZDpfe5Wroi N1g3xALQOT77HiCW1X53YcedH2NuCLDkiSPobYmVlV+DB89pDfmQt0RTRptwUt5q +DFuFWcPL4JQWP5lW7qDFwQaUPFLsGwbNTmBoSLI7PtDvKtbxYSYrYz0uB4LOSrN 4myoqwvpogCrrSqQmbl1UtMIyT+GK+H6PposFsTsyNq1JrHe49jFBSQpUBY9JCm0 +IMNHDm0IPLVwdh06sXhTds+hgXdkCQ2c7bofqJKXhV/2c6EDEfkZlFgAdw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174462; x=1792779262; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=155pBYhgx+WwsUegV+Bz5EVgyz9dIb4XZ8v4z+i7FV4=; b=Yn6Wz44UtWqK2fMGpkJCE95K1bJpqFK42oOQuXRvjvjZgLqD2UN1VMt36s2WxmNzII K4EC3AseY3/94JamInNR52VIitiBYmJAyyVyRqdSomTWAeUvgi7pK7Rp8k/TBYVqXElZ 9+Gz+CquKYwRe7AeDQHls90pTlQ+Fl0+v6Cm+TyGvbFs4GgW2Mci+AAt75PFauvMXLBP /yeDWbWnKO8e+l3B923iyMP3XgFO0pwEu//MWjDP7air37H7ikbDnvDyQI0wyDhcqdDu 2+yt79JI08GdIvvd1x/TOnvqTGQojpO55hGhUpLxVulT548Jok5HIKrrqF9qyoySr+kj b32A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174462; x=1792779262; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=155pBYhgx+WwsUegV+Bz5EVgyz9dIb4XZ8v4z+i7FV4=; b=CNvGQR7CTh+rDAPhmoHs2hgrwFJeVDV6Fz6V5H4jC7os6WTdNqcFIejEMMUiIXxvDj xVP/sNrtyy9FpIOdc82zCPrwhkOYD1bF5YUr4kBhPjy7JbZDz6X9ZyIobDcjaxd+soK1 cHGI4xkfz5vGPIWind5kLyQMzYCQt0z8ATbR9qNnmJygGxaH1CEaY85bowELWWnjTlGd wc76dcTrV1NKPITRu26JG1XmZm+7so9rR8AHIkUllP+KL+rXMkRcqNzna8mg2fXlHhlg N/GmCNjaHHeofdvJeTiOkt8rCiMjADCxhRQELhzMkTiIojQwjC2iJfyFUrpiWqwQzQqJ PFfw== X-Gm-Message-State: AFq9FYJ+YN3wxJnoAbpcQex1WOhoYYLQKOl8+ltPsydTWwQ0ppfGsCiO fkncuRM6cqBEjEvBxHokJUmeVFzpvOCxJSktLvPwtatzbHUfHLqhY7nrA8zs5lkeD1XWWZjqSB4 JP8u00YEXvFIMTkCkHGGgR+gwoMrcMtYbJ+IjbEgp/X7/AtcR3jKH+DBjebd8LlCbTg== X-Gm-Gg: AYBFou1/DqN1So4QMfnZX6pMlEVjVpz5/icqPC0TohKL5i072JNcri0xsOnABSzt1bs AbqAwu3HOiTU0HkDUn8ZENWp6uaKPsnFVlHfF1opojsnY5UiDUlNwiQrjWctvvQ5tGH9+XtmX3j nxcvUdPixAnfGL3py80EyJCSpiny/cLY9K+yl32pLAgC+lXtqhxOfHJNgWtuUbmcUn+612rAyi9 y9hcBbz4ZDevQ2AP+QPhmE+rAS3xI4A9Pw136zXvH2U0/4vVhy6HHrLca+xgbWPeOzLx4XFPzJH UcIAUxDVhtNMjxof9vQmII/o/OG06chAN2LLlsK9ZAz4TsgGcTC9c49Z5Pz/Nt4CZiR234bIYwI gxyM5T+Pe8HTZEQNAVo8MEXZJvCgzOW5uJOv37Ssil6RXHPKz//gb0hT1pzwTaps= X-Received: by 2002:a17:90b:39ad:b0:3ac:a7ee:678c with SMTP id 98e67ed59e1d1-3acee2796fdmr486296a91.2.1792174462453; Fri, 16 Oct 2026 11:14:22 -0700 (PDT) X-Received: by 2002:a17:90b:39ad:b0:3ac:a7ee:678c with SMTP id 98e67ed59e1d1-3acee2796fdmr486282a91.2.1792174461953; Fri, 16 Oct 2026 11:14:21 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 04/23] include/qemu/typedefs: add GuestPhysBlockList Date: Fri, 16 Oct 2026 11:13:51 -0700 Message-ID: <20261016181410.191743-5-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX2e3KaBw6zko2 XxOxfz1TDovbzPz8fMfzAvNPV35E3DPJrrh3Nt3jYdV2P9Ckc7m6h1jcmK5B+GTUGLbLq5yVgGC OX4KL36o4CThkGQL50nAcaw8kAzKwRw= X-Proofpoint-ORIG-GUID: JHPKMjR1JWT93mrCPny7vvJr2eFVA6gk X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX1A2ruMDpgV3D ZYDTtCVyIZfmD55w7gIyhn47UhMfUQ7CM6hfPPxHkR5buk/oxNcItwN/F6jacpgt6OyLMiQBCkx nso5A/WgjLEu+SQQA0mpXzdv0aLtJUdx/84o+bDCISCppRDRCDavTgEzCn2hEMpjzn3oiXj+mfw 6YGOpCFszo4kOVmiLS5WzjoQj/ebs9UI53W9O7ExLim1fg3H2wL6eR1aBXAnybI1/Qb5nMNGnv5 BrSd3eYRYJ8csB3UnUJPckTC2Y6ObOgYYvsgupt3pYeZddCYZACPaZW99x1snJq4GKaf/e71rXv 2kOOdHrmMte6bb+MJBrrEm12Nn1ydC2AofcGgIh/zZAOMH4MidFX8GIcBRc9wwcET7TvcDNqEuh TJ9aC8pQgz/Ga7JSN267svX0wz+AUi/BJaTX0QkmMd5faUomlNE4hLVVg/v4OI97JHeGP2pY7NN qk2Ak2ve4hV9i27AE9Q== X-Proofpoint-GUID: JHPKMjR1JWT93mrCPny7vvJr2eFVA6gk X-Authority-Analysis: v=2.4 cv=XKKl2ghE c=1 sm=1 tr=0 ts=6ad2697f cx=c_pps a=vVfyC5vLCtgYJKYeQD43oA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=LFRp8AMknflIiveWUBsA:9 a=rl5im9kqc5Lf4LNbBjHf:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174637224158500 Content-Type: text/plain; charset="utf-8" This allows to use a forward declaration instead of including system/memory_mapping.h. Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- include/qemu/typedefs.h | 1 + 1 file changed, 1 insertion(+) 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; --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174773; cv=none; d=zohomail.com; s=zohoarc; b=fcdDbZLjUbJyaKkWgEUipnVA/yaGCdR8UaQjMilN7EyWSSZ5vgk4Q97ajXOkKM+mNgTTC6iDgF8jae4kCJ6ApdLa54pLoI92lhBfSq/6QqUrXBpHhQvKL+HAA2bTxpwRkjPflfNEHRJjegSHEt1EAjbeXZ7HuL/EjIi6bpZmjjo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174773; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=3rpLie2MjukY1Tpl/r904roTdNOCC2W62sgxcxf2fd4=; b=Orpiou5QYjxIBYyFfRUm1co2zawyedMaUx1gnoa5kH9DwaV3ocM39xfhNWv6K54DwrgN666iEp9o/SwBUXo1qmFlowJjnbNsM63wESyheEf+JeqZUjDxfarAifbL4UsWbngcmswxuswVqEQecI4PU3y7zUgkoIquXnnFDmWszzs= 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 1792174773002585.0965721135426; Fri, 16 Oct 2026 11:19:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmRs-00077h-9T; Fri, 16 Oct 2026 14:14:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRo-00076h-QX for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:28 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRn-0000Vt-Em for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:28 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69GG3hYQ3260540 for ; Fri, 16 Oct 2026 18:14:26 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 4hbq450gcs-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:26 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3a46f0f158dso312161a91.1 for ; Fri, 16 Oct 2026 11:14:26 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=3rpLie2Mjuk Y1Tpl/r904roTdNOCC2W62sgxcxf2fd4=; b=M4oI6EFiczT1y1Jo46aty3Q0WXR 130oLKr9IFjTDvraO02Pjku0yAP6CRFQMaqYNTm2yviqNku19G/nAREw3zU/Du9c n+jKGDbbIu7OeeuC4mMgmp0I1CXY+ilOaeExOkF0adM1P1pvtjbYTFXU+8DGKxIo pJ8g6Hw7tisRXTMh31Yxps5ekxQ1m6ost8NjAs9ZuoUx+rBm+l+uIFtrMfNNu0ja Eqloui3QmKNdXKNhlTnnblmZpOeC4bD0dnHqtajYFWR6i4XxIa6L5ZkL3NQ3xh9T UX2Y1Fl6LhU6m79IxQ1ysk9H6QKdq7ATGM2zZFdnBsL0nf6jEalkQ9nqwYQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174465; x=1792779265; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=3rpLie2MjukY1Tpl/r904roTdNOCC2W62sgxcxf2fd4=; b=HdGp/R3Lji9IHfh7IqAn5TwR8uDUAYnpFccqiHWhM6rSo9FJpSBvK2aWKMRmLRY7vF 8cANz5qv1w+GgskTqVBg+RMb0/BJoKsR+ArzUktrOiwcDJNYTAyp5Ujeq8LybhY4ZXYX q59nbRO5G7h9y0fSRcJLVGeXEQ3kXjnwyIMvGitDYDlvdeQWN4KWHiOEoI+eSixLSCFO id+yc90bwDl3Znod+Hqf3Q8PxIkpCzBaqCMMhKMwcqXMG37OkJGytxS18naJDe0FIuuu KUskzlR1Yo8NtkzVa3zUi0zWbb6/cy/BOxobQUxrNdGuEJFWdFcfrM6qquHoikrWITOs fv0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174465; x=1792779265; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=3rpLie2MjukY1Tpl/r904roTdNOCC2W62sgxcxf2fd4=; b=vknSyomQMiAlX+fdmWDV8Wyw4WWmBN3ArOYhvfxSLsIChdcmJTAldIxvBM6bnihjIw FCQqQo+P8Wr1IH9iUAGKaWnhaFi9+NnacxzzqD0Po5snOb0zKdRb86Zp3YCpP3DRl0HD vIz69cr/A+D6LuvtGE9j+7PsPxmcAZWiGoe8VgeRzR3jPfsh3kUfJkKz7gqjeKrDv8jQ Ry7bkILZ4hZdf2kCQvnMa1OF/kJpXsx8Jc4jA8lQH/0aTJwoBvnnj9Who6M+zTju9gGi gQ5eFtrLt1UmyYGM2sh56R3KB/scWvPfb7l8vWCu2Orw8WDbnx/h+wS+7gnU3GCLrNlm 0hvA== X-Gm-Message-State: AFq9FYKR/gFPc9Cgy59+Njeb3IsHMxm85K2Q2dCIfmLhYlJU48s6uJ6Y nCEkKlmkgAKsylBhvXFHCTGnS6IMEvNetvFOwZ+QElw5C9Jf43lkl9VEkz1pyio8oaoBwK9h/BE f2J6a6DWiOCh5rfl7L3O7x0kG61MaNcZCuTm8X1g6Sw7ol+wk9SYbXE9NvB7WufzYzQ== X-Gm-Gg: AYBFou0LkV+qcM0K2nosVkUFxLejhYTpW6ayVUmVm1k4wC7VjU0qwGpZO3GRXOYh/3h LYq8NBQiNtDgXmAYIIgDlFIYdZ65gO5YsuX6Ibil8MRlHvAQbYoGHQfSeOxnbUkPnLxmAuv7sdZ d2IoMN5NANm0JJ8kD7QNWjnhhAk3MJe9NNxBIfLojHyY+35GkMp99E4Bk+F3TijqwasuQy8LhEJ MtNg0YccaC2kgQaDmR9VdUBT2QkEsTUIgeQrQ+Lc0AbUR/8wyzqYJ6JSMNVCjCMqC0SDpRUdBWD TjusO2b0GkhlC+h3MHm9p1TaUxUH+GPMgz2cXdZr5re+QYzS4dmjzObfLLhkrBLjL2sSY7109zu OpBBM2OK8H8pEmcXpBC9yyPqBVhfHaF5d/SGYc2TVxEhoSHPzSWzZaGait2R86FU= X-Received: by 2002:a17:90b:5643:b0:3ac:928a:68ce with SMTP id 98e67ed59e1d1-3acef51e0d9mr332661a91.33.1792174465196; Fri, 16 Oct 2026 11:14:25 -0700 (PDT) X-Received: by 2002:a17:90b:5643:b0:3ac:928a:68ce with SMTP id 98e67ed59e1d1-3acef51e0d9mr332639a91.33.1792174464146; Fri, 16 Oct 2026 11:14:24 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 05/23] hw/core/sysemu-cpu-ops: add get_dump_info Date: Fri, 16 Oct 2026 11:13:52 -0700 Message-ID: <20261016181410.191743-6-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: E1jKAQ2cJP9usjieLAc98TEhk70ofRpI X-Proofpoint-GUID: E1jKAQ2cJP9usjieLAc98TEhk70ofRpI X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX32UwITa6q9q/ r+niSGZTEqV1kIAVveG8FUU362zkfkpZjEXAD2jgAHWHY0+KP+QCZGq67vdsZhK3GhZVIE1m/iP 0b895WVWYwsqzM48KtzaKlJKPF3wlnKHymPq9IpI33mj80RqVgaSMKtqdK+KwU4pSqcH5gliKBb XI4ObQnpxhH3PZH9lg5L/DGUqj19zsJ3M0dEjPv5T2PIdTDkDRBRBRU+pMmwPxH9CsMjx2mo+L7 6Seb+u74adum0KfsZP0HRTmsDu2F3ccu8MspZ7nxon5+GbU4LsIku6rJwmtM1MoJp25P5gOB7xS dGBLqq9AyFbm9OHWwcu1580jWPQisx/kKBCEuZBh3h5spJOMgqk2FqMa8kfTQycMxMo5zHzWVHL ROvuPfvBHIHllP+zrzVLHDhdkTzdWf6+yJRxEdiI/+Ecpxj/0VQwYIw77VCb7NhNuaR3Q9Qfkfc Ocj2C6JhsxJlUyXAwIQ== X-Authority-Analysis: v=2.4 cv=e4GT2qp/ c=1 sm=1 tr=0 ts=6ad26982 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=MPCGK63B0krzei8L5x4A:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX2rmymp1xUX5O lp4XHx4l1bESYXjUNdUjxKZzYPi+84r9fqe3JEvIYvN7lx3IzEtTBioUoXW6R8Et8FIMfd0vcwI NxddfDDIL5HQI1RlDkZOtglhlUyNvVw= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174773812158500 Content-Type: text/plain; charset="utf-8" This allows a specific cpu to declare its implementation of get_dump_info, needed by dump. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- include/hw/core/sysemu-cpu-ops.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/hw/core/sysemu-cpu-ops.h b/include/hw/core/sysemu-cpu-= ops.h index d125540262d..2c7d0b94767 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -94,6 +94,12 @@ typedef struct SysemuCPUOps { */ int (*write_elf64_qemunote)(WriteCoreDumpFunction f, CPUState *cpu, DumpState *s); + /** + * @get_dump_info: fills @info with the endianness, class and architec= ture. + * Returns 0 on success, or -1 if the guest memory can't be dumped. + */ + int (*get_dump_info)(const CPUState *cpu, ArchDumpInfo *info, + const 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 15:41:33 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=1792174566; cv=none; d=zohomail.com; s=zohoarc; b=QEcHxQpsijscnWV9FkMZhEigPMVAG4eA3WDEytiua26bIe0tAx9ztER3V6R5imc97FupPbfMmnODMOKQbBMFZz/kC41BJxDr/zDRvgGiWi2b2DwhrwbGTB3j4cqwfWEggRd8QKlgnt0IPGlIwEEXH2TbZR+94bAUDnGrDkLfF7U= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174566; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=9Gu+vUK+DQ475LtaWxe7yp+jVo0CZzh7U9OZmyXdnmk=; b=l1ULkCWmw1nfSWtekvnO6YuGWK2lT1ea/Xr97oicDfciNyzSNej28ysgpNQr4Ep/C355C6b8roZt8lDbbnQ37mGdDW8pilfymPo0afFCaeR7WeYkHgOOaS70aSrTWWI6RospUeEhRNdaJpB+xNM1+EgAQJaTLmpJu5Ir+gtfybM= 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 1792174566117283.9742664106501; Fri, 16 Oct 2026 11:16:06 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmRv-00078H-I1; Fri, 16 Oct 2026 14:14:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRp-000775-Lk for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:29 -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 1xHmRo-0000Vy-09 for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:29 -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 69GE5ibt1910951 for ; Fri, 16 Oct 2026 18:14:26 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 4hbjmf9mwq-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:26 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-39deda201bcso544008a91.2 for ; Fri, 16 Oct 2026 11:14:26 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=9Gu+vUK+DQ4 75LtaWxe7yp+jVo0CZzh7U9OZmyXdnmk=; b=endoc6e+ZzmVtqGCi0MXDGUkxEn l7VRXckqD2NmoxdV8PHvDjzR9SKhfQZLRrrMd176Cx4SE5JZsmp6Gi03DhfJeXsD qXSrQP7SLfLkbslwOVm922gdHsygoO2xwSiXzlls5wUtG3G5wdRxGPnpQn0vK29/ /fuJ8LbHiHr7K4GQ2yPpj1WoKOzvgXRRz93mYCVUfgcZatmw2yJxcqCVBg8Pvd+A kqgtz24VvV0nyMy8uM50M37oy1SH+oh2d+sfBICWaodoX1UxHGDopgDfRVz/gJZr 0ebi/X3bM4AFkfvHyETdpcMuEhXE6toL6fBXqagSW7GRts5YA62Qv+Fhp/Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174466; x=1792779266; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9Gu+vUK+DQ475LtaWxe7yp+jVo0CZzh7U9OZmyXdnmk=; b=KmMjjNQIUx65iPG6fdqPdYI3EuD8gP8w6N0NBF9ujsarNwiHcvU5xLqiDp/cZGrnnB ppsRwJMbUltJRvUFbH7OIofVRpAK0Z6b34RelFBPA3plnb3ZEZIH+GGH4HSwIyCEdGme QLDuxLMjbNh/0yyxbAlPOatTDa4mumjm4E8dpcwKuyT49XMZY4TRIiRxDqcBMjLN8okx p4KA2P8cRJFDR8eEWDWJbjEnN6p5PH9B8C0vFdnGLWY//WLWfAtszDrpf6e7PrN8xSty dVNo6ythLk701NcgG/p8J76tMlpQ9bAa0ZkEkWJc1r3Y9FiJGbQFeoaeD9wfGmbNTdiH dgJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174466; x=1792779266; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=9Gu+vUK+DQ475LtaWxe7yp+jVo0CZzh7U9OZmyXdnmk=; b=dBrehqQ+Cq64qsZPtjSUkUL90e3CmYzkfaBk+SdFtc2/Bl/Bl1YUn95Zz31A3k37Yi uO7kjccHfHC7bYDYfL69urjqCc/N8VYm2Sdv6Omym+EIb4EuKK8yfiG9bbh88fvSeTtg ONTcUQJ4rA0U5k4WVHvV2kAewjEbd5NdB5xHhndde/w1w3GUExNhMY2bDMaCJ/HaTT45 3jwCr4QUA3bUosvEYAqYcgrjoHq1IimmcEu/JkqTRagioZx8jMqjv2KKuFL5ZFJjRH/U rKo/LpZz1znCMl0YpDaROxG0OUZffysFGHtJc/r5TbYnZF0AwDVhdV3TfXLSMAY2Wsx9 oKCg== X-Gm-Message-State: AFq9FYI3MboodCidA4yHKJBbvF9qzLHGKvXfmQs4CTyFBrSFH3+65Hy8 rmncpJXXpOfDZhpbvX3LRXP41U0Zy6zc/dvk1bnDgIzDHr8+yW3DBNcT39k3/epxqeFi32rviii rE9Tel1YimXhiXjIxNEKmdeqyag4Eh8+qdrmeAvzsOSq6xfFNROzkLUC0BsG54v/3QA== X-Gm-Gg: AYBFou13YozMO22WrNA3dnOeoODgNJHMheeboJ+/sRaWGQ7X4JNrEppQYk9YzuJN9n/ JCt8k0d3vQsIyNx7tcSaIJbUpjxMXCBZJyMhT9x8u1bGzLvhcMlyHZDWx6TzNYt7k5qXd+C21WU htDqsBMCTEEiNgq7r/AlZVIsICGymiRSwOvmnHGAI8jRilSAIC1+9AiOv/Xw28Kp5fmSlGTVMn3 0a9XBpnc7qLZ6fnG5tzmyqzYf3W3hFvM17ox8bbcfJV5mC8b2HPNDbSaNx3BPtGG//rL8R7Zf+0 VGKEXLtSC8LBIBr3a3QdcPsXXMp0ZiG+z9nl+2/o1OOqIyGf/go+ZSLRqSxo3nHNztP7+jtvUxF D8MKqHm63mgV6KM2XIjsoF+1WkMufujaWQodiV3GtwYJOserWwbNPDeOhqDYSxq0= X-Received: by 2002:a17:90b:3c04:b0:3ac:acf5:6daf with SMTP id 98e67ed59e1d1-3acef667156mr531362a91.66.1792174465819; Fri, 16 Oct 2026 11:14:25 -0700 (PDT) X-Received: by 2002:a17:90b:3c04:b0:3ac:acf5:6daf with SMTP id 98e67ed59e1d1-3acef667156mr531351a91.66.1792174465393; Fri, 16 Oct 2026 11:14:25 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 06/23] target/arm: implement get_dump_info sysemu op Date: Fri, 16 Oct 2026 11:13:53 -0700 Message-ID: <20261016181410.191743-7-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: aMKlq5bjk3tLrsG43Sk7O84FCixeNZlg X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXyYsoeJkwBMdq 67IR8Po7dZnslTo/Fd66C2VA2gn6jc5GiN5YAzq9BJQKqECr5xgANBJfIxV29SuwiXGOocRKdXX /4n/JouL71G+jCoHNa5pmqeBuTphgTI= X-Authority-Analysis: v=2.4 cv=SrAFe/O0 c=1 sm=1 tr=0 ts=6ad26982 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=iHWeOob8v6k5DsbZtYsA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-ORIG-GUID: aMKlq5bjk3tLrsG43Sk7O84FCixeNZlg X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX4q5FveVSxEHp 1cz65hhrqQzNmdIWyg1WsyA/sv+CHBU9X952K+8ieff/Ll6F1eg0yqiEuyGc4uitTq31uXenGNh 8DzhbFWF2LcQmzNERLEKJkZRoU7J8aLk6fPKsZVjFAlYwGgUM3U0D+IyIkPUn6/QT7LH0tquDU+ XsdLRS0uwQ+ImI18z1hG9fmXPpdwtCa7va5u5gtE2Pryqlurh6aPssSZD6U4T4Nm+HdEhl+r+cU nmGTqs/imSjlBAOFGAo24xH4rK7xunK0t0vLv56CnJsHtpgF8TtNfioyzMALCtrY0l9n/2I7hPk biVsHelQGmSyvDH7+5uoedlJZUWj8hWLQpkIHUgapMsHYzYzfsTM0q/JDO4vdCRe3IWYUFU+b5d IMauShhSagkoPTz+QqvRmmAlZ4TN0L7s07i5ZzSF/fk1Vh5ZNMfJGRMEucpAYudwR2K9v+lmqyL XBkYDDvTAuczN/x+HFQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174568001158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/arm/arch_dump.c | 23 +++++++++++++---------- target/arm/cpu.c | 1 + target/arm/internals.h | 2 ++ 3 files changed, 16 insertions(+), 10 deletions(-) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 1dd79849c13..98eecf3d26d 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -385,21 +385,14 @@ int arm_cpu_write_elf32_note(WriteCoreDumpFunction f,= CPUState *cs, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, +int arm_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks) { - ARMCPU *cpu; - CPUARMState *env; + const ARMCPU *cpu =3D ARM_CPU(cs); + const CPUARMState *env =3D &cpu->env; GuestPhysBlock *block; hwaddr lowest_addr =3D ULLONG_MAX; =20 - if (first_cpu =3D=3D NULL) { - return -1; - } - - cpu =3D ARM_CPU(first_cpu); - env =3D &cpu->env; - /* Take a best guess at the phys_base. If we get it wrong then crash * will need '--machdep phys_offset=3D' added to its comm= and * line, which isn't any worse than assuming we can use zero, but being @@ -439,6 +432,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + return arm_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { ARMCPU *cpu =3D ARM_CPU(first_cpu); diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 81ec1ce21c6..7bf0c5e74f8 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2569,6 +2569,7 @@ static const struct SysemuCPUOps arm_sysemu_ops =3D { .asidx_from_attrs =3D arm_asidx_from_attrs, .write_elf32_note =3D arm_cpu_write_elf32_note, .write_elf64_note =3D arm_cpu_write_elf64_note, + .get_dump_info =3D arm_get_dump_info, .internal_is_big_endian =3D arm_cpu_internal_is_big_endian, .legacy_vmsd =3D &vmstate_arm_cpu, }; diff --git a/target/arm/internals.h b/target/arm/internals.h index e849e357cfe..61b0bbf1ba8 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; +int 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 15:41:33 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=1792174495; cv=none; d=zohomail.com; s=zohoarc; b=QarCM6pwlaKLZSUMmd978fi0DDdBJdNjfHwQwhPJFb8v8yyrdqJBi8fm7+AIQifNq/SjWA3au1PwM0ADvC/me6suJ9Yy/kt/TJMrHE1DBNe0DJ+h/6Q9mGCNSTS6GLnorawf2WvbHfosMg9/bMjNEGOsyNddHAQmh+LuZs0UV4w= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174495; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=asltVyfD8H13fbxywHDZmQ6QJCi99JfXMRZRCX08EHU=; b=JsFLsUnGWP+LiXWQx6Pnn9J8bkzj4q7z9KRIbh7UuX9OEhgTgNQrpx7iw5TiO93SPdOq+pLMHi8n8HsaRKoDHWcIUupilJOSwMUeQ3x43sksvBYyltnn7OVGZEdPZUlX6JfnHWFIRVhkE2YtkMWpGPehPYfR/xZNCclFlifIcQE= 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 1792174495807818.1657806342193; Fri, 16 Oct 2026 11:14:55 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmRs-000780-GQ; Fri, 16 Oct 2026 14:14:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRq-00077W-Dd for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:30 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRo-0000WB-Rg for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:30 -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 69GE5lSw2153750 for ; Fri, 16 Oct 2026 18:14:28 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 4hbhumssue-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:27 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ac16335199so209009a91.1 for ; Fri, 16 Oct 2026 11:14:27 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=asltVyfD8H1 3fbxywHDZmQ6QJCi99JfXMRZRCX08EHU=; b=QcxaOaULlSI66HXO3paZwcVra5l GyvFg0iYt08JeQOs+wyDMQPiwoSs4YZfO1wQnNzt7Zi8a7OunqjAh47Y4eIXiraw tbnG17Qxzvv5V/303z/6r4w6Pwz11ebitbygUKbdjlgYuIUzRLtTFyAsku2lRZp+ w4HkbXIRK4QSoi8AHL5cJkGAbQ3dWqbnWc8LdJaVv/UKL8EPXar7nxCAk6d3dgu+ qav4/eqA8H8FAludrjwZqqQSS/PAGfjPdPaMUaIIDyp0Q4C0R4cr7pYhveKTgykB Xh1wcUpdrgdMTUcKJqoQL990WzheFunIpKBDSUjyhk8axf07UoYjODwD9mA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174467; x=1792779267; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=asltVyfD8H13fbxywHDZmQ6QJCi99JfXMRZRCX08EHU=; b=gDn0/sXWJRwpSVFajKQwc2lYAMkrZ6nROo59SUiL2QT/1MMXGEof8tuPUAAr/6UXT4 d9Pb0GAaFa9B0kobSa4b8lJbMWczfD6mQjOxRMbFU4udkDciL7LKNh3W7XnYxclzYhP8 AaWIam8rSsP4EF0ZldfMYluw9QJGbKapIuZsFQUS7xt/tkZHXSrOmSF9XADD7RF6NNwk QqoRWrkI9PjyEZkr4ggkjkXCWzGDyQLoCa4cJIGvrtQNg3/zOWikPEWLhxj5L1Y3rQew wg1s0FGnSteP3xirsq9kCODdtya5vz8zfG3WhK9hJDPdT41a4YSh0FBIJTSDnv0/1dvb 2z9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174467; x=1792779267; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=asltVyfD8H13fbxywHDZmQ6QJCi99JfXMRZRCX08EHU=; b=1HPbCge/xdJnRVtrJnEhCsicdWcHE62R2eXLg3eyZJ8SnmCMwjSNvygoJZv3wMDbMH xjhXmHPee4hC6hH48mwfh1icuThILItGWXGBQowky/Unyv9mZ7aTJB3ZhFYArsTGP9Bc I+YyoaKArP8SuNbPZOsRs0AtFdWKhyNOZX8IReEHv/kmvS2WEWMo6BvWwtHADv0dhmJx A8wS9wg5bznnv7ScCND+TuDssGVmMVnzEIkKtS9kBl5f9goVyJ6+68DZuBw/ZDtaT/4I sqXBVN+QJZZsOhOqQ0iqx3XspVg2Leew2vSn6ywmTHzSr5bg3Zvt9i+9hbr3+zR2KsV4 TKGg== X-Gm-Message-State: AFq9FYL1aU4w6YU31Pdp39hBgoqOvOzUOWFbM1QLmvwe/TQlwXZQdhVO JT9A7ebaEAle16FpraDN7J8YpiPMUqvtZ7aR08Dm1oAzmnyPAia+fkfhBqD7MMeGdzG310rTYw6 dVkpk2hqh8u1/WUi/oOC/rv3ZNlt9I+ZrKa/TapydWjxz51BflQKdCvsSO3Fw9J/Odw== X-Gm-Gg: AYBFou3D+JIvxiWxnYf6g5245p/NIT2IU9mYFTJOzYtLoC68ViC7GpXNPUgKvZQseMp v9RUhiLVKMwWyTMT+oRjXSfal9Bu/81P1w5mOhJSGRctPMCqBlUZGYs/T5SHf/9EXJFNs5oK3K8 SP/fSnZhB6hgrmxbEY5oxF3KWVOY4M6uX6mwA2ZAHJhjDBeYxmCBzzoasPZrSP9SKtz8R1TWZh/ guY101ZqLrSG1TZWT8ITijTYKcU+w+sFZ7kKZX0SpHAHUQv30/9YnAAPFXk4clsf6AoIgPvZwnB GZCqcgOy+BHcgBRnJfHfR5+mM4uwMq/D2IArRkTzJHlI6YHQoB3VOEzIJkn1hOU0oFsK/Mt5VoZ YjdkOuqVixnlEvm0XdpP22pT9y1pCQU1NbUGD/FLNJHMXGCpJMWmMM3zjsnCHZkY= X-Received: by 2002:a17:90b:5111:b0:3ac:450a:fa22 with SMTP id 98e67ed59e1d1-3acee289d0dmr643122a91.2.1792174466829; Fri, 16 Oct 2026 11:14:26 -0700 (PDT) X-Received: by 2002:a17:90b:5111:b0:3ac:450a:fa22 with SMTP id 98e67ed59e1d1-3acee289d0dmr643106a91.2.1792174466327; Fri, 16 Oct 2026 11:14:26 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 07/23] target/i386: implement get_dump_info sysemu op Date: Fri, 16 Oct 2026 11:13:54 -0700 Message-ID: <20261016181410.191743-8-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MSBTYWx0ZWRfX5+1i8V/NJijq wLh6Jti3xVt/+z2LaST34m/JXbkgiYFbSgSaFNYTzAB++Mg81PvAVMPTM9ZLTwoA+/hdkQ1Vl/e JnH7DzF66P4rweoDagQ1K1hFsiY2E7w= X-Authority-Analysis: v=2.4 cv=H+BOUOYi c=1 sm=1 tr=0 ts=6ad26983 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=9TR7Q1sQarOedDMGQfkA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-GUID: FuaSbraaMLvee4FlqqqU6O9f9NGUgzuI X-Proofpoint-ORIG-GUID: FuaSbraaMLvee4FlqqqU6O9f9NGUgzuI X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MSBTYWx0ZWRfX2xNWkWokc4oF rmGQuGICWYiHNer7KqoTm7lB/4ijjcJmDiLqTkY1SDCF+IV9pmpG+R8j2yV0D5oxk4Vi9ywCU0W n5hC+rbJPWYnrDKU4mqkc8iFFs026RToGV7BdSqtVi+DxVMuaH4nQ9ielDmgUo70iEvoJ0mwPig lN9wz3aVAmn+3Q8XNAxi1vPaQBbuta7HZcBvLWRD7i6V0nMVRsME4k/75ObGPoxHN0J1Kumha+D 2GCXnT3nIRP0mugBrcLZqBGTgcC+sgH6pP20xvyAwHFFP6hgASuyMNSKuyh21YGj8tgtC73Pyar jDWQtQrWDfXnl5H50JP+6Vl6blZA4b+zFNOlAFIcaSb+5AIGDOQvkC253LJEgPZrUoh1cG/wePX 8d73eiscYUZcKAdX5ENUTTgbrkmoa5sgyMocdG+W2o61RHH0x4rAjwVzSycEfIpwzVH9w1qXzHy JqRfP20dqazWHRQTqDA== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 bulkscore=0 phishscore=0 priorityscore=1501 adultscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160071 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: 1792174496737158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/i386/arch_dump.c | 17 ++++++++++++++--- target/i386/cpu-internal.h | 3 +++ target/i386/cpu.c | 1 + 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index 16e47c4747d..d5016c198cb 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -16,6 +16,7 @@ #include "system/dump.h" #include "elf.h" #include "system/memory_mapping.h" +#include "cpu-internal.h" =20 #define ELF_NOTE_SIZE(hdr_size, name_size, desc_size) \ ((DIV_ROUND_UP((hdr_size), 4) \ @@ -394,15 +395,15 @@ int x86_cpu_write_elf32_qemunote(WriteCoreDumpFunctio= n f, CPUState *cs, return cpu_write_qemu_note(f, &cpu->env, s, 0); } =20 -int cpu_get_dump_info(ArchDumpInfo *info, +int x86_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks) { bool lma =3D false; GuestPhysBlock *block; =20 #ifdef TARGET_X86_64 - X86CPU *first_x86_cpu =3D X86_CPU(first_cpu); - lma =3D first_cpu && (first_x86_cpu->env.hflags & HF_LMA_MASK); + const X86CPU *cpu =3D X86_CPU(cs); + lma =3D !!(cpu->env.hflags & HF_LMA_MASK); #endif =20 if (lma) { @@ -429,6 +430,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + return x86_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 5; /* "CORE" or "QEMU" */ diff --git a/target/i386/cpu-internal.h b/target/i386/cpu-internal.h index 37c61a1bc3d..9bd2a37c447 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); + +int 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 15:41:33 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=1792174513; cv=none; d=zohomail.com; s=zohoarc; b=U3vajXAt0IvMncJfE/XSB9ikij8JcxnxpOVsEWe0nEP6ZL49uuvIA+66NZ4Iz+1sFph74TreaIlT2cmH9zWPabBm7aadT2NlZtx651ctqoVsGzUpxaK7zALCFRnGxS4BLzn3JukltrMpluIn4IeHmOnhLtD1psOhLOgPbqtOrd8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174513; 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=kobPT/iGlnCylfEzMbKrxF+6JJhUUdKvxS9pc8Ipuuc=; b=MvxZnjufAXXdTZ/FVLG/8qyWA77G6n7BxumdfTOX5mA2c4tyoyQaR5LDPTb5HPs6r2CcyYr7ePFSFEIoW4hHb5yr7w6CNK+VtmI14LABG6X8BiykSFcEsGwXN7p/Ao+5UnRpGok8RhLVV1hkwzeoH24PCL3O9ldO+SI8JBS422E= 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 1792174513589939.657520256265; Fri, 16 Oct 2026 11:15:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmRv-00078J-IJ; Fri, 16 Oct 2026 14:14:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRr-00077o-Qb for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:32 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRq-0000WU-5y for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:31 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69GE69vh2455449 for ; Fri, 16 Oct 2026 18:14:29 GMT Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hbg5yta8r-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:29 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cd634ac49baso749130a12.1 for ; Fri, 16 Oct 2026 11:14:29 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:26 -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= kobPT/iGlnCylfEzMbKrxF+6JJhUUdKvxS9pc8Ipuuc=; b=WyronuA/DEdNwty8 qNoA7gYUXe8k4nV47MjkSUW4eTa2NV008+tcnX8ccC+CpqCTaknbWeH6FybbWLkX chfuB1MB3QeHPwTJ91CPyLJu0i3duaUZgcBAoihMOAVtWO6AozSRyzrwmxTQbPgx zxkvzgjgUsC+Tp5zJ6tAIwQ2uvSAiqfG7kAoOfEx2O0Eg+CEQjexv6coBa7Rfzz6 AH2UWgjzFzULA3hsjyfZKI8vAH9Z5RuZcmXwEjbdYb45ndAIbYaO3WfB5rai99SJ vbDJ52YBMucek+sOye9ghK90Az4oGueaA+XRZKl8XI8VXM1DKhg7TjDGlJ6U7/Nt TgwElA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174468; x=1792779268; 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=kobPT/iGlnCylfEzMbKrxF+6JJhUUdKvxS9pc8Ipuuc=; b=S8yohYwgA5o0RBjImYLsgZXjyKrmVswHTmsl2c6VMq2ScMPeeNWW3pctFHi3ezTUTi ri5sRqaf+nPKDIR5xN5qvIsTmu3tyD9ANmmfl+hzsgKTWBHRdpj2ZYK28slpgefzXSTX gQm5Y1A8AgRnuG8YsR+VdqsO7xGzycCuildy8wRnmKE5qDeW+o8/JznD4xK7Bzw7i+HP dk/CabgaVRGNRZzX4ti9YSEcoC4wHD+Fe+rtOIeNsewwXeH66V6fElgUtuDPZjhIyykh 2hdp4CZMIcc57lOo0J30ETpQMDDSlWepeRIN0DIWe1vx8ZakyYhl87dh7BFKKUcDugmy k6Fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174468; x=1792779268; 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=kobPT/iGlnCylfEzMbKrxF+6JJhUUdKvxS9pc8Ipuuc=; b=FXMG18Xt54/0leCO3R4pazxqXwRA8ZLSJwZBwppFnc3giGn/aOrEuHeoF60qDygtmH XeKGXKf0BjKPEpVNN+Xl7kIvBD/e1A0V6Pnt0Y6ijqXsORlmrNpleuLWl6n5LN2BU8aM yqUzqjKsnX2MXN5enY9LTt3qIYj67lO867iIk9hQKLl717cwt/0hgZXQCi0zSKElMIKa oR3UY9lihjTBhqjmgv926TLiiiKEaUtJG7De4UYNQCrKT939mjTvjKFyKdlZg0PYqVvT eeLWKWdm0ao3K1Ua0cHDGgc3w6SQwZsmeFXifP7a5/4DShy1DUShHSXJgjNwy2GYm8tu aIPg== X-Gm-Message-State: AFq9FYI72Q2iwAOq2+grUa2j2eIDAdknXTSyhmz09jkvNVnlfmsfCY7R qI/yK2Gkj4G7iCyvDo2csYBL/VyCZ+Rbd8uKWL2fdpiIKQ+w4PcIJx66m29K8+oTnQmKBOcTNNE e+xQV6P0N1Zq0eQJI2Oglf7KXmI+vDBVvn08a2jkfp0fD3A/0XPCML+86xs1XfKeVHw== X-Gm-Gg: AYBFou3tRjo2S2ZSSCtjCcJA1wTzhRgIQIaCxHYsVGem2aoImLwsOcf2usIKK7O+2fj FaINTAm28LdwLLCoM2DsKnmzqRb52s4qTHs1dGPgGb4TcHOOCOraIYi61B/WGTgN292ro9jeI1z /Ba2hjBu0PJa22agwzvS24QOB5Q4wQdGNpCGk0aa0TNcUh/p9NsJcRyHrhL6WO//mg8kqzQ1tos rBzf5hmaBZZGzAHwJ+OybMuFaWV7fMVAr68BVO5zkRMsMGN65T4rdnsz64uBXwSqtd7k9ycXizN kf4ePlBCdLc3/igZ6iWy1ieY/RhdDXvIJkGD1AwOIUwSUH3/Dpuls6M/IUuOksvhZK2UXWSCNOT v3I6GJ907YhFo3m8lcf0A4N3hiDdyBMNwoeF8cYcdR2wcOCso5xfhPCFgHVZEv1Q= X-Received: by 2002:a17:90b:28c7:b0:3a7:96d:feaf with SMTP id 98e67ed59e1d1-3acef134e1amr378703a91.16.1792174468130; Fri, 16 Oct 2026 11:14:28 -0700 (PDT) X-Received: by 2002:a17:90b:28c7:b0:3a7:96d:feaf with SMTP id 98e67ed59e1d1-3acef134e1amr378689a91.16.1792174467527; Fri, 16 Oct 2026 11:14:27 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 08/23] target/ppc/cpu: constify cpu parameter for ppc_interrupts_little_endian Date: Fri, 16 Oct 2026 11:13:55 -0700 Message-ID: <20261016181410.191743-9-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-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: bRx_TghjfnHwZKlVQraWA5dvIiI8ShXf X-Authority-Analysis: v=2.4 cv=M+HYuCws c=1 sm=1 tr=0 ts=6ad26985 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=eFVOZ6oOXU5wpZiMpRIA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX+pEy4jf3byO7 hDXG3FAyFZW8BbFg9rQnQjLrWUhiNiVEyKBZEjooGLc2WQcw54h5CmsZnswkeaZpDv+VwW1gAOk +qViUkREyiEcVIbsvJmpqt/upK1f62M= X-Proofpoint-GUID: bRx_TghjfnHwZKlVQraWA5dvIiI8ShXf X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXwnHqGlzwmDTr RWgxqyOowBzU19D8t59dObFaKFf61QQeAvSOPxkdcbBK7lkLgGswpfvz6Ri9MtSaz8JSvxpGSjD m7BWCy8kHz9V5MdtRb28V+ngq6nqdPDAIJ32Cu2/BOF4+HznV8nmnFJm9q5BkR4d6Gk5/QWUGGW PYpz8itR4V0nJz0sIQRA+FC1Pro0+yYc7OoCoBlaBN1pjgGw9TIOqjE01TZmWNYgCpKv/zWQxQl JZKTcuvUrC0QUuHhtvimIqsEyuH5jy7i9tAo5uZ/B3epa5PLo/eU08JfOGjaeh2xWo+gp5oWloY lb1+LefOMN8W4JkI514JCRRzr2RJsgAwtbD3H+AZ3VuBoQdTBBX/slvplckJK2jPFqXX0VVEiGB NRtqLOEN1sS3XL+z0KghB5mHJl/ZQ0vrzP4SWdkrE4qZDHoB/jfHkZSSL5AvdwMRr6k8AsBxEON s/UFFIkqvgkuSSYZ6WQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 lowpriorityscore=0 phishscore=0 suspectscore=0 clxscore=1015 priorityscore=1501 adultscore=0 impostorscore=0 bulkscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174515088158500 Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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 15:41:33 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=1792174513; cv=none; d=zohomail.com; s=zohoarc; b=e8iR46GBk3BXygPdydeKXkRrOEz1ZraNE0efsTnJh7njn2NSAqI/ZlZFvJr2eqb3j/SGT3A+WINfGmNZuszxIEXWzyAMkRgsndHy/AmJhxTVVtw1XVE5vREA8rvpjZZUIIfooqxbp8cm2ObVEGX9XJ+/ip1/B5tU8xW8NOlajyM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174513; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=rV8Bi9ZeDb1EsS+gJuatp5brX7qzcoQ8TjRgOYQqDxQ=; b=ebN+UyJZYMtyUJuHwL8a4Ldel3PwkhECiF4SPxoc89/Jy6M2n8UqIqCnaAnLdEA9o7yn7qHMYWkDmOYWIiaQRqymfzOKjWhhetYMxe+mYkJ1DjY95SDNVqrsnD1iyEgNXcXYiuKbCSoN0rDidaa6qeUZnIPebbOQYUqNoyk1WlU= 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 1792174513590990.414160921175; Fri, 16 Oct 2026 11:15:13 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmS1-00079C-PY; Fri, 16 Oct 2026 14:14:43 -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 1xHmRs-000781-HC for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:34 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRr-0000Wk-0k for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:32 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69GG3YJd3260314 for ; Fri, 16 Oct 2026 18:14:30 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 4hbq450gd3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:30 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ac575a9198so355353a91.3 for ; Fri, 16 Oct 2026 11:14:30 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=rV8Bi9ZeDb1 EsS+gJuatp5brX7qzcoQ8TjRgOYQqDxQ=; b=l7IIRVDfJmxf9Hjusm1zY2bcBb/ 2Adl9/pSjYFWps/PRQYYOiCc15nV5RWQRskPR/y9Z4ksQZ7VjagfU02hZVeT1Ev0 e3wXjuIwr17ifkYT+TsFH76YLwQJDdw5a8H2fPCr9pZIvrdV4zKN69s6Le5ii+wW hSr66moUE19XYI8mab3og6yNhjScak+wCtkiz1nCtcPp8nU7C2a6gqU6VC9EGjCE 62jYBZPlHNKTqwnjduRf7xCNjfpqA6Rw3g+OKApWtEQBixsvCfkTqrsdR2xadWF7 ZiE67KqTQWGB6uMU9EVQsZvwKRU68iGxs38SWW+zJo5cT/pEmTh1Y5KRyhw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174469; x=1792779269; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=rV8Bi9ZeDb1EsS+gJuatp5brX7qzcoQ8TjRgOYQqDxQ=; b=YWloEn2l8CrhPgd3t2639TBpIi4pys5KC3WaYLcdmSr8uSRemtQEk41Y4rAF9MeY+V ANLZm5/2PCEGSLG+WychKACjU1j/OeD6pNUpeiwC+laH5wSLfY8vIYtWtolKDljjLBZs XOvALt0dTGM588u5SMMf/+2c2ENYltfGmnIzEqZqIBx4IPA27RNMnFfR4GErw8zvU+Y/ LLRnVIOCW97YH6DDR8QK+ojOlhzVdusBs1ITe/Xw7qg2uonD1H0bLFr25MjnKEAPTwhc iCBk4X+eCPm0m5VU+PoX5yY33d+H7BGtCBEDJf+2YDUL+SGpaF9KMU6xBsh2sgCuwnuL O/0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174469; x=1792779269; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=rV8Bi9ZeDb1EsS+gJuatp5brX7qzcoQ8TjRgOYQqDxQ=; b=QV9NxIBN6ZoUEu3idODC3lD4u32dVFwPY513ywp1C5zt/JVPnlgOS39mcFrzzvI85q pSZQ2ChX5y4gfgZ7cZJoig2iHMzUIQW/LiehOS0JmppMvojTaRmFHVhzHTyxlurVgq2y 9Kkr955j53UOELIrm/ui2YMAmiPiTh26S/3kG/7+RhpPq0/pbRzA0TW54XzmUVxYUnnz m89r22B5VGSkWCe38sWpEsc+pSc6jCPg7NesVARdctYneyTy/uFAVJ1CXRVz/o4Von8e Tvvb+cbNPqftBKKV1HqeDSdo7IFmv/EOb5woB03huEBPmQfsttlxH55TGkRp9L+YQK3C Z1Gg== X-Gm-Message-State: AFq9FYI067IzfVHrEo9/IRLq0s7T8U5fu0c4aVrbcjxOubWy6ERqJixN yMZAEnWgOloejomDthjjiInkjWbbNvq7HxNuYpXt03cVqcIXnYWIx/mZs1ylqP3QFHmCDpsssUG EMbrtexesl9v29ttU//QmZZUtNZC277kLcCfQvAKuW6QeW7S6MKOU+l1vzpWu8uM5oA== X-Gm-Gg: AYBFou0xl7xf81MpjuFnd9eF3QX4W7BeEUn0j/5TSrybvN4VNIkGtjZ4SSRz6Lu83SB vHB20ILZt+yNOCAtzFiMDlV5J0q8LLZlWyPIBFULNo18g4LnLXUGlz1OQGgF9DxeX7QVogMECpQ XGWsGNZf93TTdk7f7VSN63j1AYVHZPkVefCFsRWF0tX2A7bbijxjs3gblEwmYI6jiiR4jCcUhsY GvX///QcjJBRMnepdG4kuZ3RMWTJP6+6+T3oF9XSil96gFL8muVKe5lh3kXI+zuyEi/sD9wgmN/ oSms5r3Vaor3Yk+ZFCwY8/JBpbs91FyEDj3v1p0lplLb70BGfuGq6AJfKSkXLkePw/Z+/2dWfY7 6I18QCHcT8XeqS0e/rpfk/GuBEkeayZIelWbzzFG4W9zsO0w1S4ChfublvOheFNA= X-Received: by 2002:a17:90b:5803:b0:3ab:36c4:b500 with SMTP id 98e67ed59e1d1-3acee27acb6mr609545a91.5.1792174469195; Fri, 16 Oct 2026 11:14:29 -0700 (PDT) X-Received: by 2002:a17:90b:5803:b0:3ab:36c4:b500 with SMTP id 98e67ed59e1d1-3acee27acb6mr609522a91.5.1792174468794; Fri, 16 Oct 2026 11:14:28 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 09/23] target/ppc: implement get_dump_info sysemu op Date: Fri, 16 Oct 2026 11:13:56 -0700 Message-ID: <20261016181410.191743-10-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: alg23QC5boAYYvtWQRlXZTYNmF9I5kXd X-Proofpoint-GUID: alg23QC5boAYYvtWQRlXZTYNmF9I5kXd X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX6KPfxKMa0RKW Pedk3hIaO3/ybm9jDYatnhOxj2F+xHQCwqiLR2G/h9xFye1mNRmuz89JT04uKS0VpQhCSiwmo2A vASFrYHn3x+aLAOeMJqull7fZ/58tD+79/vlDr91cB/WpReCd3ZIvh7qlZ1VXI+GcQwOU/qJ/6u HiPbLXDXoTKdsRJQjp5yD16X6wL1Qninpfy33VQ4OL+Py/MryE7afYakOueEJw5kgJzPu9dcM5U 9k4cJozBw826jqlK81rz0jG9SYHRfQwY9MsNYE/jeW8YxbsMIUPzu8iPKzRnLKP42yEGTMO0yFj dN0hT+rZSIrTPNFl0wSnkWBFRRbzmfhDM/NGaFsX0G+TsIs1yOtVNYyUMrPSRRpIhBwAYDeSC8i izWuGMZ/6caJIwcVWMzxuBY8v/0gUJbCcHs6+RRKhmRcfCH8NtX+P35wJyUC79Yu/Q4DOz1rr9Y zxhsyyrzZP0kNLPgScg== X-Authority-Analysis: v=2.4 cv=e4GT2qp/ c=1 sm=1 tr=0 ts=6ad26986 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=HC5FQ_MKihgnNVCgyfIA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX4xInfksZj2pI 7HZroOWAmN9maOUWV0aHLcgjqlXuH/pk1p1Zn512HzFvBgbVcvyCzKuFghoXgUjfF98PUhlVdeN RrfWxuxZtKYex/vRRCZLO0AzkzmAxlY= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174515106158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/ppc/arch_dump.c | 23 ++++++++++++++--------- target/ppc/cpu_init.c | 1 + target/ppc/internal.h | 5 +++++ 3 files changed, 20 insertions(+), 9 deletions(-) diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 80ac6c3e320..7cb97082926 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) +int 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; @@ -257,6 +252,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + return ppc_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "CORE" or "QEMU" rounded */ diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index b711f9c0a85..5853a92bffd 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7473,6 +7473,7 @@ static const struct SysemuCPUOps ppc_sysemu_ops =3D { .get_phys_addr_debug =3D ppc_cpu_get_phys_addr_debug, .write_elf32_note =3D ppc32_cpu_write_elf32_note, .write_elf64_note =3D ppc64_cpu_write_elf64_note, + .get_dump_info =3D ppc_get_dump_info, .internal_is_big_endian =3D ppc_cpu_is_big_endian, .legacy_vmsd =3D &vmstate_ppc_cpu, }; diff --git a/target/ppc/internal.h b/target/ppc/internal.h index a20a0f9f7e0..4238692a9eb 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 +int 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 15:41:33 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=1792174539; cv=none; d=zohomail.com; s=zohoarc; b=lscfaFVxdxGmZwq7SeuyD5PxOSOBe1Ctkz+khswhzifqIxu/VpJ66P2/Rg/nhdTYjOAJtRMfbZyMcZUI7nK4lO4fPtdw695sMtlX09fJ8+0acGEX4bwEtZU26S1pE0D/LhqJhGoI6Bp+VnQxsuTBSaUPtBK9vk1iRBj2kxzF9Gc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174539; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=INvVrZ39Ldo+gl9V/gb3YVe9ExWXcZCWdyXT9jgl6NA=; b=bBQabA++cGaIbSxeRn2qmPLCYtHJcTRZhuqI4YiJaS+MEg7ZZn2YhDms71slF7/E7VjE6fWVGF3e2+rQ1PxzYecoHUd1ggdPITVagjte1Ip8wWcLPRGQ5m/uomLZD/jsiLvfQwP0vyV5WHyyyQnV+Q9ZL8ixu+OR6g8AOi8Eq/E= 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 1792174539474833.2536468711112; Fri, 16 Oct 2026 11:15:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmSO-0007Gl-0E; Fri, 16 Oct 2026 14:15: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 1xHmRw-00078l-2i for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:36 -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 1xHmRt-0000X4-Vk for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:35 -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 69GI5Q3T4097700 for ; Fri, 16 Oct 2026 18:14:32 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 4hbrw7014g-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:32 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3acd21ba24eso156882a91.3 for ; Fri, 16 Oct 2026 11:14:32 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=INvVrZ39Ldo +gl9V/gb3YVe9ExWXcZCWdyXT9jgl6NA=; b=T6Yna1+TMk+5HZecQ4xlmTj/Wn8 OFTf7ejbK+Ci0KTrSD8GZcfdGvKtPaQE0buamt17HLJ3HKGxXvNgqMJvjjgu0OH7 XYBGRJdBEoQFRXsaHUNqtI6OlANSPPBuR5+HsqIAS2xY54TrraVoiDuMfwvs9xNZ IWLXBWjZ0Nr8+4ObZuTgyd6M0DX6tsF5VVzkl8ZNzdGHFicD7A56Cv3HIhYEqo1D VcDSESfNqyYwPqcjh8rzD2WOndhecC0HckJXMUU8KGH0eg0O574ZJrf8l+aARoo2 dtcWHzcWmBIHzNMXqs2WfP8/RLo7bHJ0czEYld3u3qs5/+eg0WQmgaohwSA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174472; x=1792779272; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=INvVrZ39Ldo+gl9V/gb3YVe9ExWXcZCWdyXT9jgl6NA=; b=Lp5sUCFgEo7YjveWhdhXeVB9jBsnVHDPEJBj1vLkc6mC6y/pdzaPzvYIPsIP/a/Z5L ISU5uwaB1xUpF24VKHm7rFBZOCeNbXqhCWjKTlkha2QDHZHl2zPSs0S8Qz2E3bJDijXd IdxqNCavXnAx+yYQlY9vg5rB/uHvqQzlQ2YqfCyrb5APyIWoldYOqMmj4YYqkml30Oun ME4aywaEcyrlKalZjnvVw0ona6kTxaEW+IQk+owMU95V0eekcmf/UheXrwzT8Js+jvVs YxW7QNULoBfl0vkgntI7BTu/FTS2QNvxL8xCVXWIIauzqUTFubMUtPiSxwS559iv9T8t 1Q/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174472; x=1792779272; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=INvVrZ39Ldo+gl9V/gb3YVe9ExWXcZCWdyXT9jgl6NA=; b=z/fqqyyUVFxpGizDT2gEO0aghgS0xSXhLQrgrath+OXYyagimX7voOyTyAtbRQJnij EEHIbIW0LHfQYUeY35OE0J9WCbOWG1+KLSnbIt8qeVxOGg0RgzDZyQ0m3dp9QVlaH0Ld rro4yv9lG+FM7sEsEMYmdtcUQWjnTPEebECpNMFmvoMP9tKJk0CvyZ1mevSKevDVzmCf U/JgdcecF+l3Px6/uZvtC3X75OKCh6O+WhGiY9cPWKDbd9qy1/rsHnVywT0H7iB252BW xk542kLHfWawiCowavKB71Qc6g/QPINbNzZBApSy1qoRi9tBchltDa2BwCR/H8XPJogh rOTw== X-Gm-Message-State: AFq9FYKQ5FL2LpYMwMqjH2KWZ7cr6aOxcHm6gFqkowXeE7VSg0tMbfhi KIV0PvbtOKkS2wSnuvxsY11uCENNpWcmwS6caaF7tjtHzzMPcvncwOXlAdx6a2MIrXLE1B5ioRV f9JwQ3BVEN8KWr3gNTff+C9INxlDkUPZd/OIpVOncFZ9xbIjuQLVpebFtRfARLJcctQ== X-Gm-Gg: AYBFou36HHNDQvRvyMmQ4SDqO3sLHlXUQuyRUUmEOHiOPqMhLx+LHVotasDHkQdjeyY 2S09izW76hICT8gKvOYsX1DuBSoay6vRdkgw0x/RS34lBnyyvaVhs8jNAoAYLgydyXDoC+RL6fX IwIz4pM96WBoZU1wA8qRICYWzM3TPa/+SZ7csh4awOGC4AzF2J794UAwrlaVvMggr2IP0QbpFy8 9vDtntMMFG8TDeQtZcesME9pLfsqVk0FGV0me/fpcLksI5zZ/rU9wicW9pcpU5zMMyyhUWryttv Nf6PtApaC83z+4eQu6HAHFkJhAFcxrK1db1PBBLIfSp1LCA4r5uZJZJGWJ+qVfOunGHyEwVcPLv Yn53hcoRF/hH+btOi4bEzIlEKq6SdwNXLXP4HmUJgjuAMOpfdqc5lgPSk6PxDors= X-Received: by 2002:a17:90b:4d10:b0:3ac:9c37:9429 with SMTP id 98e67ed59e1d1-3acef56fff7mr573537a91.52.1792174471941; Fri, 16 Oct 2026 11:14:31 -0700 (PDT) X-Received: by 2002:a17:90b:4d10:b0:3ac:9c37:9429 with SMTP id 98e67ed59e1d1-3acef56fff7mr573479a91.52.1792174469887; Fri, 16 Oct 2026 11:14:29 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 10/23] target/riscv: implement get_dump_info sysemu op Date: Fri, 16 Oct 2026 11:13:57 -0700 Message-ID: <20261016181410.191743-11-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXzprYFgB+ONLX vhZMpFC6IWvFci8qyBg7YEy7OLyjhTbbBrtj32MXrhvb8ZbRyK2Kb4WjtBHczGT3ba3dpv3sIbc F9hzMv0zP9jMff3UKdXZRufnsOhcVqQ= X-Proofpoint-ORIG-GUID: Gfh2NluMdX3926I83fWz2tfmPp0tAfTg X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX4W2sMNFTV0XC tROYwFcXMRhkMvgYa0iX9MMm49oMohg8YgIQ2CVs+dtKcxJRx6v4ABSY9VGGp2lc4+5X7A5GM76 xtTDPBQDERWDd1BoZSLE5fY3hb7fTb/G3HnjTDWEM6fVCpg7QBg6Jr+yZqEMmqtpOW4pCad5yhc 17s/K1SCu008PBii1SP9bXHgpBTnIVJdMWXPuXwHBGEay2y+ccsmZ0hgKj0cTWO132HhaC29BIe QGs10eIvpeYAx/K+k0p9xogHUGz8gIwF4tdVt0rwhHrC0vxgNbilwrslm3qCuBZh5Diy+BhfhsZ toBwP6hLS+c8GE8L9QNMo/fjTHeDj3JtZIpPiBAwOXiB4jGBgJShntNvjUA09mUxH3IhJO7uWjH VLllBzj38EYE2zQkAu8Tf4uiUVaae+7nQcRD1u87sUNa+BygdG3D+uc/tUmh6HoNMnVv66V3q/5 wHWOHQeW3JSWAMx/6sg== X-Proofpoint-GUID: Gfh2NluMdX3926I83fWz2tfmPp0tAfTg X-Authority-Analysis: v=2.4 cv=XKKl2ghE c=1 sm=1 tr=0 ts=6ad26988 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=WNGBrETkOK3pTO-6kIgA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174541702158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/riscv/arch_dump.c | 25 +++++++++++++++---------- target/riscv/cpu.c | 1 + target/riscv/internals.h | 2 ++ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index 12b68799070..6562c32cfca 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -20,6 +20,7 @@ #include "cpu.h" #include "elf.h" #include "system/dump.h" +#include "internals.h" =20 /* struct user_regs_struct from arch/riscv/include/uapi/asm/ptrace.h */ struct riscv64_user_regs { @@ -161,17 +162,11 @@ int riscv_cpu_write_elf32_note(WriteCoreDumpFunction = f, CPUState *cs, return ret; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) +int riscv_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) { - RISCVCPU *cpu; - CPURISCVState *env; - - if (first_cpu =3D=3D NULL) { - return -1; - } - cpu =3D RISCV_CPU(first_cpu); - env =3D &cpu->env; + const RISCVCPU *cpu =3D RISCV_CPU(cs); + const CPURISCVState *env =3D &cpu->env; =20 info->d_machine =3D EM_RISCV; =20 @@ -187,6 +182,16 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + if (first_cpu =3D=3D NULL) { + return -1; + } + + return riscv_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { size_t note_size; diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 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..ea4b4140c09 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; +int 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 15:41:33 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=1792174781; cv=none; d=zohomail.com; s=zohoarc; b=Dy5sKNsPxbLn/qBVdhCgTLmZut9oWtmwznefiq4alSCuFtJyQvhw5Hl57lEpYYhaVFsskfBd97nOiw+IgxAtDvfyoHJkoHXoqGL7q5CUQ52f8sdgtnrM+nfE3SGl2ovGALKU338pJTDOQtXNbWQ1u9pC9TEfLe9CJjHGUL7PHak= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174781; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=+4aRFUUYhZoioX+6RW3+Cr9EnfyeyaS+cwLAKpgFdzs=; b=TAOt+IrMxXqfp2va5GBiAjxD7KXmvd01lvDIhjjtoyWtBdkDtjlfmCQXsQ0Z5kBe5LJAfp2CCnXMp1tFDcQPr/ywF4KFnN5+O5VEkyX4EdgBb7x3R0BIJvq1fUcfUxvBOmuOsFrwxCwhZ0A+HhOaT/+tgk6kiaV9KbaLfDK1Va0= 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 179217478140312.147889228763574; Fri, 16 Oct 2026 11:19:41 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmT2-0007my-5D; Fri, 16 Oct 2026 14:15:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRx-000795-Kn for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:39 -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 1xHmRv-0000XF-Rf for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:37 -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 69GE5gnp1613410 for ; Fri, 16 Oct 2026 18:14:33 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 4hbk3v1hh5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:33 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-3abb4c24125so194231a91.3 for ; Fri, 16 Oct 2026 11:14:33 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=+4aRFUUYhZo ioX+6RW3+Cr9EnfyeyaS+cwLAKpgFdzs=; b=cFl9/A9O+WWiP5a0/3OJVBupX9g tZthZOicOnUTJyaA2Huo/sGoYqd+EpjtpxlBU9Xnj5CIbgwdyZ8HWwajJB9HNsgm /AEy+Y67f7WhPQKjekto79nUKSlh7XFTZtq+B4Uz1T1FxSRMD7hO17qK7+1YqZ+h oz1IDge779LlFuhNaxZqlOKfqR/HxRUdyj/NAol/ZrDmDvEHbX/rvCJ26xwxWjC7 Cy+GW8mYNGOuG68FRw2Y2gGFLHRrtbAOZBc6tsvpaG6P7KBp8V7hoiMKiK3FTdXH k7h1h6caNFt3MGupdWidZ4mx8Mwjdw3UaMPbHHk9W+2TXANYn4tA/8vaz0w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174473; x=1792779273; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=+4aRFUUYhZoioX+6RW3+Cr9EnfyeyaS+cwLAKpgFdzs=; b=A+kUZHsy7vGestU6wIfDD/DOp8iXlwAav+vpIzPdWTv7mORdCDyeC+IHn2tQEeMOtG ah/qpvxSCntLR7h3AyzyF/pRrao2C2JBa16XxHUGvf0oFavFa2oIrXOtm4YSYQxc7F1u gVmNFoeyEL2AszxkkjrMHQoQ7EPn8b9B9iBXBZZhMDUFkXKnmnED7Tl5StXsINZkArsp zcyLtALgV93ZB6oU/ibzpyOEKx9M4aB15jIUkqajHSnjzphE//7zP8jI36AP9DCBCCIR N6zDLt+pHtXA9N1o3JfoUf0p9EjBic4UGpYInFIqO3qhWZZpGIxNjyci5nHbz/o8aanj h02g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174473; x=1792779273; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=+4aRFUUYhZoioX+6RW3+Cr9EnfyeyaS+cwLAKpgFdzs=; b=jgrgUVlGvCrXTXMlFqt5eBLGONfs0XghQ82nNRSIMMJjjDYPJPDLT7ljaurT9Bk7XH o2wHbxTmh9CshvmRjmGN7gCO3v2AQ3x/itk/vkqbgnVKE+v08TmsXjjR/DGmOQdGz2Z+ yhlMBoB29yzynqS1qp+zRzNAp4saQc8VL16cGNZwfmrpaHnOcA92HGyyDTUlA2buj1gz dWcPAqFYfVhtKnaiJohnHO2GabwYZ8H25rog7PBIw66xuYv3RaxFuF1s+q6F4VuSegmC gedzRaEhTQsqjMdhc6kBfARya+rLMoqLNRetNzXh+O6e+3VQhAeqypXLUHKm/M+KM1iT dizQ== X-Gm-Message-State: AFq9FYKtfX3GqNCeQIlKpPTb8EV8fst+aKSUsNL2gSevsIG3a9qhxo4R GklYXi9TuKKl/3qLxTGfSF9AIgOU9XmJZTjeEm4//NvUEDauSMheu6+qpN3qhdXdP+EfeI3DxAM cMVmy2DhDEdsuEjyG/jWPCFfcjUETx26lnYrky+/2zkBRRNvM8QaD49z+pts067nung== X-Gm-Gg: AYBFou1tWbsfLPXF9EKgSoq/eGbeSfh4y+2zK0U8w3SWm8xUFrNP9CqtPQVqFfQfzjV +uqisUI4q0QebxnyeSxUWjdPUCIVGvbd87zMUJd50W00JH9w02/XrAfNvbqzfS/Ahg+W5CATOXx K+0+FS42Xl94Lg+2lvhHetFGc1htDTP/NdQXDD9ipODvSgzKCaclcrh0QofSo/wDXle1ySddBdz +qGd1VuYTjKOzoRz/8bX+mav2r2/6kqb82ZXLWlBnkseK/hGT0B/CIS/x6QPJqz95Gn8BPcUGDZ anpj0DbeErK4RnFWkdsU4xLb6XRlqqhaMtDFiv9Trn9lm6nuR1DBN8y8mPbl4niROShVWETO9fa o6vDVmMNJISERQAdJu2l9lL2UIrgIFHYZVnHvzAJsDPVbgDiQg/tYZVnaQ/3Rg6A= X-Received: by 2002:a17:90b:562b:b0:3ab:be66:ddb6 with SMTP id 98e67ed59e1d1-3aceefbfd37mr468748a91.20.1792174472874; Fri, 16 Oct 2026 11:14:32 -0700 (PDT) X-Received: by 2002:a17:90b:562b:b0:3ab:be66:ddb6 with SMTP id 98e67ed59e1d1-3aceefbfd37mr468740a91.20.1792174472395; Fri, 16 Oct 2026 11:14:32 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 11/23] target/s390x: implement get_dump_info sysemu op Date: Fri, 16 Oct 2026 11:13:58 -0700 Message-ID: <20261016181410.191743-12-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: YirvVPzLiiTgMkytM-35M3C7kjiBNFIJ X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX0JLFaPoZqxms ywJnAc9+IERdUaAXWeFfRJaSlQwZU6Wt4K4KD3+N7KHGwP4vhkxGcu6Je42kmJkqhNADX8sQrpJ ceDW1lS+NLyMX6Rt9jiqVSDv7e16OFY= X-Authority-Analysis: v=2.4 cv=BZdNQbt2 c=1 sm=1 tr=0 ts=6ad26989 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=YMgV9FUhrdKAYTUUvYB2:22 a=EUspDBNiAAAA:8 a=tWNUsTMbvNwxkxjYQD0A:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX2y5LPJndjvvY +J3BkA9QKT1c4rYAQWsbv1mDwrvEoNN9gpN1FXj7FrcHOAxAkKJAwsL2hckVnYg3VzkMOzKUsgm l90hyer7O7CIOHbOPU0oXu7GkhJ0iGc97ZCsn/QJrqQmYPW5S9rSO1oImgmDXcJlbC75ImK5a8c A2ob7V9u9mYQdp9aPSdJe+H/OWCgRlSLP60VIxikmc0wb9QMX7xKcdxuAGSUJMY1dus3QNW+vga 1hr63nqzh9dnGvRGPsilhDa8gn+bHRZ8esFsV3/DL/cn0bKknNMZRxA/LeBhRK5tMK/hKYA/Mt6 oIBc45LdQJRXfoqsxGtHfidX8yHzjkTNZaRJINn4rP7EtA50rNea/9JY9RE5vjExVto8aiwQFyD 5boG5bSpyGYCKXL1NaZUGAgqbHVee6gdG1nkAs/hhVzgneWwXtXN09gvahtb3pUkjp5y+fGSgE5 tLiLENFgx681kbu/h+Q== X-Proofpoint-ORIG-GUID: YirvVPzLiiTgMkytM-35M3C7kjiBNFIJ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 clxscore=1015 impostorscore=0 priorityscore=1501 phishscore=0 malwarescore=0 adultscore=0 bulkscore=0 suspectscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174781963158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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..9a92efd249a 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -449,8 +449,8 @@ static void arch_cleanup(DumpState *s) } } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) +int s390_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) { info->d_machine =3D EM_S390; info->d_endian =3D ELFDATA2MSB; @@ -469,6 +469,12 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const struct GuestPhysBlockList *guest_phys_blocks) +{ + return s390_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "LINUX" or "CORE" + pad */ diff --git a/target/s390x/cpu-system.c b/target/s390x/cpu-system.c index d963d9e940e..965f5cf29ae 100644 --- a/target/s390x/cpu-system.c +++ b/target/s390x/cpu-system.c @@ -186,6 +186,7 @@ static const struct SysemuCPUOps s390_sysemu_ops =3D { .get_phys_addr_debug =3D s390_cpu_get_phys_addr_debug, .get_crash_info =3D s390_cpu_get_crash_info, .write_elf64_note =3D s390_cpu_write_elf64_note, + .get_dump_info =3D s390_get_dump_info, .legacy_vmsd =3D &vmstate_s390_cpu, }; =20 diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h index da60b2b1fd4..a1f78799159 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); + +int 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 15:41:33 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=1792174594; cv=none; d=zohomail.com; s=zohoarc; b=fU8zWBbx8rrYj0B+m0703/vt+f7ighl2NjaNcguTsz4gb8mK3fahzDm4mBuWEChWlWrvW2J+4w+SHkMpzmm/IS255Mjhy4vsMNe9xcHl3VcUh8kto25lsB0gXT66QeQ4xlDWBGoQvQ4ihW5hAGECUq7+aBuELkh5FXKpn8/Mfts= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174594; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=YdNfohRYOKoiDeBK5n9FUl3Z23aqeUr2Fj3mA3sDNzU=; b=iLlwlkVZwQQ31GTMSk9wB8hBlSyCCbgCPNF8xzL5aL/P9UG8r6d7HCL8F1LogcaxGx1QNQg4mNBuWPImCDtPSuj3ogyaDQnbnJV8lavKcLVak5U1rWbgsmAJ+uM+odbbqLBBqYpdURD+nsT9Q5SdBLBNkswGbXDOirf5wILUMAk= 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 1792174594211707.6231485540304; Fri, 16 Oct 2026 11:16:34 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmT0-0007mJ-Ha; Fri, 16 Oct 2026 14:15:44 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmRz-000797-1b for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:39 -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 1xHmRw-0000XT-8Y for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:38 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69GG3ZmO3260332 for ; Fri, 16 Oct 2026 18:14:35 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 4hbq450gdd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:35 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ab67ff8ec3so216127a91.0 for ; Fri, 16 Oct 2026 11:14:35 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=YdNfohRYOKo iDeBK5n9FUl3Z23aqeUr2Fj3mA3sDNzU=; b=VAaCtYYhc9SFCdS/Be7fxROcEoU KqshllNRyH5/mHPfohvpaYN+fTgw0ysTK/8X26FcCi70wacLSsrTc1VsVd/8qy+Z +ddw+swATHb3goenk/2iOcZq/15+OssOriFVlV4DXYTYqqHZwUiSkmDmrbzh8QUH hAkAcGndJQoX5042noXWz2cUBeoLv+IgeFWWcYie8J8LSLDyzjseSZg5NjI/3h8J gmeJuGHaAek6pZkMeikgWOnukmbdCRLAz13H3wKwBlM0XF2g4LI3msy9xFbDoCp2 q6Xm5BnQ9UV4jhcmtoTUWPx69DkUWppG7rwrRul+0J9+kJwpr5WWRRoHrpw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174474; x=1792779274; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=YdNfohRYOKoiDeBK5n9FUl3Z23aqeUr2Fj3mA3sDNzU=; b=Ana6424GMkfS1Y14TERufGGcjvqVE3uBcOnunzXxYWSo+IODKKWqVy733S0IqbVJdZ 6o4jyt01wfbiDx5JLc6+A17RHWRiFEDkNfcuFFaWBIveJJHSXv4SilIMth6aZA9Obx7R eJw0Agc4sSr7jSa1hx7TQeSI9PTwAhF+OEykH9F9qV/XNJbY+q1XkMUuO7+2pthhaMvN q/pWeapJ1Y5R+4QMsWks6OoHo6ZIcVc0OgZDaznMvcBVvTvYNrAwlSpB8phXJmQVavpe JccPsMBIfmVlMOS1xPCpkKnF2mvqR9SVgtno4JUaLaTL8NY1TZKQhe7xl4bFaD/8UMBU XUJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174474; x=1792779274; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=YdNfohRYOKoiDeBK5n9FUl3Z23aqeUr2Fj3mA3sDNzU=; b=Sfjmxt9QmDr3hg5mRHBpyubeyT5a59M6509ZcilxMwtfxAPLxr9camW3rMdQrBfspc XX5w+cnSKiZMcDp6rZ0KBxZB0KLFnwatwIjGQ32GzgxGTNVAIjGYP5cRxc8jI+QG9RbB AxF7g9JhFlRYSv7Cy8JiHHY15ObzeYI2s4+mc+khxf+3cTfxjy29acB9KvZvUh2A4Tfg tRXgH+xuFx1SLee03ylcgyNx+XlNFlsfMGhqauNCUZDpS8cnBrmzXhEihi3FDKxIb5tT jSOZyASQrp6E9dDcyUy5qBJMFb+oh2TtdvtcEsOigTKD+h8ycv3DIVN9Gcgx1QQTC6WM eXMA== X-Gm-Message-State: AFq9FYJN52ITIPzuBuxfn/3MaIbiHflE4hfjzJsx45kOXMGxWP4DGaw7 3RkhyKjlP/yhJ8Rd6KBV6qyHCnKme7VEvPMNOUXTH+LBr23z/B6AZnHUekcoyv9hJw/lxNbR4tX toEN8OqBLNMOMUufvhtcYjFXQeO/trEFmjwBl3MuglYbiRRYoi7edOtfZUGHdGQD3xg== X-Gm-Gg: AYBFou24tAfnjh7muzVrnqkjf6iDqcSVxPqIajubJF0bx3d4+Hxb8It4nrpkYlB8lOn F1CNwQJns1W4iGugQdUnozEqmZT31Ilflt0yAY/9n4ZEce70t7/xnHiApClFIl9jZTK9CbKwTrf 0Wn8RBeOosKovSFBbkcKpJpg+Gvw2wq94ZZRkH2tWggzqJFnHHIUPEfWPQnsK6EIyDrH0cwa69P CBccEPZ5TBzZInN8GneHQ1cjUH7Smad5SRmqoJ49kg2RjSvfxT0JKfRV62Wwf7Zs6ROH6VBtWCR q8V89tkFU8VRNRGHxyR5VdUXl8TRbfkvwRhblTG1uRq2M/w5LIlw50UD7i85vYU7VjcfD00bOPF 2ApMTVPEOl2RL67GnTzkrSMN3hPCuELaw4SK9bTvwmQWEKIJBUbZCcT6q0Y+n0eY= X-Received: by 2002:a17:90b:582f:b0:3aa:f4af:1e0b with SMTP id 98e67ed59e1d1-3acee98d90emr603844a91.8.1792174474395; Fri, 16 Oct 2026 11:14:34 -0700 (PDT) X-Received: by 2002:a17:90b:582f:b0:3aa:f4af:1e0b with SMTP id 98e67ed59e1d1-3acee98d90emr603813a91.8.1792174473892; Fri, 16 Oct 2026 11:14:33 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 12/23] target/loongarch: implement get_dump_info sysemu op Date: Fri, 16 Oct 2026 11:13:59 -0700 Message-ID: <20261016181410.191743-13-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: 2jfUKDf22_n47qbbBat_Hs9kQUb2-CBm X-Proofpoint-GUID: 2jfUKDf22_n47qbbBat_Hs9kQUb2-CBm X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX85TtSLf3hjSP VVFw/deodNs1giUZ0GNIoaVcX0/6Otx67RgeL2SHP2nCehtz8zOXvY41YIjH0MIQ+/MDnAXDDcR bXF9Rdk579fNYtvwqfA+iaNTDFiwbNBu8gwwlaf3y0pyxer3YImMzXYdJoE0fsHCnhIhQgONf+U 93OOPn5xIyk543zMHmsUNG7HCT954kPFEWkY8b4BJ4an4tVZR8RFRzp4JY/GxjbAO5fQqT3QR5U N6OhGSjoTA77QaZfpnCGSxWC6lkB2xX8e++uZqjTf3+UQJowpt7pp0jOeKR48kbZZiL6RK01lXV VGHOcOaOf518y7Tacxn5VoSU1Oh7Xf+xjuoRm1mkEGGsL+pFB/mqQp4PvXUm5PdBhzkYCx3W3oI g0bfgUrdrZD9wlcxwLMTYJ8XWT0qRu8nniCXospJbOFWr/nhzhGVtGKLFPmw7F1IVmQgekKOVAh Mmwr6VeC9H7pPCOZKOQ== X-Authority-Analysis: v=2.4 cv=e4GT2qp/ c=1 sm=1 tr=0 ts=6ad2698b cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=FnhWYSpmk11jPv6NQAkA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX5U7wJogr9WX1 gWMJAeVKxodpyasrgev2HVoO1u/QpGCYp2kQ6ua8hfWplfgn9hwoSr9uUxN2GN2LLttSipqdnQq JPg9U+5o2obPP3DEm9/KWxVu3NNEeMU= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174594518158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_dump_info symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/loongarch/arch_dump.c | 10 ++++++++-- target/loongarch/cpu.c | 1 + target/loongarch/internals.h | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 9d84faef969..e216e906414 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -142,8 +142,8 @@ int loongarch_cpu_write_elf64_note(WriteCoreDumpFunctio= n f, CPUState *cs, return ret; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) +int loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) { info->d_machine =3D EM_LOONGARCH; info->d_endian =3D ELFDATA2LSB; @@ -152,6 +152,12 @@ int cpu_get_dump_info(ArchDumpInfo *info, return 0; } =20 +int cpu_get_dump_info(ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks) +{ + return loongarch_get_dump_info(first_cpu, info, guest_phys_blocks); +} + ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { size_t note_size =3D 0; diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 54c26998979..65772f30947 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -841,6 +841,7 @@ static void loongarch_cpu_dump_state(CPUState *cs, FILE= *f, int flags) static const struct SysemuCPUOps loongarch_sysemu_ops =3D { .has_work =3D loongarch_cpu_has_work, .write_elf64_note =3D loongarch_cpu_write_elf64_note, + .get_dump_info =3D loongarch_get_dump_info, .get_phys_addr_debug =3D loongarch_cpu_get_phys_addr_debug, }; =20 diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h index ff956823fd7..83220f32aaf 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 +int loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, + const GuestPhysBlockList *guest_phys_blocks); + #endif --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174548; cv=none; d=zohomail.com; s=zohoarc; b=baWZYhF9h+kB7zNhz98vSLVDVYkDx4heQOF3SxCYiy4vx8gZ/wDp+fggjFIlZqILyyOX8HQF9u3am1VIFvsvr5rMEJROLbUuRMuwExecmE/QaL9P1RipMZ+TK+Vdr5aefCxdQANNtsL1AIkzELS7hQ8PSvwVNMmsDYu/LyhCsBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174548; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=RoKpM541UveahOApnUOLTMixK7bOKy+huXm/Ph8EjaI=; b=l4vbY0H7lKH1YjtHZGgWNAVaCK/WY1JY86ll+PhLSZqJnMZq6b1iB+yiPaSCIviyYdiqHtwJeK5Ae4dmc6kn7A6Qa/mB4puaNmaPUd9/H7h8Zx1dnxFJx6qR4Hl7q5d2kRM1ZS/LUinpzVwtV0tQmo1aIgrfiq/AXR86IyMbWJc= 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 1792174548193142.53427086326758; Fri, 16 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 1xHmSc-0007Ji-L8; Fri, 16 Oct 2026 14:15:29 -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 1xHmRz-000799-FC for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:39 -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 1xHmRx-0000Xd-LH for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:39 -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 69GE5iDw996806 for ; Fri, 16 Oct 2026 18:14:36 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 4hbcjtb5pr-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:36 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-39de4e72b33so286832a91.2 for ; Fri, 16 Oct 2026 11:14:36 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=RoKpM541Uve ahOApnUOLTMixK7bOKy+huXm/Ph8EjaI=; b=VaH2xG7swfCE9wCDlKzThAdDaEb poDLyAsLk6nNMj6fA8LAwyA4d7JqM6f/SHOjMByNfTtCRSaGOdHUAqdJ3gE/7J4b eWJ9Jo5zgxIx4WX4BM0fK3Orq54KCzwWshv8p3nRtfIFWawhw627dspo02ygYuDL 63614Y9w1JpAHWO9mJm3Gzmjg6PdQibT0t1q/gDtQg/lLwZLF5gU2KzcCxhIdY8T qI2uvHjOGzIomLTE8Ml1Yd9ilwly8NbJVz2ffS64U+0IGaNlMj4SSeqa+tj2NkN1 MmieAjgickXJ+9H1Lnb3thgGD0fBqSiYruxd6YgoQEmA6pqN8n77TUZVHAQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174475; x=1792779275; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=RoKpM541UveahOApnUOLTMixK7bOKy+huXm/Ph8EjaI=; b=LehtbD6CnuR5l02DIYsOtP8sZ0b3utDe9UePBF9v0qVTXAu2dwDsv8mhpAEsWiF0G9 LaysW4E9PbocSZoVgrvBp6JT8aV6FeCPOfLxW+BYtys/Vhbo+3ucEW9R6ZHXfLTEcmgk qZa6kTm7WvYqiwqrCApsVQBbJruzuSl00+Hxgh2Fwd7a87vrw2nrjCmuBvwZa/vUBkdy 8SCFlV5BYgox2LnN6qC7X6ArIcFOxDXHkWhLbdxVWHqPQFWBoGBJiD1rRsMeZ+z0WLyQ 4wrXewD2AguYabOBDNF8G7BWPocZowI0OPdmyW7C/7psftIGgl4t8g1r+YxWWA2GxOT0 X3AA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174475; x=1792779275; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=RoKpM541UveahOApnUOLTMixK7bOKy+huXm/Ph8EjaI=; b=GKAuFlbeoVApydYvmyNNDxqoSE7BI+3GJm8nRpvRiu9vMNCwhQpyl4R2Drck43bdox AbPBUj0ssaBTqID9wrhEnOsI9uaeSdg6uJqJ2tj6KAUHWtWPtS8EJ/F2pLaG1Kggoyuw ejhygbFQ/Vg2i8/SxdT/qX8atKlBVSl71ktZ4u4NRxOEmoxVg+V27rTyVBsN/6Bi0g0g D60NHu1cG9qlQxwJPOg+BSZD0SocKRoX9JyveIOt4PsrJkphxfVnKL6iOaXpA1k5pSkv 09QRmBCuP/6w7CLsq9XMmSOf5MLi8+5z+adsaBFADF+HGXrUVwWa3mmVitqetGzOASJE sXGQ== X-Gm-Message-State: AFq9FYIHM8zT1eTpU9uRkpi9YnXJlM/r1OE4os2Ttm4GBkrWifsCKg5r UZT1EWkpq+SdNpCEsnGHwFTEdg88uKB8LHVVDqyUscBDPbhadtYMKWwcIwFQ2GmXwEKvkacsq+/ OmEu3/SyqRbpG666aBF8cUi/WFp8nfwaczub++GVSaDfu5bGmToqDLtyebjbWcgy1gQ== X-Gm-Gg: AYBFou2vXC1BcyALwCuIys0pc1QHK3gPx3NIbi6vMkYzmxhJxbjlG9uy45XTPpOgatA YmQ410uKfG5+Up0dalxtJ+WozFfHZyE3WK5j4qiBupRUVosmyOsC9EdjrXklPnhvtkbZweODTVM ncF6JLBONGlIluwku6ztDow0vCuFg6ugOg2PhLK/+UmXCZCrUo0YMrZzQwEVka7WELjtQePkX70 z2REYP2Ao+PjIn7a6Q//adfhp6/OajsxG+cEmwv/J4gIy6YUZJIvE0siiLGUCFDawTg8FtCpJIk XsJouDvEABRtD6UW9MZxBu3jSaZuGV1GMvRLga6k4eoVW6dtk62p6tbXHxG65W7goa+4NUG00em mvXUBqoBad3ZHWtTLq8nC+OPs70qxCOZ7JjI29blgWai7nLHSpR2YJGN3jP4C1/Y= X-Received: by 2002:a17:90b:28c7:b0:3ac:945c:7f69 with SMTP id 98e67ed59e1d1-3acef15c97cmr573899a91.66.1792174475470; Fri, 16 Oct 2026 11:14:35 -0700 (PDT) X-Received: by 2002:a17:90b:28c7:b0:3ac:945c:7f69 with SMTP id 98e67ed59e1d1-3acef15c97cmr573881a91.66.1792174474983; Fri, 16 Oct 2026 11:14:34 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 13/23] dump: use get_dump_info sysemu op Date: Fri, 16 Oct 2026 11:14:00 -0700 Message-ID: <20261016181410.191743-14-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX9Ar+JErvVzjz q7lwTbem3YGAbzVqdRIYYU6g1WknfXKqgUSM6paRfwDNAhyYz1okgM3lKx7iZjE9zNR37mgBnmr htjtmMCk1CtBdXJ0LXt9hpXiP8RADYs52lvQRDpZO5OROZForbarV2OByfrND09f3qkdUy1iZ6l aQCKRpQofZ854EV9QFB/Ch/j9MWbHE+vD3VMwPrfv5XIQ4VbSYjXHBj+ryOvQHrM3bku+tJ74iF Ju49Gl3JROYN9/LdH+gDbkJgMnY+eUOfSyuwuAoGe3ICG7Si3HlbTa4f0IMeeFiB09CWyOXHMMs siacaM5YJScj2Kx8tv7L+pP2blshiifdpS5UvdXEDpjIOL/raVeROc3cZZ3k74uNF5BVh8SaSFk KgRIebLpueSo7U/yJciMmokh9u5pChM0b4j18mQhH3f3m+mcg4D1vIfY1tYnA48UVhrlGVMLnIZ rwchQZOP3gxQdVmd81A== X-Proofpoint-ORIG-GUID: Tmm61DfCiMCP7sX6tzY061NHhn3DqnBz X-Proofpoint-GUID: Tmm61DfCiMCP7sX6tzY061NHhn3DqnBz X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX4SbBZZWxmoJt 5I3SGyizJ9yKYhgFuGGtswmDyccPUEo+wc2fnjK7ooRLlVfe0xoRRRjZEZa/wEneoHrxK54PJlL r0GRNUo+qBPFZjgmdUqSJP/GBMYOLk0= X-Authority-Analysis: v=2.4 cv=VpS2kO2n c=1 sm=1 tr=0 ts=6ad2698c cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=VElpqANncUZJAANGsKUA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 bulkscore=0 adultscore=0 phishscore=0 clxscore=1015 malwarescore=0 lowpriorityscore=0 priorityscore=1501 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174549720158500 Content-Type: text/plain; charset="utf-8" Now that all targets implement this interface, we can replace the cpu_get_dump_info() call with the new interface. We 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: Anton Johansson Signed-off-by: Pierrick Bouvier --- dump/dump.c | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index 0ecff682dd4..e0a7dfd5878 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -32,6 +32,7 @@ #include "migration/blocker.h" #include "migration/misc.h" #include "hw/core/cpu.h" +#include "hw/core/sysemu-cpu-ops.h" #include "win_dump.h" #include "qemu/range.h" =20 @@ -1793,7 +1794,6 @@ static void dump_init(DumpState *s, int fd, bool has_= format, VMCoreInfoState *vmci =3D vmcoreinfo_find(); CPUState *cpu; int nr_cpus; - int ret; =20 if (target_heterogeneous()) { error_setg(errp, @@ -1858,12 +1858,16 @@ static void dump_init(DumpState *s, int fd, bool ha= s_format, goto cleanup; } =20 - /* get dump info: endian, class and architecture. - * If the target architecture is not supported, cpu_get_dump_info() wi= ll - * return -1. + /* + * get dump info: endian, class and architecture. + * If the cpu does not support dumping this information, get_dump_info + * returns -1. */ - ret =3D cpu_get_dump_info(&s->dump_info, &s->guest_phys_blocks); - if (ret < 0) { + const SysemuCPUOps *sysemu_ops =3D + first_cpu ? CPU_GET_CLASS(first_cpu)->sysemu_ops : NULL; + if (!sysemu_ops || !sysemu_ops->get_dump_info || + sysemu_ops->get_dump_info(first_cpu, &s->dump_info, + &s->guest_phys_blocks) < 0) { error_setg(errp, "dumping guest memory is not supported on this target"); goto cleanup; --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174779; cv=none; d=zohomail.com; s=zohoarc; b=X06KBOfi0ZbaTlNoSWVxTZ497dpb3BYNnpY6/Dj1g3ycnKdtHnwoVj0/fsFctooFm6kQyKCcFPGP3PFuc4AKtNp2O2weDPGSpPunaRJ0qkkdUyaOelMxU3FTv9Diz7H8fsUZ9ipWgkrCDGyNdzzvxyoAAraJdkWNzGh6tSMgk7Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174779; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=woThypxyPlzt0BPJCfIotk7v+p9yZubu9GTRjnBpjAs=; b=Dl20k/eJsFNtaRAlOiwvj5P5YNlch3FUulcXDTMbL2ScqJWHztPCEg63/aAV3eHKJjao9XlflhPMXzgOJgyY5whCS4NKeVrNcLuUy+euZdZMkBIBdZ8Bd7PMUHs4lUs3oVhyFyySNotFYS6+HNs5/esfZULV8pnTYZK5ITaTyV8= 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 1792174779065821.5430157358253; Fri, 16 Oct 2026 11:19:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmTn-0000sW-FC; Fri, 16 Oct 2026 14:16:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmS7-0007BE-Jd for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:51 -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 1xHmS3-0000Yy-NX for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:45 -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 69GI4eXN4023134 for ; Fri, 16 Oct 2026 18:14:42 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 4hbrvwg16w-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:37 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ac7a4ba546so1008086a91.0 for ; Fri, 16 Oct 2026 11:14:37 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=woThypxyPlz t0BPJCfIotk7v+p9yZubu9GTRjnBpjAs=; b=LJEzaGgppZ2Jtk6j5RG6VbpuQco i9tVlwTpjHgXjCH1RBb0Rp+e/YdiG43IaNTX5GNxRir0knCloel/WQ6Bmttf23CB WvksWxeglk7mig2y59JwnTtjco7muI2Ontt/bSee10SHgoqX2zIppdaqUJUg1i9L H6cptKbgRAGriP6iLY6da9ONPgIx4EdNkIeZMkojngrW1JD9GicwEUvqfljSn7zK R0IGg3x+k6F41cVyZs3LPH43/d8mHd2iU9RZzTBPOVAM1CnlJXTR/AmUuvnoFTkz IjuFTmBB9peZbmpBNlL3GQuK/qWumQ2Jclt2OOgxEGvvjoJkDDaKjrxcbAA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174477; x=1792779277; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=woThypxyPlzt0BPJCfIotk7v+p9yZubu9GTRjnBpjAs=; b=SedIDcAtCRTiGByw3Sv2CMgCMrEZ/p9oCvmOhrjlYNHwYR5S5W02qwFSGNLTI4U1kj NyJLR1OQqdz8hzVTJT4GErwfkzJvzS3279JQIonW+Wagt5Sb93+w2/9mGllWCbUoYqQe OZBjmL8TX2P2Dycl8/ec8e5ozrHeBDZPvfwr4gEaL7K7HqExOtACMVf/u7/5rzEX93lm 9H3VDUBpvS1iGSKceGScuWa4Q2G9NzU1DT3wLQhcP1SlM0K6oHxCmwdUgpDE8He/QqBu x6T3gtVXBTbaE8EsHFTqKkdKzvyWXYVbqKDsI/e8utlh04hn83AzPRdQAJ0NYLGR3vG7 qUOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174477; x=1792779277; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=woThypxyPlzt0BPJCfIotk7v+p9yZubu9GTRjnBpjAs=; b=nCL6glztTlnfxV9+BDeyt2mmiwmtokTLl/UBt70Kyqsu59LFIjDK4fotRdMSvQb/US 9pgEUW+NPQ0ZxJ5Zg8lQ/ociWVNZhSFYG+qIF9j0gczuwA/kGNJaoAaVJpAys72NmZ9D +w3qk/SJpw3DXxVOTASRK8euFS9LVSjULcyNGS5WLTg47rAz73Yf6+OVTuF8+DHd6zbO DziKJAbYZ9T23e9uYdZ7xWVf2yEalu5WtGgNjjWKxf5s53Z2JWGsF04x/nrASAStkrRK p9p8g+wcBAlnJ6HGKM02xYLVD85X0IkQpdmYMgSkuUywRpEcl1pNBDrk7cLxR/3hgrJE z/HQ== X-Gm-Message-State: AFq9FYLXYpFcD7NGWhECPeKpsZhsAwfNMIIxVy+zS0hfQKBeLEek9DBH 9Ujj3GsrH0gSywPkWDuucMWFqf8Jg2pFciANwUCbOlASlA3r5zSpA2Eii0eR2XBWExH794qR1Ug vvbU6/jo3BqcYeAR/tKb5HjkGrs0g1KzDE3GNOhiRW9fGwoZOdQxkWkP0xN4GXVTM+Q== X-Gm-Gg: AYBFou364UPpAKxABn3cUuccvke8LfkxF+Kp9DmRrp36tvsUCcROx5vXWKUFrI7Y26D QoFcKfiBGeah9vFrhkJUYw3EsQ+siWuJ8kacgynqUM5SOgqZaB6X3Z+x2R5YPe1bFAxtVK9fx6i HVvK5KmGcMFwnT+myZfd8znzWa8pe5wcYCuQlqy3jb2QKL9GO3MRXsRR+nvnu9/HNRDeemQ8aq4 ytSh3MHf2e31xyo1CMzkefv80Id98nfcx92DHo8tDB32Oiw2zADc6fEtoKBP+zzfkC2GvDHDY62 NlzHw3xOJfE0o22xHuWgtAQ3+1epVyw9PjDCnp1bAASI7R5Z5z9ViHo3jxd9vw2knahBdsIuy8L LWEcyIVTDiO5WlsxRdft9AOoZ9N3m4KlHYQ3g7h/mOscu1mzW8fiTUjZUYkd4hcQ= X-Received: by 2002:a17:90b:560d:b0:3a0:bf71:eccf with SMTP id 98e67ed59e1d1-3aceefbde01mr371741a91.14.1792174477215; Fri, 16 Oct 2026 11:14:37 -0700 (PDT) X-Received: by 2002:a17:90b:560d:b0:3a0:bf71:eccf with SMTP id 98e67ed59e1d1-3aceefbde01mr371724a91.14.1792174476646; Fri, 16 Oct 2026 11:14:36 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 14/23] dump: remove cpu_get_dump_info Date: Fri, 16 Oct 2026 11:14:01 -0700 Message-ID: <20261016181410.191743-15-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: -XnPEj0eURlZPmB-y1utzYmRUtt0W1xO X-Authority-Analysis: v=2.4 cv=COa/zhrD c=1 sm=1 tr=0 ts=6ad2698d cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=5zY7TNBH-1z3wV7SeYEA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-GUID: -XnPEj0eURlZPmB-y1utzYmRUtt0W1xO X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MSBTYWx0ZWRfX6BICP1AFXSJd o03ca7+9gv85F+G9N6vzdxFc4oGu6kC5/xIyZBelCksmcbuBaOEKakVwhZhkgBpLSfeukGBNyuY fmKzQmuVrNc9VmOWJC3RJFzTP1aN6Z71d7TaEmrevr+MVbw+DmwNkqq4GKNZg/8GiWM3NiXFJ33 HLlqF9pqdofHp6oFZajG9h/+bExmSiFhaUNpqtFFD97XKCwGzkUmTHYWPLxolkQyPVB8gG1dLNE tAR6UVTf1bEcyKhYtdSvdp9AbugZ8pFfd6u2cgkOr8hZv0TumBu17waAoYOG+J4G9WiBw63z8ri 0LtjfP17GRU/dEw+pNYnM6Mz7OJain301CdqGvE5kK2i126YM9iFN5JjwioNDFxvZhdIvKzbu1/ byaYhiZCsAnHFaTKvsjb1dVBNju4FvIUs5LSfjT7bt5SfPU3BMAaXn3Dt0JNt9oFAMuD386hkLf wStex0v7D8yWuxAceaA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MSBTYWx0ZWRfX7z3zApOkliUy DWBfqKxvTt6jBl9/JwjqpLAqedAox0LApZ4g3zjRg2mNe2BFsKbkCW0Dstg066U7/uCP3W/SFyd PBM9XGiNv7p7Yx8sIDKPrFmYYRHJWE8= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 malwarescore=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160071 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: 1792174779993158500 Content-Type: text/plain; charset="utf-8" Now that both cpu and the dump implementation use the SysemuCPUOps interface, we can remove cpu_get_dump_info, including its stub. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- include/system/dump-arch.h | 3 --- stubs/dump.c | 6 ------ target/arm/arch_dump.c | 10 ---------- target/i386/arch_dump.c | 10 ---------- target/loongarch/arch_dump.c | 6 ------ target/ppc/arch_dump.c | 10 ---------- target/riscv/arch_dump.c | 10 ---------- target/s390x/arch_dump.c | 6 ------ 8 files changed, 61 deletions(-) diff --git a/include/system/dump-arch.h b/include/system/dump-arch.h index 743916e46ca..b89e495661f 100644 --- a/include/system/dump-arch.h +++ b/include/system/dump-arch.h @@ -27,9 +27,6 @@ typedef struct ArchDumpInfo { void (*arch_cleanup_fn)(DumpState *s); } ArchDumpInfo; =20 -struct GuestPhysBlockList; /* memory_mapping.h */ -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks); ssize_t cpu_get_note_size(int class, int machine, int nr_cpus); =20 #endif diff --git a/stubs/dump.c b/stubs/dump.c index df7897b72b1..2ce3c5e274d 100644 --- a/stubs/dump.c +++ b/stubs/dump.c @@ -14,12 +14,6 @@ #include "qemu/osdep.h" #include "system/dump-arch.h" =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) -{ - return -1; -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { return -1; diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 98eecf3d26d..181691b81c6 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -432,16 +432,6 @@ int arm_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - return arm_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { ARMCPU *cpu =3D ARM_CPU(first_cpu); diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index d5016c198cb..004a639030e 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -430,16 +430,6 @@ int x86_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - return x86_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 5; /* "CORE" or "QEMU" */ diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index e216e906414..5a0e1742242 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -152,12 +152,6 @@ int loongarch_get_dump_info(const CPUState *cs, ArchDu= mpInfo *info, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - return loongarch_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { size_t note_size =3D 0; diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index 7cb97082926..c70c2d0b125 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -252,16 +252,6 @@ int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - return ppc_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "CORE" or "QEMU" rounded */ diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index 6562c32cfca..13aaa87202b 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -182,16 +182,6 @@ int riscv_get_dump_info(const CPUState *cs, ArchDumpIn= fo *info, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const GuestPhysBlockList *guest_phys_blocks) -{ - if (first_cpu =3D=3D NULL) { - return -1; - } - - return riscv_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { size_t note_size; diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 9a92efd249a..4301cf400e4 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -469,12 +469,6 @@ int s390_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, return 0; } =20 -int cpu_get_dump_info(ArchDumpInfo *info, - const struct GuestPhysBlockList *guest_phys_blocks) -{ - return s390_get_dump_info(first_cpu, info, guest_phys_blocks); -} - ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) { int name_size =3D 8; /* "LINUX" or "CORE" + pad */ --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174599; cv=none; d=zohomail.com; s=zohoarc; b=GTiXtI/6AdwShFHB9e3YesBZLp7jasOHRtU8bppPkfmz3OOa9UuOcuw23UJphtXhvwGwAFE2sCtagWJ5MlvTe5YWduoYP7iH2x1xMKfhz/otLRbM4rCG7+rDCVMbd2RwKPXz2zlqfxDTV/Re6MgWnDG3kyJ5NXhqrTBahl5Wghw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174599; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=JHsIfNJ70NnZremj5UT8PMXbr6sJrxW9Tt6K3NlpEOU=; b=BNQpVOWOUCzZQ7EoDiI5TgPLplAMuufCqxmnb4qD1VDewabGbQFu8mhdfPYTwD3Pbxa7UfyLRlDA/cxWYJ1lVUla72LWFnVSxNa2czOkm9c8MqYMp5NFPI4zWXGudGrhIbM9UwnpaYaja4CDAHaA+WwA0wiftEsVfIRrun+6Gw4= 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 17921745991367.11767712702931; Fri, 16 Oct 2026 11:16:39 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmTH-0008H0-1m; Fri, 16 Oct 2026 14:15:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmS2-00079t-Aw for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:43 -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 1xHmS0-0000YB-N9 for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:42 -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 69GE5ji51910963 for ; Fri, 16 Oct 2026 18:14:39 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 4hbjmf9mx3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:39 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-38f97b3f853so245867a91.3 for ; Fri, 16 Oct 2026 11:14:39 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=JHsIfNJ70Nn Zremj5UT8PMXbr6sJrxW9Tt6K3NlpEOU=; b=A+gY04n+xx+YCo+Qt3JX6fiJTk1 30LiDCuhzmTXuLjioHd/8T11EwAZCWcNgHZE3tI70WVRB/L9asrrqbmoLxlgACeo JNuC0nSo0PUlonv1vZe6nM35BVJDi0Psk7rTGbGIMd1Chu+lyzZP42eRUa3MpBXa kviP+wXjO4uFIazPw/TrNMEjOdPWPE7obvi/bVNDQCOtcUSgEjD6FRxZxOAQRDeQ LsuaEVHs2UR3muCo9lTcxsmQb+/wIc13Wk1OfXXRnItw4uaoREZlD/9+aRGRpHNx UT3t8Ei/+8u09fvrJDsatTfTfPE63Ev5Z90ke7ldv4+xcukMMjHiXe5PiXQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174479; x=1792779279; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=JHsIfNJ70NnZremj5UT8PMXbr6sJrxW9Tt6K3NlpEOU=; b=AMRymsxzUfPTaj3nbhuceiZ6nT+jmNsKyR/JSw51RBrdW09baZvt65TJFqwG/0loNx Nh/HtpFutS3GL2IYT2YBoi99zmBgYO2ofEyqHzQzS3aQh6UBFi3RyN/sohgGQq7aZvKw zmqtLWZw7L3XXIDui2iMOMhQedwZu2pnNNsEckCvcaw92jBKzyXc/cnp0fAaGlh//L0y HBmpI+OTBEYxuxRdxsqVdfLN/Bz7LsmW1U4JVUBYCkhDiE3Xt32CJ77T2ErqfM/s0FEM Pj74P6OW6znFWQHOVtS1LSoj6BBjRgesNxM2wZ2h3hvLEPmMSWiWL8A4ZyZkbrrG5WOw Vqmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174479; x=1792779279; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=JHsIfNJ70NnZremj5UT8PMXbr6sJrxW9Tt6K3NlpEOU=; b=yMiMfoOaFD14lbftw9MVOr7ZBhgTI0IxtVEjhyMrBum1kQANJCMD8027o8slFvshUg G+qAfz6dRvnZ/y1vmdRpn8PI+MwphFgBjvc++2vu6ZnCkk11NY0zR7mpeaOZuMmoQBAq XfvI1ZQZbdKz7im3xPEXLnUJGXZHlhbgCXjI5W7cwSWjW5zSj4sViBwrQp36B2C5nPmw L2PIJUjshH1UiPw3Mcs5Z+jHKbGuLwQiLRQchOOBFRYCjJrb46kKIhVw3ZiZqxpoQq/V mlDhLwEmSSdKNT84fY4tb7401OSDl6/PtaMeiUx3YOHfveUNFDXZUwQiMt1SYMnlIBqn tnyw== X-Gm-Message-State: AFq9FYK2u5dPwfInsXyNuVCjGnbS8JbWw4Hw+5tKTUvnKCcx8AtC7aMR tjiP2VDB7k6Yb91Xl8c6cKTOqfJfjRZWZ60vXoNHExsDAMmNiVNxqP3tqDSkiMmNReC0II9qNFQ cJQMoykoPjsuhcr8oJZTHMnV5uB/W8oHyo8wI514Ia7zZYtk8lImD5HQbzpJ16oQPKQ== X-Gm-Gg: AYBFou17hS7/rE79xrIMwe66eDFiM/E51MOrwy9PHsWRNNky2Idr5POm0julZk9+2VS Bv3rAqKwCSlkACLcPlXvRk+Xq0rOpxCpAtWwxkT3xh+OkaM44BvGwscF7SMb4wQZhC3PtFDjfr9 sES2NuU0EZIJGoXXkS7rOklnTfwlV1ptHNu2zYtG97/T4kS7g7G5O32C4ZfRsjkrJmsnr6qzUy5 qg9uTWj3Q6Aa4F/V9ZQpeAWBcW5lcmpB7mhShxkMdJ5C5WgZ6FV22kAtZkQWdjXgYI80mHOsJgC eLGdXn9v3zvayWC97t+O+q7F1qxuGNEcWs973uBwurk9n5u7Vdeu59j8PbYH4Z7O5RoDgNuk0mk xIApwEDZi5yOt5JAmAGKM8JAWBwfCTYKQlzEgxMvQi8KJItkTzcNNYK3aI1hziFc= X-Received: by 2002:a17:90b:3d4d:b0:3a8:5cab:1009 with SMTP id 98e67ed59e1d1-3aceefb0da8mr510721a91.46.1792174478544; Fri, 16 Oct 2026 11:14:38 -0700 (PDT) X-Received: by 2002:a17:90b:3d4d:b0:3a8:5cab:1009 with SMTP id 98e67ed59e1d1-3aceefb0da8mr510693a91.46.1792174478022; Fri, 16 Oct 2026 11:14:38 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 15/23] hw/core/sysemu-cpu-ops: add get_note_size Date: Fri, 16 Oct 2026 11:14:02 -0700 Message-ID: <20261016181410.191743-16-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: A70rg0aqAPjzA56x_8L8LkjbV-Pf0elC X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXx51lDFrxmhxh CtDX4tBlx8xXOy5K9UV7JYgkkaelwNXcj7CG6x6j6DmGVxk9Ir+uSq9xX3qshDrd7D/cKowh/AK KDZvo/TYc72ronYE11frI1KP/Wa6cRg= X-Authority-Analysis: v=2.4 cv=SrAFe/O0 c=1 sm=1 tr=0 ts=6ad2698f cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=s0xbLSvG6KTaNPbiVawA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-ORIG-GUID: A70rg0aqAPjzA56x_8L8LkjbV-Pf0elC X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX0BPUHasVlcwK yR8M47ykNSS03tNVGOfRsdPl3oCKoiKeAsnlP5nS7J1k3caAmXl0Rqk+FD19M7+eNeAAhJxyiUX Oqufn+d/C4aliiM++kY/uC8cVnIa2jgB/4PMN8VoYLCXDHauCi7k+j7nhpOsERMAXzxxvevCcOw EpwdThxuiyXqxTd6uR5gJXlKAAvrh5AKTQyKYvvpGVTLfZwk0ctd5KR6TORhAFi0drAcauHf+O4 ljITbDnFkXVAqQA21ndnP5tEl+jX99WGJ5NMIXiNkBpw2XZdx1iy314XE1xU8ZOrXDUG1ouQWr2 f/F76YKKK5hVVwK7zWW07k4splkJjcuP6acuBcuwsLHF2VqHCsjSp1bKJE/J1SYbqJidoSXoYA8 pzyUrtg2wZznBQSairHSOpyi4hHIrp4NGxf4sAk9i+gPd6cvAuQDMAMrxNuqyHdq3Xv3Pk4cTSR 5QdYSeb9nzqkklDZBUQ== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174600556158500 Content-Type: text/plain; charset="utf-8" This allows a specific cpu to report the size of the ELF notes it needs to dump its state, alongside get_dump_info. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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 2c7d0b94767..1ad482f9685 100644 --- a/include/hw/core/sysemu-cpu-ops.h +++ b/include/hw/core/sysemu-cpu-ops.h @@ -100,6 +100,13 @@ typedef struct SysemuCPUOps { */ int (*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. + */ + ssize_t (*get_note_size)(const CPUState *cpu, int class, int machine, + int nr_cpus); /** * @internal_is_big_endian: Callback to return %true if a CPU which su= pports * runtime configurable endianness is currently big-endian. --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174771; cv=none; d=zohomail.com; s=zohoarc; b=hAEpcsy9svYYp5smdnuLGkm05inGB8F9Z2EucByOj5Fq+sUzSnS/hQ0G43gbe4sPLvo0g2T1tXHXnaqsXD3PNCEWR2SHzLfABb3Xcxbgy+8pVO2gcWyjXHI0ifzJgNIy/Z8w5gBpRTyfY860KsN9GYPVgDev86dvtgXrmoo/4uA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174771; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Rr+mH5OKHubWSF+q04SoQLr92hoSziIdeTaoq4ksUlo=; b=XhI2/U8pwjIvt1do9gbJg5Ku6IV1RDicGatTLAxgn6uZHXgo/aDDwfzn+n9KVyvOcnJNdJDnsl0csDbfmyAWecO4a62zk0fBqyqWTS603ht+zHaMALsvqo+4ncRiCVxOfGbYw8iUrtDJKz0chcemJl5Z0lyJ4S0J14Hdxun2Y/I= 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 1792174771941141.66643436002187; Fri, 16 Oct 2026 11:19:31 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmTl-0000mY-3r; Fri, 16 Oct 2026 14:16:29 -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 1xHmS3-00079v-Bt for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:43 -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 1xHmS1-0000YP-MO for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:43 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 69GG3YXi3260302 for ; Fri, 16 Oct 2026 18:14:40 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 4hbq450gdv-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:40 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-3ac450b74b0so303076a91.0 for ; Fri, 16 Oct 2026 11:14:40 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=Rr+mH5OKHub WSF+q04SoQLr92hoSziIdeTaoq4ksUlo=; b=p4sUeZiMa4jFWGS0H3VLvDRDhjR CY0WIQbexzuJHwrqxnHo2dWF0NoUvwty6q6RJ6DLpEfmNmdYiJRR2jmDOfGNaAFP ypPVjhzzpjsNLn2t9y9w+Kb6hJvn8WHYz57NaWqY5P4F7zPt4K/DebDDYVJbBBxH wub/BVm+V1zFgq55T1JDMTBx+3gIwjumsu1U/h6omMaVi1vzHfTqqOSmq9AlN1WI By9Y12MEfYJUhqGVhGvVrGvR/rORfprt5EQMGShqfhD4G8hTe1+44pvUB5+3yNZN f4zl0IugImKAhzV+iJzNp22PduXPB/RxiXmnLSbFFkuYR9dHsjJFf2YYfoA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174480; x=1792779280; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Rr+mH5OKHubWSF+q04SoQLr92hoSziIdeTaoq4ksUlo=; b=KKuRt6B6Hw8FHQkG4PwpIZNCSpCNMabj06FfLIdSBXD8/gwDSqzA9JHH5c0DOu4Jxk D2KX+dArSxpsiCRDLnk6hBxmODL7cnDdzsgKaLf41ZvQjih1aN9pjQUTPbBtq+gDkk4c +Lw++ikXIC/O6TztzBM2ukEqY3B2zlddBMWeG2nP6r6pkuurKk54b8oGsbfc6k/tTapz IfD58wqMJ6+UwK1p6UoZFGc2RykXAy6OnJTFtAPukQgLbIhI+Zb7tCnSeuDC8J501uz3 CZK0oME/cb9nsip4AjzECKGvJTKvxhuHXNi2EIgyQPnaTZl1ZHu0aeNsGK1YAdK31MWW shDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174480; x=1792779280; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Rr+mH5OKHubWSF+q04SoQLr92hoSziIdeTaoq4ksUlo=; b=R3heP9e81SntNq2lf+cEi9fYuiOJbjyf8vA+Tx3GGOlzViYiMPnoWa5lZY3BVyxGyR Pp8yi7o2obTEC4OgZidx+/C9cWGLoCUiuHG7HcqhMXbbmuj22jwY8f9KGbKEhnTvazs4 2ycLf2WA8y9Gd+VhbDYrUG/nV+Or0jSeaOSrbxgIY5PjQ4txw+62aMkeFcJwAcg94EDB 6H7x32U+DavlLs+lLXqI+EDwPjrsFkPU0yN38i+kMxk06JlrLpXfhyn3Qh9gOWwRzIVW 2g5x5qNL3kiatO+T6DfAgaJ7+kravoJiXp4KjFTk4ESQsBGE5DHZiLzY4aGdpEWCCH7z Lotg== X-Gm-Message-State: AFq9FYJztpFNyOmnfdghwv+hty/15bTVL96SN+4xN2ncFTQ+bP+bDECl UXrJSuZ6XV+uzUVg8ULNCJ6VeapJSVGCqQwjehXxFzlftoCnbCHCh0gP+DLXeEjSjDE2Y/95xcu 4/tEvYUO666D8PcFoN25lxf5Fn9vRxQsmSJwOqN+6PqyZWBV67wEymrVwKEoI2xuPWg== X-Gm-Gg: AYBFou3QRro2A13Dr9hbjmPWQt9p5FdSu8YbvqRj0VztqFd6FpZChHQDIlKawM0z5dR +MABQXNVwe5YRl36ozk+ZXfZdvDUVImhI37D89JDOSEL9nHwk5lL2aJfgYzZVbI6/aqVvZde7mN gV2xyYKhQJpdlsNRDX2LGrQISrbBfd5dSu+v4zWUuYkr3lBpQW4mp/DqFKHqje9maPwG6lDt3gV cYFb0xuwDATp+xwkmyzHTGXYPrBFhgi03dZbA19aP1QHtEVWawVWupaSO/EugwCaUWEnUHH7A4j TMvuz8jHUtfnKOg37FrPJeBUbhmCap6AJVLbO+fDAClRZxhv9twwOBh2WJD/i1zBBQSLuQ2p86q 36Qlkkw8tjGbXWwtOUE990uM74AyCWmCnj4ZDtQAhJ2zM9OY1zY1D+c0MeeVLg1A= X-Received: by 2002:a17:90b:1c88:b0:3ac:17c:6e8a with SMTP id 98e67ed59e1d1-3acef4fec74mr531635a91.51.1792174479754; Fri, 16 Oct 2026 11:14:39 -0700 (PDT) X-Received: by 2002:a17:90b:1c88:b0:3ac:17c:6e8a with SMTP id 98e67ed59e1d1-3acef4fec74mr531621a91.51.1792174479284; Fri, 16 Oct 2026 11:14:39 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 16/23] target/arm: implement get_note_size sysemu op Date: Fri, 16 Oct 2026 11:14:03 -0700 Message-ID: <20261016181410.191743-17-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: S7rjNA9VWJzTLHwuXg2gFiejWwFXA1qu X-Proofpoint-GUID: S7rjNA9VWJzTLHwuXg2gFiejWwFXA1qu X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX92W5zNE8MzxY QY3qaAyqWpWggLuYQpLvaXTfpQ3YddwJIPOuYErbcaXEmyRcjEtefjhcWEAwbOYPjIac8aRIC95 meK01exmH4Kf9DE+wIFlZTkMUU6Vo66pflO2AHAzInLsLhs9lF2RvgzQ9gS/S8Gq4mDWMJDb238 5+/o3nXfxsggo7wkAetntpVG7cUgUrl16Q8Oy5X/QdEhlxOEJL9SpHArip2xv7oqJT9270C9zL4 SEbE73P0oJl+6AywcYYnebSfKxk+YqaGUjjdBenbcMFqERyHC2abZ147kf19MtZWkAm70L71tQE 0JvpD62xqQmqCldtC1PtWPiHwFMBQ26LOMY+orkqSABbpmwWPQrYpT1vSVO/tr/UALuxivOxhzP PPEiRqHicm/CQl9gnp4zPEBeTlXXNNbaapuuSKLSExUnome5Cy3nBud02jTKw/vNoNtR5q4ST7O mfOE4shk9JT6XG3aBCw== X-Authority-Analysis: v=2.4 cv=e4GT2qp/ c=1 sm=1 tr=0 ts=6ad26990 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=EUspDBNiAAAA:8 a=Vcmh8FhFDDEcUw5d5KwA:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX25TMj2mcAlZz e9t/DtC5XpJC8IrfUC/FPpzcxnAdikhwBqQeo7vTKdHTctyEG1wzBXBYYAylOUfmg+hv58IZ124 SNOP1rri3cr1amFB06ZBtrrvqtVa3VA= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 adultscore=0 clxscore=1015 impostorscore=0 lowpriorityscore=0 suspectscore=0 malwarescore=0 spamscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174773832158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/arm/arch_dump.c | 10 ++++++++-- target/arm/cpu.c | 1 + target/arm/internals.h | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 181691b81c6..60456e81bf8 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -432,9 +432,10 @@ int arm_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t arm_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { - ARMCPU *cpu =3D ARM_CPU(first_cpu); + ARMCPU *cpu =3D ARM_CPU(cs); size_t note_size; =20 if (class =3D=3D ELFCLASS64) { @@ -452,3 +453,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return note_size * nr_cpus; } + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return arm_get_note_size(first_cpu, class, machine, nr_cpus); +} diff --git a/target/arm/cpu.c b/target/arm/cpu.c index 7bf0c5e74f8..73fdc6e460f 100644 --- a/target/arm/cpu.c +++ b/target/arm/cpu.c @@ -2570,6 +2570,7 @@ static const struct SysemuCPUOps arm_sysemu_ops =3D { .write_elf32_note =3D arm_cpu_write_elf32_note, .write_elf64_note =3D arm_cpu_write_elf64_note, .get_dump_info =3D arm_get_dump_info, + .get_note_size =3D arm_get_note_size, .internal_is_big_endian =3D arm_cpu_internal_is_big_endian, .legacy_vmsd =3D &vmstate_arm_cpu, }; diff --git a/target/arm/internals.h b/target/arm/internals.h index 61b0bbf1ba8..8e4b8f585e2 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; int arm_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +ssize_t arm_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); =20 typedef enum ARMFPRounding { FPROUNDING_TIEEVEN, --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174586; cv=none; d=zohomail.com; s=zohoarc; b=PZ+f5IC3AgMMhYsZ5RJzbJcl0+Z3ttGjvDjNGg95lIEiFy9ntF5t4jiEw5T5i+1xLKh30Bj1Hk7uYKAGh8mKA1AjojiomNsIDMJ7Pz7O1U4LR+/awtw1a0lDqB1b73NCFrLWcflDJ3EbAZ+mE6ZpJ1O9KI81MK0QCQEcjHYjlmA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174586; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=84lsWzLtoLP7Tixne2GNGqNQu9+lU2ha7FBQCu3FgPg=; b=jia2JkZrCRkvt9yi6Pr9TcpbtAZAEGwfu5I/fUjsYaN1J+662Wq5wilh5Cfj0pfTKlIGt820XtHfJmlBC2QQcjmdP5Ds2Pkqo6SS0fJZsVcVJZ8l3dTs0/9SVUMbz6I7aD3jjr1T3mTyBM4B9pfabZP4Ezt8ggLpszjDJ4Renyc= 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 1792174586224939.2251321151383; Fri, 16 Oct 2026 11:16:26 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmTF-00086D-Fw; Fri, 16 Oct 2026 14:15:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmS5-0007AO-Db for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:47 -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 1xHmS2-0000Yq-V1 for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:44 -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 69GG16xk2551798 for ; Fri, 16 Oct 2026 18:14:42 GMT Received: from mail-pg1-f197.google.com (mail-pg1-f197.google.com [209.85.215.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hbq2wrq2p-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:42 +0000 (GMT) Received: by mail-pg1-f197.google.com with SMTP id 41be03b00d2f7-cca35cf9f77so126305a12.2 for ; Fri, 16 Oct 2026 11:14:41 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=84lsWzLtoLP 7Tixne2GNGqNQu9+lU2ha7FBQCu3FgPg=; b=TDMFseVvid7uw7Gq1szqOIv1DJi XNVbQmYwLg6Cgz9e+xnYPKJ5acgDguWpazPOiw+FllByHn0UAl055i/q43PTL8TT NWA6uUXqzatvd1eazmOkb4qsRp02b8oyH+c20hYPJHBUZkJHrhcksuhrRXXlXmSL hSATGi25VpgrYGCnToD/mHjgrTRvZ/kOtOYbRcsDjdHhK7ytcHhp1K8mNZvY1IZU AK+SjWi0inBxQoOSVW7DMhdwQzHw4sahT3HMA65j40PdhUrXR+NYxEXAGiII7zaC N0aiF0IFUuOkhkVELIsV7Qgnaim6WUJXa0r/LrAeXq6PRfkdKKbEstLo3WA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174481; x=1792779281; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=84lsWzLtoLP7Tixne2GNGqNQu9+lU2ha7FBQCu3FgPg=; b=YNCZ5Ubof8eD1mJf57HRFJ0HV1zPmpF4rBTsvmBWN//4nRO1V2TBu3mzyGm8M8EqoX HHcHXTorCo0o8hZse3QULbKZ9QUWSnLXX7fyQVEuwnu4QRpwdSEmchueh25FKJZAZ8+x 2sFE65U+HIrScCrWzvckpEyTFxJSDB9Pg1BjBPRHF3n0NH1Ch8kirx+BlS4G8eI4b4oc eu2kSsR5gBVcd+hi7a0fQBy2xfwZouiRJyHfHa0EyjHqczGmniwX0rFNLturKJuVPVQO lJL7scg4CW3Y+AZ7lCQQa4OHG8fXdm3Hhz7T6KOOmLiLVhx4tsH256avRuLjWvhNsnUE XjUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174481; x=1792779281; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=84lsWzLtoLP7Tixne2GNGqNQu9+lU2ha7FBQCu3FgPg=; b=K1OYk6a5xdplTi92YoYd8UeU6Fjks0iqlCnAughBeyhxrEd6EVQgvsG4w8To3UFhF9 rTHNLdzyyfUn5jBx1OWfjS7nLpX8CDFno8bvw/dTROsSQcYk94p1FdwrPJZv+usN1Sps M+jvv8owvNjhuzbrdJEQd3KAAL8RkrFjBjFuhe3kVBUE75M/0fGFVnH3Liqgi8C9eBQY 18k+CEXshfxEZakZMuKSVaHejPaRHDUlwnE0+UUUjLIlFUAPMQ3yFuEI1JjL9rDFOlOK hR7xx7qrixoA9zG59Nj6cIYL9n531v1rBSb6fiUdzdkMF5JQxkbumYkElLhTqXBlKzxJ g7Yg== X-Gm-Message-State: AFq9FYJCRRa27K9gjrh9UkLzpOysnGSHsSIl9tYb2VN7qzjkrLFopgDR Nut+YnyGz5EwYQdYBFnHp00TS7jyxV9pKIwYQ9XbW/blV5S7fN/NjNZwhe8557+8HsDoCeyqmE1 NnhmkDJg0pnRK4VLhm269mFS9MGXw42/QD+660d6TIL/r5xEOZ865mQWEPr1qnuh/xw== X-Gm-Gg: AYBFou0CqpAPoQRlqjYUTQ5nvxDO2C8XFhyOLdq4hKhL2A8Ro/7Y6K/iTbmsr3F8b73 Bj9q71y7wWTLRp7/yquq7owiSmQwvvJk/Wx3W0S330kc1QvLq+bRHkuXS3hH5wrhDEVO3JxqfCc GTwUf6Foxe366APusc4MSQt0dXqlSCjuxso7mrxH4UXKGxeTeVdf8WBXBQBNagOj1apj13GRY71 z6HZxzZunhfFBvUphforpmkpOnMpIoOU3LBUhpO+3m5uV/iy80HKrK9O+PL8N4T14vImsTQXAiO Fu/czv4xtKnsqrj3m3Ge3q1KbXV43V0f5r6PeLnd7NxtzNpke9xsQXTQaHFiRfYCamkyj8Lo2pk 9rObA3yCBN6IBSEhk6ommTGy1eqjWtPDrRiUb1nKSvf06TX/ioiHaqYBzmZMbDAA= X-Received: by 2002:a17:90b:4d0d:b0:3a5:133:ca5f with SMTP id 98e67ed59e1d1-3acef4fe49fmr530585a91.46.1792174481053; Fri, 16 Oct 2026 11:14:41 -0700 (PDT) X-Received: by 2002:a17:90b:4d0d:b0:3a5:133:ca5f with SMTP id 98e67ed59e1d1-3acef4fe49fmr530571a91.46.1792174480548; Fri, 16 Oct 2026 11:14:40 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 17/23] target/i386: implement get_note_size sysemu op Date: Fri, 16 Oct 2026 11:14:04 -0700 Message-ID: <20261016181410.191743-18-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Authority-Analysis: v=2.4 cv=WIHqzXsR c=1 sm=1 tr=0 ts=6ad26992 cx=c_pps a=rz3CxIlbcmazkYymdCej/Q==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=EUspDBNiAAAA:8 a=VkRzHO9NBAn2Hx42XgYA:9 a=bFCP_H2QrGi7Okbo017w:22 X-Proofpoint-GUID: TZxf7r6-Ni7ONA3ZBh-uQfjTgzvEiRAM X-Proofpoint-ORIG-GUID: TZxf7r6-Ni7ONA3ZBh-uQfjTgzvEiRAM X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX7q2uRSkF34pu oOwIu4O316VfBJewGfwOeZBNrzYrUvHTWDDM/8yHas3tWFgSw/BaUE8PPlFkddvyEM1cTRltDT4 m9nNJDqftojIy4Bnm8Hte+KvjzxwsVSE4CwqIZVRpI3XzgtR5IBTIYiTe6Ldjdoims7KgSkLBEa tl3s5im2p6yax9qS0+OvvdqcPH+mGpx+qq9lsJBWHms8eLepY0xehfGxsCoE49qu0pvtdErybve gdyiig2rtpQVRU56Gc53oS2dezhIHhuxMneXqL37CErCcMFTKS5lbKH0j/tqKJ1OTOOqg47IcB6 lMWzOo/RiIPp6HV3yZgW+pmOgJXlI41AjNWwv/jTpOvlVlCTaw21xCFXtdbUXi9Bm0HuFzmI2UH V8VoWpt9a6t4rhHeYzC7NjOHz2yHYPT+vAzZrd7LCM0odUSswWd7eGe84vSTDgovnNKrxZzRZVs xCWlgIu0vCnigvO9wFQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX6m8Zj0jSkIQW 7MEgoXE2EGUkpPBvtPoky3VAYwsdLWLL45foNNcVEAjsEYPb/QRwDl8B6CG6ZoP40P2BdUtysf+ QFMERNIfJJH1AASShmoqm4IfFoLgAvc= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 phishscore=0 impostorscore=0 suspectscore=0 bulkscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174588340158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/i386/arch_dump.c | 8 +++++++- target/i386/cpu-internal.h | 2 ++ target/i386/cpu.c | 1 + 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index 004a639030e..4d8e9374cd1 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -430,7 +430,8 @@ int x86_get_dump_info(const CPUState *cs, ArchDumpInfo = *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t x86_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { int name_size =3D 5; /* "CORE" or "QEMU" */ size_t elf_note_size =3D 0; @@ -460,3 +461,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return (elf_note_size + qemu_note_size) * nr_cpus; } + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return x86_get_note_size(first_cpu, class, machine, nr_cpus); +} diff --git a/target/i386/cpu-internal.h b/target/i386/cpu-internal.h index 9bd2a37c447..7fb1b262938 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 int x86_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +ssize_t x86_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); #endif /* !CONFIG_USER_ONLY */ =20 #endif /* I386_CPU_INTERNAL_H */ diff --git a/target/i386/cpu.c b/target/i386/cpu.c index 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 15:41:33 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=1792174607; cv=none; d=zohomail.com; s=zohoarc; b=oHYqac2sPf9XX5wp5dAZ/6SY2/qp/wcfJ1Xiq1DlNxi45fPbuuxmFC6R/maGs8qNaR2N4mXuMntkz74zwnAm+Lhy5qJLgJoopK0gz+Q1mH93ws/tQSmxoHuGNlmHVS5DFe/C0jWoaXt9pZBidKw2o2gewrMIQ+f2sibVyZNz9co= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174607; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=ZJTUBbppvqIwcAW3gV5P2JMvWJGJ4tya5Sf96AkEhzw=; b=EZhtuwsmVwf0re8CaJhKt+syQkeWrUd9ZbH8rO66z/QUioxXVqi6EbQoaJOqSNYzB0AO1UzZyBTdRxNNjZC3YtmkNXX67vbSCI3NOnwwvF40a90SPAHxRvMh6/S+slxrLNqHMMdBRwXj1x5BNPMoC/oPkKTLGkq1rdc4WRCffL0= 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 1792174607591583.6390417415446; Fri, 16 Oct 2026 11:16:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmTI-0008QA-Gg; Fri, 16 Oct 2026 14:16:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmS7-0007BD-JQ for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:51 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmS5-0000ZR-56 for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:46 -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 69GE652i2154151 for ; Fri, 16 Oct 2026 18:14:43 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 4hbhumssv8-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:43 +0000 (GMT) Received: by mail-pj1-f71.google.com with SMTP id 98e67ed59e1d1-39512608fb1so411932a91.1 for ; Fri, 16 Oct 2026 11:14:43 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=ZJTUBbppvqI wcAW3gV5P2JMvWJGJ4tya5Sf96AkEhzw=; b=Tw+f2wd1tPMfRgY/uGwoHnVgF83 YBLm4udxvlzNpqSGpsitTEgz10cmjs8cg7AvxH+7ikVQ0NrQyNKZa6NjNfWKQGYw Q+WxQgTozR7ifBVFR/4fC+dlaxA4xbPOyC6o5OW5Z21PqXDwOfYDSEyiS+TGG3tM o9pNohX/ofQXIVD6tt3HRYXX4ZsIXYzjsv7U6DFCZZkAL5EH/W2d6JQVrFZ4SXQ6 dJ2BTvYrX9HRHN3+2cYZY+XWvRdeKcUy2GmjUqXsGu7BCPUsNmvNYSZ0ierUquJw +AVdSllPpzAN4A55Y3P3Cx2BSgWo2BBThzUJTR51FT60XUeBWvmF5VM49Gw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174483; x=1792779283; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=ZJTUBbppvqIwcAW3gV5P2JMvWJGJ4tya5Sf96AkEhzw=; b=BKVGGsDiOD3v2yHDA12o/LuGwhgV/tOpYUaie5hMNivM1883G5jh63l7ZzvsMopvbH 8h99WLQ1BKoQAEAEB7W18qvInmBQeHaLBdaeetSSpYYL/L5TMneKdzedpR7b0kJkEU3J 7Mt+0kAm7RWhQAXhTog2XKyKOU70LF3oRMhf9tQSLiVnjFazAmkGFY585FeVAZI7C9jb I1C9Bs7tHquABrKSL8apOoGyIw48H5fIdsIZx4LbJlZ6huvRp+tiAkO2VjCqjvABsQRW g6ZX2OrLwbMzIIWacnwvwqCpP1ZatRM4K/n2zdRwXy8XpeKJIQk72PnJCvk1hnhazaHW gaoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174483; x=1792779283; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ZJTUBbppvqIwcAW3gV5P2JMvWJGJ4tya5Sf96AkEhzw=; b=rrHZZkmriWojz+vmsVsAzIOsRy5wCdEICga/Lhtzy3IfgELPbb0ded2pkMf7xdhaJV ZCI+iDFus/dUYpX9o13Co+zFSBLUtx+EdAoV3ZvKX+wh0qlIiMx8RrYMtMXWXr0L62a8 DxGubf4nypEFkxYCZrcRimK09LhZZRIlvGfhip7ldCEr7WV60GccrG9KQ53LP7SADz2S t7dgqlhdV226JYC5u87yMJpM0WSVSjXK0OKDenh+Kbr8cXeg+t8piYwRRrLUzg+y0ehS Qtvk198wCh7Dr5Tp45J61Hjtz5Jk6VG8ehn5Ckd7HmoJT8qnJy9Qq//jKF77Q82Wfk4s bTCQ== X-Gm-Message-State: AFq9FYLkMPH42CK/egNewMeQaMPA1z78+Vxn7W0kAHd8mhYRFtuCCzCU NCnp79Lew3miivAEpo5+8Ji3A60bx4A1r02uJlTq1YVBi6DbRYkq8ZwIYSIIIE3kTtiN67TS0S7 FK5SxzMYp1tNQyumeUsJHl37uwAnvTXeVH2Df5yBcbIAXcS6FUfzNun5l022AkuNnAQ== X-Gm-Gg: AYBFou3QDaPF1C5XrPibR13nQHHc4xpb9Y4V6Y4bhgkvq565puLczN1rpQM1GxWBpqQ cRQ0/QSYiPlvtZOGvs76IUMYbdELNcU996iMYmr2O+QARCWwsunl9ggvvAAfT6+dPJEWrRYGZJB g9gfTCCVgb8e7kxPCrep6V4r+/Wd9+M3NW10I1XERzQpc2HfhfXCPUYFmyngxOBEbTxT0djSmw6 SOU4LyhMyWRwUjKUcelKRCTc1MojSbJ/oiniMtAceKw3NxsQFH+Ji3F0u1x1rfE4vt9xu04jCbO g1RMr1U0lB2mi3JP+lCw3ZZlzhtvrvju3X8hferUTqF7ldG3ILx5VleSrEy5soyA+GXe2i1GTOt wz5Yyyk158Mxi8WfRd5Mwuyr5GBZW9Xb4gm0CfYOo2KPIuCezLSHynVDtZer3hRw= X-Received: by 2002:a17:90b:3a50:b0:3a8:d71:5fda with SMTP id 98e67ed59e1d1-3acef52ef2dmr555455a91.63.1792174482594; Fri, 16 Oct 2026 11:14:42 -0700 (PDT) X-Received: by 2002:a17:90b:3a50:b0:3a8:d71:5fda with SMTP id 98e67ed59e1d1-3acef52ef2dmr555438a91.63.1792174482134; Fri, 16 Oct 2026 11:14:42 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 18/23] target/ppc: implement get_note_size sysemu op Date: Fri, 16 Oct 2026 11:14:05 -0700 Message-ID: <20261016181410.191743-19-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MSBTYWx0ZWRfX/vYges5I9uh6 wnPM6sco02mrvbLZOT2fKImiaumBhDQgW8aWf/FEoZ/Dcv8A2KGBVy3qQyEJb6inLNBzHq1LHKn GEyHM2Iuw7eCr76ZlI9Eji2ryiN+IP0= X-Authority-Analysis: v=2.4 cv=H+BOUOYi c=1 sm=1 tr=0 ts=6ad26993 cx=c_pps a=UNFcQwm+pnOIJct1K4W+Mw==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=EUspDBNiAAAA:8 a=Lumvk8zKUu4O7nVSwh0A:9 a=uKXjsCUrEbL0IQVhDsJ9:22 X-Proofpoint-GUID: TG7iJ6fbh1phViPzcEunI2NMphK27C1U X-Proofpoint-ORIG-GUID: TG7iJ6fbh1phViPzcEunI2NMphK27C1U X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MSBTYWx0ZWRfXyDqNt0OCEIKa K9MmsRCVorc2LWelvjAfsz7OFD3RRR8F6oyFlOMVAVnGJ5CJjTzKrr1Ugv94aG+xGEG3JRktaic 7FJkRnfMHZdtx0InHLUHZlsjeIbm0fD1vVLqzGkrIBORsN22W1Ez1UkDr5ddiNquHx6oJ9wojtg vVV8tXL5Fs3cNAjosUHXPYdhi+shAHigHtnRGvAIrcDhvoUcUdsg14Ddxnw2VvKCF2hTfF+xyGf RgWuK4TeQO0oZ2ivgEIUyv732E6ddepUljyzQ4nrjmnUOGXjHovXdu94jmcLpJ8jE+Icwp20mxM mPxI+smgAzbMU2rfHerGEWRlkStL5h6EZ1dWfzFAMT3Sm8Lk2ro9hSbhCkhINRybY+t0HdKu7Is vWBMVA6AaPMntd5q2H6+CgLYa9ayce1UhxSd7ePW3lKxS2ep0N5Ab1603Km8Z55IYhD6LuuKPk3 Ip+7CDUEkHbBJHa6cSw== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 bulkscore=0 phishscore=0 priorityscore=1501 adultscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 suspectscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160071 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: 1792174608709158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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 c70c2d0b125..b59fef3c48e 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -252,7 +252,8 @@ int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo = *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t ppc_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { int name_size =3D 8; /* "CORE" or "QEMU" rounded */ size_t elf_note_size =3D 0; @@ -268,6 +269,11 @@ ssize_t cpu_get_note_size(int class, int machine, int = nr_cpus) return (elf_note_size) * nr_cpus; } =20 +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return ppc_get_note_size(first_cpu, class, machine, nr_cpus); +} + static int ppc_write_all_elf_notes(const char *note_name, WriteCoreDumpFunction f, PowerPCCPU *cpu, int id, diff --git a/target/ppc/cpu_init.c b/target/ppc/cpu_init.c index 5853a92bffd..578dd9194eb 100644 --- a/target/ppc/cpu_init.c +++ b/target/ppc/cpu_init.c @@ -7474,6 +7474,7 @@ static const struct SysemuCPUOps ppc_sysemu_ops =3D { .write_elf32_note =3D ppc32_cpu_write_elf32_note, .write_elf64_note =3D ppc64_cpu_write_elf64_note, .get_dump_info =3D ppc_get_dump_info, + .get_note_size =3D ppc_get_note_size, .internal_is_big_endian =3D ppc_cpu_is_big_endian, .legacy_vmsd =3D &vmstate_ppc_cpu, }; diff --git a/target/ppc/internal.h b/target/ppc/internal.h index 4238692a9eb..c385874aa54 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 int ppc_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +ssize_t ppc_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); #endif =20 #endif /* PPC_INTERNAL_H */ --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174783; cv=none; d=zohomail.com; s=zohoarc; b=bZJo2W3lAw/c2CYH+yhq0ezoc9qfjNQ2ye7Z4TZBsMnz0tHLhwE7o5Wy15+tx1XwAjmOezU2hRX558VCpqAJx8BA85J7nyD3moW1X7/Swc3lvW1+MpexpFe4FXc+j3GeVYF5X4hpWOJltWl3gy9Xbcl29DQKAeNdUwcDxyPWJZI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174783; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=S8JB07cW+tBUfIxocCM7Je7xlYVhqb1eleN8UPzAYAA=; b=KNk03LYzK3/B0UUei51SWv0ydnEekccw+Fq1jkCTVVHiHM/q+fXwiy4sBsaXL+LO1HO8xfb8C2m5q/Rr9q3/S47vqeqSaQinKHyNVgXLmA67CCx+Rsf5rgWvJSSi20Nhn8gCqGWOM9Pn9/lDhoQRb5jM8u/cAH58lez+TdeXgts= 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 1792174783340763.7529687139863; Fri, 16 Oct 2026 11:19:43 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmTH-0008Lk-O0; Fri, 16 Oct 2026 14:16:00 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmSE-0007Ft-Ln for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:58 -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 1xHmS7-0000Zi-A0 for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:49 -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 69GI5LeQ4097579 for ; Fri, 16 Oct 2026 18:14:44 GMT Received: from mail-pg1-f200.google.com (mail-pg1-f200.google.com [209.85.215.200]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4hbrw70152-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:44 +0000 (GMT) Received: by mail-pg1-f200.google.com with SMTP id 41be03b00d2f7-cb11535e6a1so192870a12.0 for ; Fri, 16 Oct 2026 11:14:44 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=S8JB07cW+tB UfIxocCM7Je7xlYVhqb1eleN8UPzAYAA=; b=NMoA3tTu7XQmYa4uwh/Jk8UsBhl WK1mgbJfDhoLuY9qxZlySjHnrjU4fInoGH8DvBt3kUp48rOaXAQfnsDeQOhLij0y xVCweSPk7ulMNyJQm97FgG8+r+WAbpEuD7pSjq6VSie1Z9ZkiEoohWutmM+kMkv2 zFXvR2cxFor9rJxIstU9u1dyFN+l7EHPnh/FDEWqR9HnVA8eOg1X+uFnboPCW6qW loM0+ilKhl/Jhe+vWMDVsfRfqpq6CJPrFtn89er4eLIU8HdnGscSBPyDmsGKAf1I gyXdI4AzSE0Iw/SEzJ0wpCzqtVLZQEDONp/LebJHgF7+AOxWmWEU9fKpepQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174484; x=1792779284; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=S8JB07cW+tBUfIxocCM7Je7xlYVhqb1eleN8UPzAYAA=; b=UhPieDLGm5fQ2XwUgalB9MUumwZU673SJVTFI6iJatNhK/hq5HKIfUDj/ElcCR15lA z/5VwRHer4EbtT1Q40+7qfJhb8tHuda1DiigperN8Wv4L97ZOaJHL+IA7ah7qf+77HiO MMkbUhz0NJKTdmg8cdV4mNFtaGwxrmfhry2v+UGTONWBobl/xJ+VlzsPvIAv6ECiEi9Z SOuhH1CJtdD8Xsot/LGt29G+0paAE5g7i3OnM1dnVCl+RulXw96J6kIqoS2nkOsRltmp ESIgbuv+5Wii7tppnYNR3yXTE3zhjvyveg/8CgipyogFn7sBNZf/aRnWqIRay936ID7v NAqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174484; x=1792779284; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=S8JB07cW+tBUfIxocCM7Je7xlYVhqb1eleN8UPzAYAA=; b=cN5wpgj/jki3knA3+dbJW25txJttXtc5vAtcvs8h/bzmu3562djA6fqxtQ/COF035O hiVsWB73YWMP0i1+EtK6OkynsRZtCzTsfUfhgCAa6mAGZZMIQC9eWoTbRkoRLqD4IqYG NF5qhNxcoiXCkEafxZXAL9TBloSW/ETt3VX5M01smWZa7vHrH0u1hEfg2D9JfFfOur/J wMqShc8kLX50b9t/bESJ7FGPdAmaaPhAB8CdnMR6bIJd0/gLAb9W8fqZFndlR+nNNn1p lGD4pIYGPYIFqKUDWL4W1T90HxCUZ/U90cWzAFi2yybtD74GzPFeZUg1D7MtJcaEauAk 4Vxg== X-Gm-Message-State: AFq9FYIdMkYm1cz28HieRQK21NdudH7beZWuKWcrr591kaSLuo78PC2S OLtogLyQg+++XcGPhFYiyeneki+HGI1PSTAuNt09CPw+RFniZ1yFzlLvmc86DTsjXnQpBojCL1B 98l218dRKYh43rB3GScppqtrgQAgESYoTw7saX4uOwJt8i9SzIGnd+J8wptFz/IHrPA== X-Gm-Gg: AYBFou2Nbvauy/kifXoSBLNwK3Z/5TPXxrTy4SqDocWcgjBMVLhHmMBmwpMdJzX+xwV 401XzPdGW1Ibuti3XPUV4CCYFDvCnc2zJdCH9VzA2fxxg7vv0QsU31sWRlp4ep02pIoprFanE7S rENUxB0DT5hJlIKhgLUHsdAi+9WG6Kp2JZfaX+1B0laVe59LQovBUIvKFe9n+gQ8Xhr4zhhw6eL r/WKZk/kNZqkJ6CGzPXvkQBxJVk+QjnYz1/XRYUquRb8nsvhV/01k428wctWfYLvAw0rTY0efBx /oMfPlKEyoxeb1BZRLtf1hEtzijUac+DViUs03umdwLWYvSwqwMeJfujuTEEccdooxzBnPessiF pKsRgdbHc65iY/20K/luHB3/pjZjzX0Kv3dpY62mRNybBe9WAaEgTFgMOgCgQsd8= X-Received: by 2002:a17:90b:570d:b0:3a8:9db2:a4f with SMTP id 98e67ed59e1d1-3acef527908mr554028a91.51.1792174483760; Fri, 16 Oct 2026 11:14:43 -0700 (PDT) X-Received: by 2002:a17:90b:570d:b0:3a8:9db2:a4f with SMTP id 98e67ed59e1d1-3acef527908mr554005a91.51.1792174483218; Fri, 16 Oct 2026 11:14:43 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 19/23] target/riscv: implement get_note_size sysemu op Date: Fri, 16 Oct 2026 11:14:06 -0700 Message-ID: <20261016181410.191743-20-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXxA8UUmpXllF5 OYfMfyLaTsDiltabLYrWz+9JJOtl86dL4LmZmu82LI3L4RPb/I5xEFG/e9gs7/xM7oacJRKsLTw HF0QHkcrAZZCTdfXPGpXIoQl8jf/kvU= X-Proofpoint-ORIG-GUID: bHxTxRQpiWXbrnEsjDntetC_yLRIth7z X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX2oNRcs+3l5Az UHxe0NwC9OkaJsXoEjO0vNtZbRAUi1V+VdfF2iXC6m/ORhl7w59goDruxjwzJow7cHHOgJvbvyz oW8+EZzjScdLVt/DVc8jM6DyAzwYtbOPivYVsxa7UdDS/k+zrlxoxNuNXqjRiZft7BJpyI19HIM Lf6aexlmZBtFG8eXHw+DzimOgvM9E2Lnv4kbwvpn6rR8PXtLYQLwFqm8O7svqt2e4LYvojwloas gxERI4ZT+YWUZU/Z8nIZitbXREAeXgztMVB2Sk5ZqS5AWojIQQ0pqkrhsq/W3lO79WrifEITycf 6yGQGDxYkg6v1VDnAvUFw245y+Joco/n3ijh8Nv0jHA9vNji2Xq/ODCDi9g3coj8LWH+BblfXmT B513v8byL1ZOTNnyDUSfKz+b6txfNCjqKfAGkBuGYSWk0zCERjkRdqEhFqtQ9be3rWcxsszRMkK b0J0s/CI/it8AnyvEuA== X-Proofpoint-GUID: bHxTxRQpiWXbrnEsjDntetC_yLRIth7z X-Authority-Analysis: v=2.4 cv=XKKl2ghE c=1 sm=1 tr=0 ts=6ad26994 cx=c_pps a=oF/VQ+ItUULfLr/lQ2/icg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=WHTxxU84TY79vzyxHH8A:9 a=3WC7DwWrALyhR5TkjVHa:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174784005158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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 13aaa87202b..74b1489ddcb 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -182,7 +182,8 @@ int riscv_get_dump_info(const CPUState *cs, ArchDumpInf= o *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t riscv_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { size_t note_size; =20 @@ -194,3 +195,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return note_size * nr_cpus; } + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return riscv_get_note_size(first_cpu, class, machine, nr_cpus); +} diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 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 ea4b4140c09..a0b040f70c9 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; int riscv_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +ssize_t riscv_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); =20 /* Zjpm addr masking routine */ static inline target_ulong adjust_addr_body(CPURISCVState *env, --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174749; cv=none; d=zohomail.com; s=zohoarc; b=LKOK7pSMqbuneYNV+41wWxUXLeKUSpgZaqRhvEBeSm3aw5YyLUv/l305wQ8qOld4hi3qnHRk21jz+t/b2IhghaoGto4zVlU2pFwupD3Et1HqqW11HwdaKjxxqakaqvNdP9zlwVg8b4s9pGY6yHhXkaE/rHF/coSQ6EKap3jRC6Y= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174749; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=j2oMDFOXM9D/fH67iiMX5F7p/cF5pL1GqIyTBdna2B8=; b=dkCe6cl6JLkn3z6znN9f6WkFNQDeh3xPcDlNqJ6j8pRM7xEeb2CX+VdDh7IlLXieHMnqYUcYehNeTzLV/0r9wDI2k2lmRPTEjvsrkxluQ+dWQKP5UWRp1kT7iGg7j2eXospDYuZJZAU4sYBJG753WnyqCkJoRDWqvKWz/0qNQz8= 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 1792174749014666.204706569661; Fri, 16 Oct 2026 11:19:09 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmUQ-0001Vr-Ka; Fri, 16 Oct 2026 14:17: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 1xHmSB-0007BV-Qd for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:58 -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 1xHmS7-0000a4-1o for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:48 -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 69GI4orY4023371 for ; Fri, 16 Oct 2026 18:14:45 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 4hbrvwg179-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:45 +0000 (GMT) Received: by mail-pj1-f72.google.com with SMTP id 98e67ed59e1d1-39512608fb1so411990a91.1 for ; Fri, 16 Oct 2026 11:14:45 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=j2oMDFOXM9D /fH67iiMX5F7p/cF5pL1GqIyTBdna2B8=; b=VoW+b1+Zt66rsSJcCbZpF84zOTz g6gLdNDVNAjxpdvXA2Tg0VAW0t5RgXLzwhtqb7B4gXihUZo/y1ZCQW1iS7kjBc9P lek4/pgRqaLeRjSZM47RyOD+c7ywE7vGytyezOtOxgSMSbi9QrVTOZfeTr7Wm0z1 jXhGBqY4m11Wngv6e9chZOGEsSHD+Rql21886+R0X/vlW8JeI4gKoSUN/3pkL+a9 TzzHImzMfD4Tza/dZuF7ISHmIj9nT3AVQl1fAQBy7x5GbHaLxyy4POWKen5xzzm1 sqXl0+elqVXxDMUlOOMQija/zMkCPz+gvbCRjHUKFxDwGRr2E2bTQYWKilg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174485; x=1792779285; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=j2oMDFOXM9D/fH67iiMX5F7p/cF5pL1GqIyTBdna2B8=; b=PIlOSeV9C1B/RPZCB36LzJprztToyc+9ahe4IbFHK56cwRdZD9/p/2vNfE4LeZ2iVo 3TKps9GhA/uATBV466gIyJDthW4fRzy163cDgolqCj/0+S13ADj25pRhUW5q5O6f+St2 fxxlxznvpVVhZktIQdawXPtMztnIhegZ0YFiq8V4pp+PmlnDi5O8/kszlT7fld7aQanx nqnqDg6FIymUhpGR2lUmY/ZDBlxO3udSxvloJZ0dA6X0aMI9nBQCDDURoNgpaqMKem8G Svb8gJ3Y6wCo21wB8lpHdDZ1woC1UKxTqRRtQFS8XZkNlok4ETw9fZOl0gmkC/2GSlE6 vBCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174485; x=1792779285; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=j2oMDFOXM9D/fH67iiMX5F7p/cF5pL1GqIyTBdna2B8=; b=f6qoRXU4NNHsIawacMU6W4sscnn1Qxt5QC236tvtOEyOerN/WVn0B7xzrW8XyTvur9 kkHVZ9UwW36M2l0NY9eSNFgIKW3iFvjn8kHQg5MdXjoIvxkiR+ZgNPY2RWScPBeGvIqv z0jVrXknWSKudIlTWafyQha2OfdXffeSQoKCsT7AcWnRFEn0VQjETjeZn9mj3CzIKiqf FqSwoDaNQAVQfxAsJ0K9SSJhoQ9OrogqsNcd01Z9Yp++KPZdE8L7W8Fnm9Ik3W7BPKO7 gnGyekAT6MvBRSj2ZOM1Jyc7zNXWsVm1quO3RaWWEzoDfNpyguyiGKrRHhaHU/rTfXGa WSTw== X-Gm-Message-State: AFq9FYJIM6ecXCQua7HQqXSaJ+FxnuznedpWqHhVkmmc2MDf9URW2mRh haXU5S3a0oD5nQMTOpNgydPbruyTWLJg0I9O3uuxikGToJrUADDrYp/zQ6mMiCWK+6bXPp19xC+ 19hnmSvkZ7jMm9Tqw46VrbTpSlwjr7Mz4SBMqD8FMo1S2VRtiw4wx95ynCljVQk9V/g== X-Gm-Gg: AYBFou0mpO+6VRO0Ri+/ErW7KIRPtNoP4GazpK0YxNALOmzJRi9J4an4m30WWVGCYra bWFQ4eyR6K3+AxToWhDZb4TSde5fZTGWgWrlAzPq5UTaTNTl0Hfg/8Ui8xXtnCRihtKjEEWwkpe v7BWHSikEdjJ7og4o2wyUIFvkAngYGOYsG8fR40FIamxpJIzYkPeJ1efW1KcEsR3xAuO83Os+dg Z7Yr2/rKEIDpI1V/xWdlmTm0YnVJ4vaB2/NpNL8oGAPOeQFZLfvaRBcbGiNGqdQI4V+IaX+Te4T D++MjFV+xyHkOqVzTVKxoL2UWgqHD/9sGL+g40jbBOUyV4kNEldsUNZOjRHnUHq3Q6Tj9qEZwKk gmn0amg/1ax6UgtmF2FjyvYAfKUBDCGVhaTBQ49NJ4AhNEnj9u+BIu+ixqDwaFac= X-Received: by 2002:a17:90b:3892:b0:3ac:9d83:885e with SMTP id 98e67ed59e1d1-3acef3aa12bmr624292a91.52.1792174484838; Fri, 16 Oct 2026 11:14:44 -0700 (PDT) X-Received: by 2002:a17:90b:3892:b0:3ac:9d83:885e with SMTP id 98e67ed59e1d1-3acef3aa12bmr624268a91.52.1792174484404; Fri, 16 Oct 2026 11:14:44 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 20/23] target/s390x: implement get_note_size sysemu op Date: Fri, 16 Oct 2026 11:14:07 -0700 Message-ID: <20261016181410.191743-21-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-ORIG-GUID: vhWkqo7ZWpoEBKCcCz3h5L7YU-zDid8M X-Authority-Analysis: v=2.4 cv=COa/zhrD c=1 sm=1 tr=0 ts=6ad26995 cx=c_pps a=RP+M6JBNLl+fLTcSJhASfg==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=EDlH-CkopuZvdY7HuOYA:9 a=iS9zxrgQBfv6-_F4QbHw:22 X-Proofpoint-GUID: vhWkqo7ZWpoEBKCcCz3h5L7YU-zDid8M X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MSBTYWx0ZWRfXymWTA8KzhyFV wz/Mw4tcVwXoVpIE2B977j+1GVqJQNSzAlliWxMu9BdjNZHlz7XY84tHXLv3fvCgLGHMn2+Uak+ UbJ3zdzcRffns1OAyI53DFVoPAE+xPL1jGZ6qoiw0P2ZFr3If3DW4MFKpTIk/fVc64G/PYTIgHB zjASuFAlZzv9/ZK5BwqT6aT0n7qakattxBGAO9Vue32ZiKsP5Ha+Y0n7vZUPLpA9D3lUWJVCZAK gi/yRfn5DvIpllpPiklzNCR6VHYOOQtEVmp2JxqhpYx328OJCy5S2zi48g85gtYWel5oMZdOGxx pj/tFxxvqv+Cpl4JLIDG2PxW+lYDcqOBCz/ALRsBbF6NQM2twK3+oh/UmTzPGYl/Al/scYgxNYM 6P5uwLlytb/5Ieen8v77Or46iDcwib5BAgFdxQOhisTMqMJztlhrN/nE8Bp/wiEzQX12U2iLFv/ E5dMT1oaHKA+W/X5ipQ== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MSBTYWx0ZWRfX3gdUPdyV+dWK NtoZMfWlM0jZFiyHLEznNMG5GUkyYcHAdfvqFNJRXIR82ppgEHS7IIKxNhu+a01afd3rZBoDK49 T3VZoAnfnyluP8+hltGcktgX2Eg7O6s= X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 adultscore=0 malwarescore=0 suspectscore=0 impostorscore=0 lowpriorityscore=0 phishscore=0 spamscore=0 bulkscore=0 clxscore=1015 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160071 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: 1792174749359158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/s390x/arch_dump.c | 8 +++++++- target/s390x/cpu-system.c | 1 + target/s390x/s390x-internal.h | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 4301cf400e4..3ca85e6b64b 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -469,7 +469,8 @@ int s390_get_dump_info(const CPUState *cs, ArchDumpInfo= *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t s390_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus) { int name_size =3D 8; /* "LINUX" or "CORE" + pad */ size_t elf_note_size =3D 0; @@ -495,3 +496,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return (elf_note_size) * nr_cpus; } + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return s390_get_note_size(first_cpu, class, machine, nr_cpus); +} diff --git a/target/s390x/cpu-system.c b/target/s390x/cpu-system.c index 965f5cf29ae..784bf4e90b9 100644 --- a/target/s390x/cpu-system.c +++ b/target/s390x/cpu-system.c @@ -187,6 +187,7 @@ static const struct SysemuCPUOps s390_sysemu_ops =3D { .get_crash_info =3D s390_cpu_get_crash_info, .write_elf64_note =3D s390_cpu_write_elf64_note, .get_dump_info =3D s390_get_dump_info, + .get_note_size =3D s390_get_note_size, .legacy_vmsd =3D &vmstate_s390_cpu, }; =20 diff --git a/target/s390x/s390x-internal.h b/target/s390x/s390x-internal.h index a1f78799159..4ffb647bc71 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 int s390_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +ssize_t s390_get_note_size(const CPUState *cs, int class, int machine, + int nr_cpus); #endif /* CONFIG_USER_ONLY */ =20 =20 --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174788; cv=none; d=zohomail.com; s=zohoarc; b=PmLE5QxMzpNxY9UUREdqkcrX8P8qV9XPjUv94r3nd6li46w+fE41hvLTBWEdC5o3IHGjcd40nkIHvHdyRH/uCEBpv5b7Imqp8glE8JPfbz0E+3MQ2RAVmYDNOxIT5Xb6e8J0mNDWamywpOOO6BoOq+9Mt/8EXg+X2d1HFvg5v/E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174788; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=kDTXeloSGvrzispEwn3HNGPzJKJRiMhfHDcWspUmryo=; b=MTddff21ycmj96Rri/d73ERRPt14K9Z+B7CShgzdEJHTJfHjT7cixRp+3w4jVX3O9zFK/rqehl8TRse8PuAVphHhBAJhQHSmRueiUL6QD5sogcrxfVUsyejbLlU/dKdisuEGcltVORTOdttx+T9o0HzA1Un4DSOu6wg6VNdHqe4= 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 1792174788136771.9190981801968; Fri, 16 Oct 2026 11:19:48 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmT4-0007ry-6J; Fri, 16 Oct 2026 14:15:49 -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 1xHmSE-0007Fv-NS for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14: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 1xHmS8-0000aP-2E for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:49 -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 69GE5noW2914762 for ; Fri, 16 Oct 2026 18:14:47 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 4hbmmq15e2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:46 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3aaee1fc104so265052a91.1 for ; Fri, 16 Oct 2026 11:14:46 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3acc48e8646sm4895282a91.10.2026.10.16.11.14.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=kDTXeloSGvr zispEwn3HNGPzJKJRiMhfHDcWspUmryo=; b=IFnuXobbf9t8r6F0xog8ztiB8ol 5Q4ZNE26kz/PNPSZZ7Kiz7ByAWU7Qtx43bemyfU2D9iqzk0mBtvm/eNu+2cKiyYD acr/33q1dwtySFrYOOTKOrVblxwWUhDjRNn7u8FUtXtYeg/Uo7xe30VrT6K4S0ZE mNosgL9QxbKNv5MCNGak+B06Ef06tA5ZKXQ75jGvA4Cq5SD5W9rJFcM07u+5NDl1 PJHkMKf5Ki4J/wOP1JVpkmz5vCN0DDu+4Fhy6s7ZH3QLYhcikq//CVcVTl2x/8NS rTLJoR4ko2ukvQsgkBK1FsQ/XQ9JyYer/G8833tkCqIQgk48RHoBKWvZmDA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174486; x=1792779286; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=kDTXeloSGvrzispEwn3HNGPzJKJRiMhfHDcWspUmryo=; b=fmqEVtLcG7ropQ0QNGKLSU1DEdR8pQmRnxEGhZv6NcuZQY/Oe2eiGMcLEBdKXPDxry A1H7v3MPncDEZj1I6ZFa1OzOAoSV+cqXzt+tINbIdXYq6HAh9RRY5hQZxHIIsA98yF8y wd8kc17IQu94Pi225sxBrbX+zQ0Tu4jt8wqcdr58WbHOp81Cju3sEM9pNHpTJuEwGKgP wNIocFs8iJrWeWoeaw+SgJJVybLZ+hr5+3ajrE/VF1IAhFL7MVO5e3MivaxICGzF0U9M G6WU3aln1tJCD25mgFFV4m7yhHYLh4iRkqN/RJPOcjLKVamQjykNC/g1dOsUqqLLWyfW wsyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174486; x=1792779286; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=kDTXeloSGvrzispEwn3HNGPzJKJRiMhfHDcWspUmryo=; b=KVC+bNgQa489IToR8BKUc2Ehsg8Rl8SH/6YinWhP/cby8jK6TmgbLZ+xg/CpfgdeGZ WDrl0jrVhcOuJeImnfm/USNdSe/A+dJEWO5NxMKxgVKLtSpQsAt7QjmNsuurYPtSFrQi f3d2+nqBo8TQ2tuw05rKNdDxVKdwNJoT2JZ125xx4j8JZP+O1aswklQNddbaJI8iPWnp rAM2XX0uhd0VlPoCnpeSuUpEhuHDLOioV1uArXvUR/vUmMZIguYzpsizbHPpOECZmCvG RQ3GLrxZGvgUixhwWYFhh6an91xM+KQ6faPyG8W7BzoWqm42XhA0P1zE9+IghqXutH74 Yj1g== X-Gm-Message-State: AFq9FYIJ7iG1bEjQC+urBnK5GDAUnb7daTqkwLOJndYTXlSckwYr699B rSjxzF59liNoXFneQ3/3rhcEbQXQdnSkcmG1wCP4QJjlUydaKWQ9P3D3dvc3UTZ83NrEZv9k8bF UDyAn1VZ71jJ9qr3V2imQgbRdBJ1p0DcsDi/I0LnaQ5ntm4Bn8umOvasiD9BcgPzc/A== X-Gm-Gg: AYBFou1FpsmxXkA31vXBsj+UJS0isevjwUYzRjN1ABTmUaXV5M5AWl8WYd7e4GGKuQo PbxqYpnYrSbhWMInQO6JmHPQNyEnUvL1OUWRZbiXQFMdgoSbi31yC8dkGrihhYSwDNVbF0S6ncv P0s85HrAMMPqfiKGbLxUqLBT7uOBxAYQ4VnuXYcvlzfsubJ2+lTi4dHuJhCUYPb74vhInxIU5uL dfDnlwjh/WI0ZGTp9xJ4K3TZhri4tSuS4BTrkVReRLuMGRxyCpQ3V66qV0RgQfnFtZMkkBRBbFq yTVX+wC0Yi92/8JHTlPxfjW/Wtmr9pzLzPGDefqsPXo8taU4Fue4BLhfIIRa7rpxu+o3cF4FnQD umQbaKGxbYkofvG6Ddw9wn+B4bLQ6AbNK6RggqAXmEk6sFYtSwj/lwB0S3l85cpQ= X-Received: by 2002:a17:90b:53c3:b0:3a0:bbd8:5ba7 with SMTP id 98e67ed59e1d1-3acef63e059mr519335a91.62.1792174485875; Fri, 16 Oct 2026 11:14:45 -0700 (PDT) X-Received: by 2002:a17:90b:53c3:b0:3a0:bbd8:5ba7 with SMTP id 98e67ed59e1d1-3acef63e059mr519320a91.62.1792174485382; Fri, 16 Oct 2026 11:14:45 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 21/23] target/loongarch: implement get_note_size sysemu op Date: Fri, 16 Oct 2026 11:14:08 -0700 Message-ID: <20261016181410.191743-22-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXy31UmXqKPueO bbMWt0ET1A14Tvt4ZXj99qCYygW//s54/GfOHJ6x3RUPUI5JqHkQzr1/B0sx/b2ii8oKJGGPGZX fw9BGr8ovdbq+VnFsfBxOsy0kBulVHY= X-Authority-Analysis: v=2.4 cv=P9uvFSAu c=1 sm=1 tr=0 ts=6ad26996 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_glEPmIy2e8OvE2BGh3C:22 a=EUspDBNiAAAA:8 a=VoVa20T_UCIUsInyF4AA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX2U3SiWmO1PmT c0SS/oYm5GFcFxWipzzsGxVVJ4lSstaCG5v4Mnsv2CC9T8C3/NQgjTmmhBfkiZVXlQEFvYJJSBN wqDeQnkXMLdamKK5nzXXVFqKeHWb0MJDPQYX0+VyEF7xpphqVfMZvRLnm1KZz+hjjIuWQhAh8rD RElumkwb453/JroZeL0k/4UsYNAlXIVvkjZ4AeOdutPsmMx45ZkAoZ1DT/KDJHA/1Lb1ZrFBYaT W1CJ+GO47vbT+khsZHgLo7EbC3cvjw8pfHNi9sULL7LsjNgPkyAMDVjurjYxCWt/PgqIXPpc+B9 84r2fMwb6vtnkrsXdmaRxBtKkXpVdQHuODboMzevM0eedV1ITa8MgC6y+fK8PTNAZdgPa84+83q ABLjSsOW/e2Iff4doodnxov7fYFpN9mISRe6QmTbxiCU95OB27PffAgXzNjpxrX6Hr0iaUDYiGG CQRteNIChKC42Py3LDg== X-Proofpoint-GUID: nD4c6_m0SDwAu8X1CUPQYAPuhlDAqU7K X-Proofpoint-ORIG-GUID: nD4c6_m0SDwAu8X1CUPQYAPuhlDAqU7K X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 suspectscore=0 phishscore=0 adultscore=0 lowpriorityscore=0 clxscore=1015 priorityscore=1501 bulkscore=0 impostorscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174790126158500 Content-Type: text/plain; charset="utf-8" For now, we keep the global cpu_get_note_size symbol defined. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- target/loongarch/arch_dump.c | 8 +++++++- target/loongarch/cpu.c | 1 + target/loongarch/internals.h | 2 ++ 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index 5a0e1742242..e27bd0f6497 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -152,7 +152,8 @@ int loongarch_get_dump_info(const CPUState *cs, ArchDum= pInfo *info, return 0; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +ssize_t loongarch_get_note_size(const CPUState *cs, int class, + int machine, int nr_cpus) { size_t note_size =3D 0; =20 @@ -162,3 +163,8 @@ ssize_t cpu_get_note_size(int class, int machine, int n= r_cpus) =20 return note_size * nr_cpus; } + +ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) +{ + return loongarch_get_note_size(first_cpu, class, machine, nr_cpus); +} diff --git a/target/loongarch/cpu.c b/target/loongarch/cpu.c index 65772f30947..5e182922b7d 100644 --- a/target/loongarch/cpu.c +++ b/target/loongarch/cpu.c @@ -842,6 +842,7 @@ static const struct SysemuCPUOps loongarch_sysemu_ops = =3D { .has_work =3D loongarch_cpu_has_work, .write_elf64_note =3D loongarch_cpu_write_elf64_note, .get_dump_info =3D loongarch_get_dump_info, + .get_note_size =3D loongarch_get_note_size, .get_phys_addr_debug =3D loongarch_cpu_get_phys_addr_debug, }; =20 diff --git a/target/loongarch/internals.h b/target/loongarch/internals.h index 83220f32aaf..4b37e88070c 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 int loongarch_get_dump_info(const CPUState *cs, ArchDumpInfo *info, const GuestPhysBlockList *guest_phys_blocks); +ssize_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 15:41:33 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=1792174595; cv=none; d=zohomail.com; s=zohoarc; b=jA2JowgbFpT0712IRBocWShmq69Tbumu9En1PpU9pyYD9bpZK0wGA7yKzZhe9T8dWtl//nXbwHXDi3cCT+OlUkw3IiKGuxnM5bvqz+R1ge3Uo+VBzjS9u2idruNmSdHLCo2+i2OPdjUYCyzmvxGkbq3WgHSqZd/wHtRC7mGL2qo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174595; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=uQDe13YUXK4YusvjpfWgjXR/f6CikfAsxadvLUPo9pc=; b=AP3/3XVW+AV6y6Qr+UMcj48JUHPZWHFUGZ9F8qzU2PJry7llYZAhWR40p2cFpcYH0Nf1h1Dk+l4YTOniIEDWdH+zSfMTtbv9ZAJDAVSntFWc88qzf5MwvvQ5vClaonh/dEjalvWS9CCCA8RbiL9j5s4um1UN5kugvMPQnVFVSIg= 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 1792174595076622.8188858589351; Fri, 16 Oct 2026 11:16:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmTG-0008CY-Oy; Fri, 16 Oct 2026 14:15:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xHmSG-0007G7-IP for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:58 -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 1xHmSB-0000b4-KM for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:55 -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 69GE5i8l1910949 for ; Fri, 16 Oct 2026 18:14:48 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 4hbjmf9mxd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:47 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ab926c236aso209436a91.0 for ; Fri, 16 Oct 2026 11:14:47 -0700 (PDT) Received: from pc.taild8403c.ts.net (192-80-163-190.dyn.novuscom.net. [192.80.163.190]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3acc48e8646sm4895282a91.10.2026.10.16.11.14.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=uQDe13YUXK4 YusvjpfWgjXR/f6CikfAsxadvLUPo9pc=; b=cYODfx8xAqbvVxfJoFhvApx/Zi7 w34D9l2/phTJ1sUBX41xV33E2usXVVg2UCCgNMdB8VgmxqeTK9UDMhCraKZplfhB gDIOeDq2VvVWBYsC9j6h0bopOWxMouBH6yKh8vydaw/p2L1NkNXF3CWn69N7vJj+ rXwS/pXZhku/WAzEB8txrfR03V0Fwj5hHYRcUthDYGrjsK/zEgRfUZRzVplNoVtw KRbpF4x1g2EuzTK8HINjHVdsXgUVfciQ1q6kjZBplXSn+2w8zl5kp+JNC68bPVYN GUpsaWIGCxwrwzQI4BoacDwVjwkiDZlXtq44wnUUleZI1m5hZ4yROrOnT1Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174487; x=1792779287; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uQDe13YUXK4YusvjpfWgjXR/f6CikfAsxadvLUPo9pc=; b=J+u39599uGcP38ynpL1gatshd70VDeZennTSfo3aHX2lhkhc2wf6xjZUyfU2+qfk7p AckEXNzxwGgbCUTLcEqrrd3nJDv8DIbBmhyiFsBDI7nKz9s9MBUnIcEJk0onZeTNE+E2 ihneayXgWk7ZuKuNslzg7Ge/aECpdWMK9thXJcqREaGyiBXPRWwCaUbQwWzPuBvWhFfe 5PB8KWxMGPiFB5gxTOOor20oAjgPZEykMP2puFhtZFnJ278khErZtqRZE+kbtAQseX80 gimSZ5i0kFJLvKhsbcKBZoWk+hSCOOrpIYOhTgo3lNPrtPlPR7i/U93c+nAxg+Pnq8p1 V/Gg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174487; x=1792779287; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=uQDe13YUXK4YusvjpfWgjXR/f6CikfAsxadvLUPo9pc=; b=Wy3w6eXNxwO4DX5uPehxORLeaSdp5VNxfMt3CJufYffl/NHM0h96UVFdyy6UNBhCiV 6hgwmspUxa9fdUZBNiXq5OwvVpNF2r5FlcjvpnLyRYiKNkxIqzUsY3nwTHnUnFPTIPkR +JOqGtCnktMo7nc5YHEvO3KYbnm8LVex2pQ1jrrulg1SGjqbLhH1E4kGTbFQR/mCt6cz d+blluf31r31R10aE1igHCwejNEo02+9jlXu7UmwCZq/4XJlA8P5JOeJ8+8obIMxyXk1 ziugly7w8imQ2G9SeQmjeUBuFAfibjLdfIQWt16K96WWYG/9cW838d1wKcBP2HvmW3Wf vJDA== X-Gm-Message-State: AFq9FYLh50uZPUiL5U125agkpYMSdSjQ41gs3E4Ul+egsa7svijQhqEy 0M/SabwUEYVRWMB7VvGmKF7DyIp0AfyRFZ8zJPe0ToTYRHwtsueM17OkxbYcEU+NPqbsicVhdKK 4Fj9QXojfcSB8hztP5ESvl/22JCdCZBbVzF8PHWdXfzFOfe01z/WjDqyyKV9jYX7Gwg== X-Gm-Gg: AYBFou2HBvDXk1jzH8a+95XZlK94f8poUkhNfB6KX3lj9tP4hUkOp1fICtNaobaZwEr CXa4h6foxr8XSvs0NDO0REsRlMxNbn4924DNQLgeHigZmhoy3S4RUPKpNbDLVIfQVEx9aPoyJ1/ BQHAGDTxPjjlGpT89Rpf8w6m3CAVaAa+/qhPyZ7XfSvqqOP65O2u8z3MyZuE4K2CmrS8090dmDk xwebNj1b9ZVmPxKKwg/I3fopGQnmqaus7ECXATPRbrMdxWP/7y9Hv6+H3ewh43qUnehrccK+qp1 HO1NFI1vNG3SLaSrkwojqnOgj91BeMx1cT73LVqM8m/XsEBsU0+DtnD56zkwwtBtVMePCGDt8Ii zmlYM6PQTjoImtAFv2JvlazK+k20YT3lau7sYUdS2ersDp6Rg3lsvQIaRNFGQNz8= X-Received: by 2002:a17:90b:55c6:b0:3ac:80dc:f419 with SMTP id 98e67ed59e1d1-3acef144e49mr490627a91.25.1792174487165; Fri, 16 Oct 2026 11:14:47 -0700 (PDT) X-Received: by 2002:a17:90b:55c6:b0:3ac:80dc:f419 with SMTP id 98e67ed59e1d1-3acef144e49mr490607a91.25.1792174486678; Fri, 16 Oct 2026 11:14:46 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 22/23] dump: use get_note_size sysemu op Date: Fri, 16 Oct 2026 11:14:09 -0700 Message-ID: <20261016181410.191743-23-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: 0BrucET2Y4vgC2Q3z8gYmPeNUd7hJzAF X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXyYcSwoRpE/0H O37GsS6AqeNxdEmSvM9tHU5w6eRYR+9EMpiIIBUISbC0a4dB8zc8arGPQKySmTrotyO4YUN0Xsh 2ZwOzEwrU4CjO3afX1l8W8ARYrrZXgA= X-Authority-Analysis: v=2.4 cv=SrAFe/O0 c=1 sm=1 tr=0 ts=6ad26998 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=EUspDBNiAAAA:8 a=4q89r5wyS8jGYcIIz-oA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-ORIG-GUID: 0BrucET2Y4vgC2Q3z8gYmPeNUd7hJzAF X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfXwk7/7JuEOGmf GxoLdZwRIgNjnIIUu+3ldVXPYw1aSShOqRww7Z1VLP2vN1QwkwpxgVoXYoaohIL++92ZxI9VoyV QnLVmWoL8ZGO9u7j6MBlXKRA/3TVyMeLpU07hkUzYaX2xJ0OU8iSJslWnpp8pd2JF3vsQ1Lb47c Ab6lY8F+18ZhRVlx8t0sBPAgF5INwF1dtif1MxS4MKHssiSpv8nNL8BzSf1G4E0CF7ttIScYDA2 e0pTrX26zGgEoUaCjuu7Np0CHrKUEkWdRBKTUbLQWYv9jVtM41hCcSMjHlNdeFvE9HGLSuZg/Fr DH9NJ2pBtF/XXskEj95e0ubRll3VgV6IHLl5de043RQVIxNKhNUNDtW7siaD+N9dmRjyqT7RwUy miXH0Ue+fpwdgI8aJ400U/8DUx3d7gwiDZ9787MFz9nVhT3KGrM2xU+SMmTRSFR6skqRf76KnwA IzUUYCjRa9h1Trh2pvg== X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 bulkscore=0 spamscore=0 phishscore=0 clxscore=1015 malwarescore=0 priorityscore=1501 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174596468158500 Content-Type: text/plain; charset="utf-8" Now that all targets implement this interface, we can replace the cpu_get_note_size() call with the new interface. We still pick the first_cpu, which will have to be adapted when we introduce heterogeneous emulation. A target implementing get_dump_info is expected to implement get_note_size as well, so we include this check before calling get_dump_info. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- dump/dump.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/dump/dump.c b/dump/dump.c index e0a7dfd5878..06c37110fa2 100644 --- a/dump/dump.c +++ b/dump/dump.c @@ -1866,6 +1866,7 @@ static void dump_init(DumpState *s, int fd, bool has_= format, const SysemuCPUOps *sysemu_ops =3D first_cpu ? CPU_GET_CLASS(first_cpu)->sysemu_ops : NULL; if (!sysemu_ops || !sysemu_ops->get_dump_info || + !sysemu_ops->get_note_size || sysemu_ops->get_dump_info(first_cpu, &s->dump_info, &s->guest_phys_blocks) < 0) { error_setg(errp, @@ -1877,8 +1878,8 @@ static void dump_init(DumpState *s, int fd, bool has_= format, s->dump_info.page_size =3D qemu_target_page_size(); } =20 - s->note_size =3D cpu_get_note_size(s->dump_info.d_class, - s->dump_info.d_machine, nr_cpus); + s->note_size =3D sysemu_ops->get_note_size(first_cpu, s->dump_info.d_c= lass, + s->dump_info.d_machine, nr_cp= us); assert(s->note_size >=3D 0); =20 /* --=20 2.47.3 From nobody Sat Oct 24 15:41:33 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=1792174592; cv=none; d=zohomail.com; s=zohoarc; b=Q1KUsb+3gC28u18LW3fG3eNn5h4DygHMZSY44wE4lkvLYcVt9az7/Pd5r7u1QHhgHyvV0b+D1xbZzB7LZ9QNnG6OPXZym8GO1ThsKjciHGuEYruDxRWD/9Ccn2YbS1KwV5zu6LUSBp5o7vHQoTSaoG3aiXSKFQh68+z677YgRjc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1792174592; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=mwUbaBKeDlb9f2awaBc87iv4k5Ow9wEmJvnFxoMuF5I=; b=liJA5LM7O5mjo61vsZl9w8ue07QhB090Z+FyR1/aMKFyWmyrKqkFbnosj76EfEWaTai0FaIEWQH9oaGAkv/Z2TNVQyB8It3EQew8xHJDq3GhW+i/Gg+Ibrds66//Q6qLdUrrD/bVrPshLUUNIiHUIIVvpu/aWRF+u0cIwko18nI= 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 1792174592557301.26199077608726; Fri, 16 Oct 2026 11:16:32 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xHmTJ-0008WV-I5; Fri, 16 Oct 2026 14:16:02 -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 1xHmSH-0007GB-Nx for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:58 -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 1xHmSE-0000bL-Am for qemu-devel@nongnu.org; Fri, 16 Oct 2026 14:14:57 -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 69GI5NBc4097587 for ; Fri, 16 Oct 2026 18:14:49 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 4hbrw7015a-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 16 Oct 2026 18:14:49 +0000 (GMT) Received: by mail-pj1-f70.google.com with SMTP id 98e67ed59e1d1-3ab27eb38d6so227665a91.2 for ; Fri, 16 Oct 2026 11:14:49 -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-3acc48e8646sm4895282a91.10.2026.10.16.11.14.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Oct 2026 11:14:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:date:from:in-reply-to:message-id :mime-version:references:subject:to; s=qcppdkim1; bh=mwUbaBKeDlb 9f2awaBc87iv4k5Ow9wEmJvnFxoMuF5I=; b=fDkTDZVQIzmJcJynZUNpgrqyQIz pj5y1xQ3IpX/KHSGyQgXMlsVNsRYkOJmhR5lC3xsxTwJMDfR8pyWKcbeEvS2sbTw s5NNY0sjEkx6GaqDZpGztlDVQGQsqJncRgYGFLKSIPBuibyZlfgz2o9AWkgW9vSK ftJ2XAho+zdgROxn4qg1jMS48SWx0OTLiG7d7M/golqPX+4qVKkEy23XlV22pFjQ ya3X2JdLtZoCiFXCWinGgaJ/Q9s9jucquMpRycU3TrSHEynow7l5Zd357xyk/byJ jCr+Hu5RmY/HYKOPlp8u7oiNkKNn3gX+DQn/gdG6iPH5sDowh0wmpGKa2fw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1792174489; x=1792779289; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=mwUbaBKeDlb9f2awaBc87iv4k5Ow9wEmJvnFxoMuF5I=; b=h19efzjRqgECiCwZxdVUpi+WV3+7mfBclnyQN1iY2hY0y095UUQkVv6N9pBTA5G+VO Cs8H/E4VR05GzW4Gm57bKfg6lig3GwJILJRNxDi87Xu3rQEQyj0bp2x7oRTeLrGaQ7kR I91+AakAMrj7A8DsKuo75pm7k20t/MNiAtw/E9iDlYdkOe+yYcFB3ioC4NCNcbDIgvwS MC9J5/c5qxEA6FhDwwySRQinm7QcdLtAV7YuxTvwAkrQ5B1SSLm5Tygl0iHVCF762RI2 a7NS2v99u/VYcicYjinlK2CVGlQgx7QhHFUZX8s3HwGRngykhVh5JH13nhRykKrD9eOe w9Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1792174489; x=1792779289; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=mwUbaBKeDlb9f2awaBc87iv4k5Ow9wEmJvnFxoMuF5I=; b=zlChQ5I73J5MkiuiJjPiM6CzDSeybnSnVXlCDStxoThWjPiUyg4LNr1o2uASMTvrsk FtoLVsMD0vNrpHtnHhTLy86SODoHZczsgvZmSCspsgdfu6CKZ2w4cc/mz0yA9DPxn4tO UgEk/aXscmyttDKZ8I9ynC/IId242snPa86dtxmgrndtccxXUf9WC4yJh9NpXVPJtN2z KGHaQQeYvlpAJMw59rrp8XtGxrijtZyg6Dg2gCFnOaQcIoUobmNgv6O2IWrFHtA/IOIN VLeVRzrlyxFmqlQiTvgX3NDTjWCy6vNbqRWiz/PuR1SLb2FTV2NrdPVre0iubwabMs3r J38g== X-Gm-Message-State: AFq9FYJgnOoPEDfr1TkNdIZ8QH6I5cH+qhgphUgK+XLk6wCUq61e74qf hNTgIkvk15nzP2hP980M4C8EB2BfB4hjWnAKYRrIX2zC41/b7Z0fT4OmwI2+c1nbeM8zzu3xjo8 F06wjTN8AqENzMWC13yMc49lkuvXIfvyY5NLpgsZ+ul6RmYX12acJMvhwkbEZmWS3VQ== X-Gm-Gg: AYBFou1mGaKTeqeeECsdqmyR57LSCOeW7CXZHPY1xgtWOGe66OFiMXVMveRqGDBAJNr ar6VI8r0/MmXvyx579LzA9ArMueK8SMuNan7xOXva8bjBoBYzmtuwkf9ULKQO1RzQGUIhUkRArn usBz8/YHFKPedPLzgHlLRSuNH/Oe/iy2+iNworEvbc/3eTRPIUQd08IvIX95FYINaoaAIobY/qt 0t9/qnhE/9eFwRvbWhmbGxSIpAP+dKtyX5HCc1HdnfBZsE5nXmC921PuRjLaIJO3f82RO8y+d6+ ChndpF9XfixEjQd8MlpV1ZG4Ry4NFjJydlmsJFbu4EC1zBQ/fJ6z3AsYX96B803D4nAOolV9JT1 uPC90hXMsimAzHvB2+pXBQHthcLVxiJvWSMDiTx6HrrRQKku9DT2st8/hcV9bYAU= X-Received: by 2002:a17:90b:440c:b0:3ac:9c37:942e with SMTP id 98e67ed59e1d1-3acef5388femr567725a91.49.1792174488621; Fri, 16 Oct 2026 11:14:48 -0700 (PDT) X-Received: by 2002:a17:90b:440c:b0:3ac:9c37:942e with SMTP id 98e67ed59e1d1-3acef5388femr567706a91.49.1792174488119; Fri, 16 Oct 2026 11:14:48 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , anjo@rev.ng, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Pierrick Bouvier Subject: [PATCH v3 23/23] dump: remove cpu_get_note_size Date: Fri, 16 Oct 2026 11:14:10 -0700 Message-ID: <20261016181410.191743-24-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> References: <20261016181410.191743-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX5TyUA5mSIBD8 wZePLrJwL9bVlyT3tao1VXm5rTZyud9b1DtUhk3jyY0X9ydwtBjmRZLBmOPsDGZa28yIatTAHWB zyTcPS1+dnPHbAGz0ld6Da7PTybRncU= X-Proofpoint-ORIG-GUID: 8CvynELFKKO_eQFSIe7FCiCzJHrn6w-U X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDE2MDA3MiBTYWx0ZWRfX+GT8m8aftCrU I7aJDhStyEse5EQlyPQsTlLN/HT5hyFwhwHZmjVnsFG10jgDjCaQI3bPKAiDUHU5Spu7b8u9MQd 8z7Ag8REFJRGxJs8dw6oJOSGcZZj0AoI77Ju/oSj6v1Lw83WINRvwyL/v1MIZ8pARsofXTBJwj8 OLBk0nFDTnV271BVdbG+Oz/XoQPekdXjlp+2TJQ149ipTT6hPkgXERQDHcVHmRbl1UT4iTI9gCG SLiEIYI2viVfLoN02sVhnMYh53p9UIfxHkG7pLTtRLujOCFyYCRKhjN1moZrQd0DKqxkUCh/3yl eOY8WciI7uRKE9J74W898r8iB9BI5eB0zt7qJxK4ni+XGyZ/FnePKShxdbvY1BKxFaKBu6KLJw9 MXtxXmPhUirpjOfmWG6zfyAVHew0qWzCwe/3azwJ0PZkckcAvYURFQYXsZpIDKQvyp23OSZwnDc 9S9oAkRXBzj+c0rs/OA== X-Proofpoint-GUID: 8CvynELFKKO_eQFSIe7FCiCzJHrn6w-U X-Authority-Analysis: v=2.4 cv=XKKl2ghE c=1 sm=1 tr=0 ts=6ad26999 cx=c_pps a=0uOsjrqzRL749jD1oC5vDA==:117 a=9852oil1ID9t5xBSyQ/BEA==:17 a=660iZSQnnn4A:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=EUspDBNiAAAA:8 a=omOdbC7AAAAA:8 a=CyLEvaaXfOEYD9uW4qMA:9 a=mQ_c8vxmzFEMiUWkPHU9:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-16_02,2026-10-14_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 suspectscore=0 bulkscore=0 lowpriorityscore=0 malwarescore=0 adultscore=0 priorityscore=1501 impostorscore=0 clxscore=1015 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610160072 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: 1792174594556158500 Content-Type: text/plain; charset="utf-8" Now that both cpu and the dump implementation use the SysemuCPUOps interface, we can remove cpu_get_note_size, including its stub. Reviewed-by: Anton Johansson Signed-off-by: Pierrick Bouvier Reviewed-by: Marc-Andr=C3=A9 Lureau --- 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 ----- 9 files changed, 54 deletions(-) delete mode 100644 stubs/dump.c diff --git a/include/system/dump-arch.h b/include/system/dump-arch.h index b89e495661f..1df88e732d0 100644 --- a/include/system/dump-arch.h +++ b/include/system/dump-arch.h @@ -27,6 +27,4 @@ typedef struct ArchDumpInfo { void (*arch_cleanup_fn)(DumpState *s); } ArchDumpInfo; =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 60456e81bf8..986ce3d7884 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -453,8 +453,3 @@ ssize_t arm_get_note_size(const CPUState *cs, int class= , int machine, =20 return note_size * nr_cpus; } - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return arm_get_note_size(first_cpu, class, machine, nr_cpus); -} diff --git a/target/i386/arch_dump.c b/target/i386/arch_dump.c index 4d8e9374cd1..4a375f5cbe0 100644 --- a/target/i386/arch_dump.c +++ b/target/i386/arch_dump.c @@ -461,8 +461,3 @@ ssize_t x86_get_note_size(const CPUState *cs, int class= , int machine, =20 return (elf_note_size + qemu_note_size) * nr_cpus; } - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return x86_get_note_size(first_cpu, class, machine, nr_cpus); -} diff --git a/target/loongarch/arch_dump.c b/target/loongarch/arch_dump.c index e27bd0f6497..0b39fc73c12 100644 --- a/target/loongarch/arch_dump.c +++ b/target/loongarch/arch_dump.c @@ -163,8 +163,3 @@ ssize_t loongarch_get_note_size(const CPUState *cs, int= class, =20 return note_size * nr_cpus; } - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return loongarch_get_note_size(first_cpu, class, machine, nr_cpus); -} diff --git a/target/ppc/arch_dump.c b/target/ppc/arch_dump.c index b59fef3c48e..f54729d77a8 100644 --- a/target/ppc/arch_dump.c +++ b/target/ppc/arch_dump.c @@ -269,11 +269,6 @@ ssize_t ppc_get_note_size(const CPUState *cs, int clas= s, int machine, return (elf_note_size) * nr_cpus; } =20 -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return ppc_get_note_size(first_cpu, class, machine, nr_cpus); -} - static int ppc_write_all_elf_notes(const char *note_name, WriteCoreDumpFunction f, PowerPCCPU *cpu, int id, diff --git a/target/riscv/arch_dump.c b/target/riscv/arch_dump.c index 74b1489ddcb..05b637bea93 100644 --- a/target/riscv/arch_dump.c +++ b/target/riscv/arch_dump.c @@ -195,8 +195,3 @@ ssize_t riscv_get_note_size(const CPUState *cs, int cla= ss, int machine, =20 return note_size * nr_cpus; } - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return riscv_get_note_size(first_cpu, class, machine, nr_cpus); -} diff --git a/target/s390x/arch_dump.c b/target/s390x/arch_dump.c index 3ca85e6b64b..5048fbaf982 100644 --- a/target/s390x/arch_dump.c +++ b/target/s390x/arch_dump.c @@ -496,8 +496,3 @@ ssize_t s390_get_note_size(const CPUState *cs, int clas= s, int machine, =20 return (elf_note_size) * nr_cpus; } - -ssize_t cpu_get_note_size(int class, int machine, int nr_cpus) -{ - return s390_get_note_size(first_cpu, class, machine, nr_cpus); -} --=20 2.47.3