From nobody Mon Nov 23 05:10:03 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=1790494378; cv=none; d=zohomail.com; s=zohoarc; b=m7ykaThryvxRvYHSlaVgOvIA9k+50ssZ/Q9pNyu4Q+aKZlwybt8GgwRwkTu3Rv/phR98qIUNrX+Ec1x79WqfPX12m0vVtaZ6ZhLOp7ZaLd6E+Pl1dEUssy3CryDCIi5czD4pdRDLo46ADbUORIaOUhOXS71jFYinCPwjt+b1DZg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494378; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=0vhTUWmO1CBOODqegI8wlkPMle6pvYQ7/sxMh+byiqM=; b=RlSBULyhucNFoubIjFZm5yIA8oQ93Q9sQQNfux4LMwLeRTsu5jZC3uxn92Fy/i8AVcoSnVslCWIIkrTsDAr4eKp7TVw3pcWEPjPRXcthbk7cDvyJbX3Yg5If9sDyIFxARLHpnoAqKomYezclRLRCLJlgooeSm8Gh+MIjxnjvDEc= 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 1790494378701656.9173144684113; Sun, 27 Sep 2026 00:32:58 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjN7-00077W-M1; Sun, 27 Sep 2026 03:32: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 1xAjMc-0006v3-QO for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:03 -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 1xAjMW-0006P0-Rq for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:31:55 -0400 Received: from pps.filterd (m0279865.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68QNwB9Y2169659 for ; Sun, 27 Sep 2026 07:31:51 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx50sang2-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:31:50 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93a0b66ecd9so336653485a.2 for ; Sun, 27 Sep 2026 00:31:50 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a001778312sm93063945e9.8.2026.09.27.00.31.47 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 0vhTUWmO1CBOODqegI8wlkPMle6pvYQ7/sxMh+byiqM=; b=h1JlRj46pkHQBadU JUE3/VLWwT5BXShTVMLP4VnqB4CJjhE+bDpZ9ej2axSw8ZYZltqCEeYTLt86tvQg 0ln7BYvvZIXzPv98a36iNsU63rToAUmCLLwu47TzBp+RCfWh/+3wqdQxEhvxBqp6 HYv9PZWCtIKnQMPkx8H6vfG6v6qxyo2U594knUDg6Ch9kimGnjijowjNNVLJgayY 85KKGtTyMAbAM1wG7HygGpc/L4JXzpbTTGtHgTwLRJBbLflEertxHM0a7Vq+96Tf h3z7oYTrbagSuqU8YETbS2Mdy7OPTOusRgxpFO0rfwoeCdIceg967W6Lu0DUlt6v Z+fW9w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494310; x=1791099110; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=0vhTUWmO1CBOODqegI8wlkPMle6pvYQ7/sxMh+byiqM=; b=MqWpm84nu1cbFt2nxuSSn4dP3jn/RG/0ALHomdVyf2yO+HHhDKiFO/aI/V+hYGX3kL tufeMGq1FxxX2uZGIgy3rfjwFpsgAuUTeeGfrZZuVFa9KBxdu9dcSqqGm3JNHxulSo4+ UqbA0o6Wf4TaxmLURj7ClD1bHuAakhcW3eZMDvTrQ3MYQNW+vvfaQoJFQmwYi5N/Ph2/ v7NCe22zRHMJH6t2pntxaR34FVnLSlgB1Q9nRLF541L9mOH6DphkWz9Pb8S/cJwFMt3K 10mILM/0bYILReleSbZI/Gha7nl9udZ5QLCh5ekWuW46zxhg7x4A4/P7kS9q8RTb6TnK OzXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494310; x=1791099110; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=0vhTUWmO1CBOODqegI8wlkPMle6pvYQ7/sxMh+byiqM=; b=WtNFFxywXz1Z18dx+BPSku1IT2jsGe8mA3p3aF+I0FXhv5hup+JD39G5/m9Ug1xokz 6qINAN0fzpzycqFBrV/ruWlbQAJKfn9bUsZQQ0hltrH9BiSfXWp2a6Xi6w7g/bJC4Icd kbsR7j9wCiOpsAy+wuU32+gVxmKetR3mJpB0wVqtV1Z8Dwzav/qLundtB11Pg67WEIGs 9FvNojZ7GlX1HrklWWJV51blfx2VHJF9oN9c9t87ChBr0tha4wC3s13WG4Nd2DZMdp/o HypgagPxgZ2Jwm7XiygTO1OBcTZJH7CGmisWcl+JsDMTQlF564pBtPloRTWDufUHVHnp dNzQ== X-Gm-Message-State: AFuF++nx86Ggv1h6jmwr347IkE6RuRrvH5hzRZqkFN1K561yWRsQQW6y XA6P+KuW6B4sjcT7d0sOiG1UkwHMUdFfbAi1tbmp8dyqkWbfpC7K/Euwwx8gtqa8FjOHC1QEd45 t3RG1OrgqYKsMYeDEOzZYhs2e95T6bjgQkv4SYihaD2c88Hs8Eks3q1nX5EXWgVI4eg== X-Gm-Gg: AYBFou2d1KuOuWB8yKkZoIHm6IVCJvCfEOmovf2nr5ux+tXysk6hWpHp7/XgtI+ZTTW paDe7xKpZYEtrTIPMdyx5GQszm1nQrGeM/oBhW7V2iz2WdjVEoeSxhYEsnfhsX0DinLT0ufNnqj r0kb5eYXOl+THbmJOw0by3FhKQJrSu45xEEtxiiwSH34FQPtEcPTyBRJ/xPZ3abHZJtj3FLH4A6 zqg3+fqjks5TQFfAl9xLXyITUcEP6LJhLx8W3dYnKHITnG7SJpqbxM1ap6fUM697cWkX5ITThpP Q9zAbRCjnCNzd5xfL9Sop3YuIZGY9QTmzXbGI7Sl5gTXuTZeJMbUN9wRJfOPSlKkmG2qcLLoRtJ BeBIyfOqx3nmL0BrEoOkKk5jFrd3IkPEf9vogr2Yy X-Received: by 2002:a05:620a:bd4:b0:939:57ca:7e06 with SMTP id af79cd13be357-93c43c306f6mr1421856885a.9.1790494309818; Sun, 27 Sep 2026 00:31:49 -0700 (PDT) X-Received: by 2002:a05:620a:bd4:b0:939:57ca:7e06 with SMTP id af79cd13be357-93c43c306f6mr1421854685a.9.1790494309281; Sun, 27 Sep 2026 00:31:49 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 1/9] MAINTAINERS: Add Anisa Su as a reviewer for CXL Date: Sun, 27 Sep 2026 09:31:32 +0200 Message-ID: <20260927073140.41422-2-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfXxXzNMP/EAweO 8ehCS+3sySumEcYfpSbFlrLljSxbn0C6IITcFONvHzAA1HOpRNGj5s6WUA0KffII9l+AlqFF/IL SrzM+kVD+t+rOxXFV7wyVBfewp5W6Nw= X-Proofpoint-ORIG-GUID: 1vnIbGdhQglxfvGHZRM6JsWOksUuf4aa X-Authority-Analysis: v=2.4 cv=WuK+otfv c=1 sm=1 tr=0 ts=6ab8c667 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=pGLkceISAAAA:8 a=R4ayLD03AAAA:8 a=hD80L64hAAAA:8 a=EUspDBNiAAAA:8 a=VwQbUJbxAAAA:8 a=QyXUC8HyAAAA:8 a=robCOLs_H-nC26XVNfAA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=qJlm0-shE6CLU_iKUWNr:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX/yo9a1hEq6AN kiqUgm8tAox7BOmkf6eFKEESFEa/A6mWMnoSnuH1Ms/AxG0Dm1AAHKhLC5kOcRqINHhaKhay9/R zbSQ0dPZj8VMvgijCb55t1rsCPeolmy/yLxF7a3c7Y3lMiTP0O747R86i3c5NkpcMZh5AhcH34e FdND4ipR135FpnudP1wNtWHfi2TyGlbeVj41VMI/0vCTVuE8bZvpeyP/zr2em0ViMkCrD6KiCHB oieoOcHpRCCcEdO+6Q7GhvXPNJiU6mupF6kbkPWqh5Xtm0ugUCTEQ19g5K5wZG09rb9RDtb4sR0 DTBZnn6mVQMOQeHobb83DdtcxVkaQFKY7eVsgrLUdmVW/5DyUA3Qkdis/MCn+146TQGczqh2IRk VWMLmV+XR36NNGYg1R5QPtgi9QFqy4mcwgZvgKJBVhpeeGe2xbk0rMSsXx1JtPnSfPIwByx42Mn sWE+95L9+qLYSP0Pyxw== X-Proofpoint-GUID: 1vnIbGdhQglxfvGHZRM6JsWOksUuf4aa 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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494379795158500 From: Anisa Su I contributed the FMAPI DCD mailbox command support in hw/cxl and also work on the Linux driver side, which is developed and tested against QEMU's CXL emulation, so I would like to be Cc'd on incoming CXL changes to help with review. Suggested-by: Davidlohr Bueso Signed-off-by: Anisa Su Acked-by: Jonathan Cameron Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260916002143.777233-1-anisa.su@samsung.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index 6be9c5725b9..026c11bd9b0 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -3338,6 +3338,7 @@ F: docs/devel/migration/CPR.rst Compute Express Link M: Jonathan Cameron R: Junjie Cao +R: Anisa Su L: linux-cxl@vger.kernel.org S: Supported F: hw/cxl/ --=20 2.53.0 From nobody Mon Nov 23 05:10:03 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=1790494456; cv=none; d=zohomail.com; s=zohoarc; b=g5oAMCtw0syVDS/3eUnk3WWLFBqiyKQQ9cVjjUNtfNo4dzzDyV28I45dLIC+5veQ2jZJsha8bppep49ti1Y6Gbq95p9RSjioXXzmqBdg3c7EileUT6rJxcjl7/mjOwDjGf4f+gkWauZaD5Wg58+IAEQ2U4uGNtKIVEG1vVTSS5A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494456; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=6SQdNVBNKfGtXfDP/qEYk1lZmc2wZEFE3xcklehMAxY=; b=CvfOXx3t+VeQumMaYoVfcaFbQ0LWVij/pSllM6+R/iJAigosc0MpXMY1x6nbeqBEMIs9gdQn50NWte/QUNFNIgjOVnXsFcV7tO0mqwQhjtivJg5uobVURyeRmi+9Mzyv125iTMaM2pQFjms9Q5S8U4ciJrwkxmHk4/DJQ4mMVg0= 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 1790494456207225.50721064644245; Sun, 27 Sep 2026 00:34:16 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjN9-0007Ha-GB; Sun, 27 Sep 2026 03:32:31 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xAjMf-0006wF-Vr for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:07 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xAjMd-0006Pt-RF for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:01 -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 68QNvhVv658307 for ; Sun, 27 Sep 2026 07:31:58 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx6tejdrw-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:31:58 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93bf4c0af4eso575474485a.1 for ; Sun, 27 Sep 2026 00:31:58 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a0018dcf59sm52035275e9.1.2026.09.27.00.31.55 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:31:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 6SQdNVBNKfGtXfDP/qEYk1lZmc2wZEFE3xcklehMAxY=; b=dJYykUY4DwJ+Av5N jH616BM2dtLP+THlqQsJdW671HowzNMBHz6cTGSOekBcdduJfnZxGMrENcmnquGk MP1KU6/5OAHT2h17q2F/XW6JhjjnE1BynGhM34fLcdRYZwuqR0wrrGIPY6oh3Ozv vqQf3o9+6KDXaf8pJpO5/VIPrJMQSK8WhHgAoem1gZV6yv2CpOfHTLFCrSPG4c4d Vj+uX5H2MpiN1uupOJSZnI5CeQCMCAdnFIMzYWhPYqiz/JYDMt20/Uy7cz+7eyrr GqLAc9eYF1dmNWVCHMyjRewCrHW3vf9xBI2f3BcZklgZJrtNkQ3GeBWQkeCNHz/M nn3yzw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494317; x=1791099117; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=6SQdNVBNKfGtXfDP/qEYk1lZmc2wZEFE3xcklehMAxY=; b=j97IzFzZX9e3wyrWN9X3mV2u7cseFexpRIAvQdh8/2PIUP5kLjfnKys0GJtTz0tggH 0McgE72vcj5LoTEDsHZM5saOu+QykcrOysE7tPozalqQoYtLfc3K01W6AUjxfDlohoAf KL1d8FW5RLQQ88ffRfbZ9AWN8zlUonapSVAXFpIbbKbiMW/HoeOOg3QDb3C8q9WU3anj Lem80zvJlKn0p/+GBAWzVNhD05Pg6vzyt2LxmPu7EERwjX0DKAMSTocnWS2yjzYoFjTB ISc9yjI3vO71WB7DDlp0IAONCDJyYnSRuPh8kr0Rco1R+ebcvaD1v8dph9Ors7RQ29ES PkQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494317; x=1791099117; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=6SQdNVBNKfGtXfDP/qEYk1lZmc2wZEFE3xcklehMAxY=; b=dXEETOrXMSbk/DE11ARJ4ZMPurZ0tP2Uhvmp8SjA61F+jBLD/bLycVOltHu/z41WeR 8/kOFaUogOCRllZYwmzn8hkgmL3V+UCSzS/YQ3WGLLtP8YSt5Aosd/BLxaRuvmKIhJ27 IXPbHhfQIsoXkxShyrePUbtZyZAskjPOopVzZdVs262JMdWBfYQtjYNF3HQbdpGf4WLN e3VYJq6+oS3lLWZ6bFS4nff6dT8djzoN6hQDq4kUxf1/ts4KJ259UOJ/LZYQKN3Y5z4C tJCCJvvk5xp8nDfjH1+jO9lB2oZqZrZmYMlPYdFXa39XpD8GWgwXNSAJnDvDEI6FLdpe 2evQ== X-Gm-Message-State: AFuF++mhFSFqkl6kLJOO1rK24nQcs/X5XVnhOFfRASoKOG0DO5/5a+V5 u64/SCiaGHp1fho1fxFcBz+q85bLZxx2z/Ekdamy68XjyVltneWS8eHvPJ1lrrTIyAUm7Zdp3EU 0UIs0XkcpuyPqR7ca8hsnIVSjCFOEgdgBA+KfNqzCXaXKb37t2unW1gKApg8uNrONOg== X-Gm-Gg: AYBFou2txAqSSC1thso0PUNWU0UzhXejNzjVrog6xwXN38EIhSd7t6yeDKghCELQMPv drnmQUVqaFCvHAR1nrWmWAUThxspngx0UbGeilLS34Zm6BHdDEE9n003ZU7j01TzctpTvRmoImf wSDMkhPPFanBoTwe32NSPLcin/IJ+D38sXzgv85vjdgSj8eTPmv3AORAYzi7RvbYlqkaD7W+VUK XgiE03EqQ/iOFXVdmN0tUKu6i0NNXvlA1ryYydXc9JfdXS+Ue44B6f7K4Yx6hAxWmMr0pawE1CC 6U29qUVE32iRtx3da5qgKlT4i5maS3Zujizda/CybkbY2tBItOC6IfjrNfH8Vmp8v8Ju55h+a8i wPrQUb5RHmxbBYQzIqG90rdddP1Ki9bo/rwZNK/l0 X-Received: by 2002:a05:620a:bd4:b0:939:a9d4:7023 with SMTP id af79cd13be357-93c43c2241amr1315481885a.10.1790494317373; Sun, 27 Sep 2026 00:31:57 -0700 (PDT) X-Received: by 2002:a05:620a:bd4:b0:939:a9d4:7023 with SMTP id af79cd13be357-93c43c2241amr1315480085a.10.1790494316819; Sun, 27 Sep 2026 00:31:56 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 2/9] hw/qdev: Clarify instantiation and realization Date: Sun, 27 Sep 2026 09:31:33 +0200 Message-ID: <20260927073140.41422-3-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX6Um2ZQS96lzE riTGAtTUvZsen7pj+/bRF4fpS0iJCmJHwMaPRk3svL29yQRWgZYJ0BZlFppGnN22qY7TWiIJfkR h8wyRXQNf/KJJTP+gQt0e0H9inUPlWbgOlEQkhooSvMno+vmWWF8Hw9sOjNjPjEH27FofFKWfnZ M4+4QMEF9Uy7sL3uuis5FiAgNJ22Bv5qors0Tz6W/Z+zuHhtHHSGR2PsP0MM8XSQ2NO0MebyMqk FjG5uG8Hiz2SN8hD59Klb//uco0navCNy+RWiqR+6kUzltjI3JpONehVpNAXWb0ZLQ96CidChkj 6qAbG+tTWbjjDm//9c7F05WAxcOLoJnLypf4soiE/4KOVpLJUfZTeK/wuYVuVvLgxNb5II42QRE b1Fjni7VFKwxTB9xwBUNLMLQuUnlPj/WrHq2iPpdnZZSzEMWK8ADiZAYTKmedpt6ylVK+dVAcVj qhOPkDJgb5W32sqnJeQ== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX+if8Uaygo1R5 QHKOUTG5Q2zLBgZ/6C4PoLaFCnyzpGA9a+H/1Sbj8Jx+htQvuWtXYV0Wu+KAIJXQPp+873+doF8 Vc0yYQXnJfbjbDd/W7MzTAsA9pDAdNY= X-Proofpoint-ORIG-GUID: AnZK_yUNYmysa-kqX7GOzVNiloftx69s X-Authority-Analysis: v=2.4 cv=X9LHu2Te c=1 sm=1 tr=0 ts=6ab8c66e cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=_K5XuSEh1TEqbUxoQ0s3:22 a=VwQbUJbxAAAA:8 a=ZiMIAIO6AAAA:8 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=tLtHeN6WSEounkZ1EaUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=KohFQSMcaiS2QNUyYz07:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-GUID: AnZK_yUNYmysa-kqX7GOzVNiloftx69s 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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 priorityscore=1501 malwarescore=0 clxscore=1015 adultscore=0 lowpriorityscore=0 spamscore=0 suspectscore=0 bulkscore=0 impostorscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494458227158500 From: Akihiko Odaki The distinction of instantiation and realization was vague in the old documentation so this change clarifies it. The old documentation said: > The former may not fail (and must not abort or exit, since it is > called during device introspection already), and the latter may return > error information to the caller and must be re-entrant. > Trivial field initializations should go into #TypeInfo.instance_init. > Operations depending on @props static properties should go into > @realize. The first problem with the old documentation is that it is unclear what "trivial field initializations" means and why triviality makes initialization appropriate for #TypeInfo.instance_init. Another problem is that the documentation is not comprehensive enough; for example, it mentions @props static properties, but it does not say anything about the other properties. The keys to distinguish instantiation and realization are instance property setting and device introspection. The fact that initial instance property setting happens after #TypeInfo.instance_init and before realization implies that operations depending on properties should go into @realize. The fact that instantiation happens during device introspection but realization does not implies: - Instance properties may be added in #TypeInfo.instance_init. - Instantiation must not have any side effect not contained in the instance. - Any operations without special requirements should go into @realize so that they can be skipped during device introspection. - Instance properties added during realization will not be configurable or introspectable before realization. Note these two facts to guide appropriate instantiation and realization. We also omit mention of the realized property because it is a QOM interface detail, not part of the device API. The statements regarding a future prospect to propagate the realization state change are removed. Device realization is propagated to child buses, but not to the devices on those buses. The proposed recursive propagation to child devices has not been achieved after 13 years, has been questioned [1], and is not relevant with the current API usage. [1] https://lore.kernel.org/qemu-devel/878syd84s3.fsf@dusky.pond.sub.org/ Signed-off-by: Akihiko Odaki Reviewed-by: Peter Maydell Message-ID: <20260914-qdev-v4-1-93f849b4865c@rsg.ci.i.u-tokyo.ac.jp> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- include/hw/core/qdev.h | 41 +++++++++++++++++++---------------------- 1 file changed, 19 insertions(+), 22 deletions(-) diff --git a/include/hw/core/qdev.h b/include/hw/core/qdev.h index 1f6bf3fc1ab..8e91e2fcb08 100644 --- a/include/hw/core/qdev.h +++ b/include/hw/core/qdev.h @@ -23,28 +23,27 @@ * Realization * ----------- * - * Devices are constructed in two stages: + * Devices are constructed in the following order: * - * 1) object instantiation via object_initialize() and - * 2) device realization via the #DeviceState.realized property + * 1) #TypeInfo.instance_init + * 2) pre-realize property value setting + * 3) device realization + * + * #TypeInfo.instance_init may not fail. #DeviceClass.realize can + * fail, returning error information to the caller, and must be re-entrant. + * + * #TypeInfo.instance_init should add instance properties but must not + * have any side effect not contained in the instance, since it happens + * during device introspection. Any operations without special requirements + * should go into @realize so that they can be skipped during device + * introspection. It is possible to add properties during realization, + * but they will not be introspectable or configurable before realization. + * + * Child buses are automatically realized. Child devices must be manually + * realized (e.g. by calling qdev_realize()). * - * The former may not fail (and must not abort or exit, since it is called - * during device introspection already), and the latter may return error - * information to the caller and must be re-entrant. - * Trivial field initializations should go into #TypeInfo.instance_init. - * Operations depending on @props static properties should go into @realiz= e. * After successful realization, setting static properties will fail. * - * As an interim step, the #DeviceState.realized property can also be - * set with qdev_realize(). In the future, devices will propagate this - * state change to their children and along busses they expose. The - * point in time will be deferred to machine creation, so that values - * set in @realize will not be introspectable beforehand. Therefore - * devices must not create children during @realize; they should - * initialize them via object_initialize() in their own - * #TypeInfo.instance_init and forward the realization events - * appropriately. - * * Any type may override the @realize and/or @unrealize callbacks but needs * to call the parent type's implementation if keeping their functionality * is desired. Refer to QOM documentation for further discussion and examp= les. @@ -102,10 +101,8 @@ typedef int (*DeviceSyncConfig)(DeviceState *dev, Erro= r **errp); /** * struct DeviceClass - The base class for all devices. * @props: Properties accessing state fields. - * @realize: Callback function invoked when the #DeviceState:realized - * property is changed to %true. - * @unrealize: Callback function invoked when the #DeviceState:realized - * property is changed to %false. + * @realize: Callback function to realize the device. + * @unrealize: Callback function to unrealize the device. * @sync_config: Callback function invoked when QMP command device-sync-co= nfig * is called. Should synchronize device configuration from host to guest p= art * and notify the guest about the change. --=20 2.53.0 From nobody Mon Nov 23 05:10:03 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=1790494366; cv=none; d=zohomail.com; s=zohoarc; b=LrVAaP3fxo7CadrP1s2beiO/8ANzMSYoOwQEam72QuGUqLA5K0iLRoU9o0th1Edxmcar3GAwA68JW4pG+dPyLtV6k5sbswUp/SFif8m8Ru0bKs31oiVJRBLkQ92AnNL9GMdoRCW5ymw3cQcGvhj0K0yBF5b2gkKNGwh+e8WSA88= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494366; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=m0LnkdItCLFquDLXMlz78TTLSgVLZhaj+R/e+TknJ08=; b=FABMetKo6HLzcMcrn64QleHLkCofc2pD4Xjka63Fo3AeQzOr+rNFk2gqLxGGrG6fkbAMzhuUsJ90gMsNNjdYfyA2k6Atw1sTU7Yg3tDj+jWfYd47NIRFW0z2aLB3dnLKgPliqkf91ndf7n/1yAUMD5xemVtQ7bVVi5wlJJdVlJk= 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 1790494366360641.6256494392868; Sun, 27 Sep 2026 00:32:46 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjNC-0007Ua-Rk; Sun, 27 Sep 2026 03:32: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 1xAjMm-0006yv-5M for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:15 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xAjMk-0006R5-7l for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:07 -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 68R1xbHR1957987 for ; Sun, 27 Sep 2026 07:32:05 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx5mwaj32-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:32:05 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93a082c014aso455248485a.0 for ; Sun, 27 Sep 2026 00:32:05 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49ffd137346sm71460265e9.1.2026.09.27.00.32.02 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:32:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= m0LnkdItCLFquDLXMlz78TTLSgVLZhaj+R/e+TknJ08=; b=GFYAPK7aXusIMLjq BYUCcHi0IzkCBG0KkX/DlDgddvY/UJqZu453TCw30hh4Gce1J4HiIDPkHuf0HtYB BogKoO5dLIKOlHZx724zfU+t9DJcRLqRXgX5IYInDY062xfYj4+HeO9/5LZzSBRf l5A8KXniNHdr3OBYqzqf6V3D3OlmJ7Lfm3UG/2hvVmaSz+Rao1DxtZVjGZBN1FP9 J1JqyVOgOHFCys0jv+SNQsILp8v+WuKkRvkqiwQcb9MwttGd3OfDFr6I1PlasVVw jFPIAYCMNnwzK5OzXPqlHns//jTQQZLvdbSQWjDN509y4ZUJuVKSQn1LCLAWgdTV FkTqbw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494324; x=1791099124; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=m0LnkdItCLFquDLXMlz78TTLSgVLZhaj+R/e+TknJ08=; b=eaF1d9E3K7YDX/IWxolJ9t8ydssegjRYLdtPl6gnNOEAH7zWN2/fjmd8CM51vPyVK1 0iskvbEmLLk1/2/0BKktZvAydG8F4Zbadc0KiONz/CBaT8zWoqKe1ol2rlM3NbZcn/qT uSzn0ZnDuchcVJ4BMYyy5lrLjuh7rQDIkMlMSG2E70qvaGEOxCLWiTjevj3RUHWwng8z ILRCMWP9mwR/JBnfMZ/3BS3bktwdSm6bkyIdXd1l7YJaWUZFnVrteBASm4LsYfkRX6Uq bo6Vit+ZPeX2a01KsInAbBV9ULEzQpgbbYxwGHtbjpBU/GBAto4IwFrovdvhxdVuXJO5 Bkdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494324; x=1791099124; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=m0LnkdItCLFquDLXMlz78TTLSgVLZhaj+R/e+TknJ08=; b=Gd1EEOBwPdvpXbHW9zF9qotSGMcX2BpEuLZHuqmHWqJ8oAevhsQsZZLk1aPQ4eNJCD DSO7eYqeHm1TkPwRFYLTobXw748gQ/P1juHrwqfzfyV+apAgS+HC3Y05xvXowxGrtzYP IfYAE6KI8Qo1aAPO7t/2KHTfpd3cGgORI5y38hy2pkdZytLi4ifmo/MwrNdBk2pzBW5P ryl0fGVZOGdxZPEiQpU0uhHRFCvPzHA+8aj/d5dXOb5PFo+/RoMYu/yydtzK6CiesC/f Wki51/KK8zQWF2ZpRBKp6nOolgMK9RuskOQ7Iwcp/5Bc5Tnwp+Hb/gx0NX3Sfuj+qOAm lkNA== X-Gm-Message-State: AFuF++k3SVwmD6Y9O3G0MWivrIZ2AshDfXsSV4MEwJlYiExRSwqW7Iq4 +d7a8XQGu1VZ43Src3xn9wIYsxczoBHTeDw2Zj2NS5VMX9PZTQpTJPYvWVw+oY/SSb59HNwSGi9 m2tSrGMTeEVClnRS/5Ro4hLw7lVrEwWhv99Nrqb86WVQlXiayZIf7bM+8xqghElkgfw== X-Gm-Gg: AYBFou1DEUWgmOoMuK26Qe20hOKgVaVJVpx1Aig37pxXu5JKUfy7ewxkSnMepR446zB V5qZ9KYvic3Cdt6NCK6wN28aynnAaRSNSwYzT4FJH5TgKIS5SeTqU+9OT6dofjJY1V10GmU0ynU doUN4W7Sz2EKG4qyW264SzU+crYt2khFLEQOsqhSj2gAlL6BzN83bQC/N+Bo0INQlk/QlpcxfkQ RXnIgFRjm7i6c/MAs9pvZXK+++nHBvMuzhENF0Zqc+24pVx/8vJUkcJo69kQ4VpIyS92k2Zxb81 O0sPlInTKYkXVI+ZDpcQS6VyNLuxT3Etn981F37Fr1I538i1cAGLVA6rHuzHwnhQyKzU6dMvAH4 EqabY0+gF5E6/wio5Ob6IX+v22dCEDWdbSNFUXVp4 X-Received: by 2002:a05:620a:2956:b0:93c:6e1d:96b0 with SMTP id af79cd13be357-93c6e1d9a63mr200814285a.17.1790494324444; Sun, 27 Sep 2026 00:32:04 -0700 (PDT) X-Received: by 2002:a05:620a:2956:b0:93c:6e1d:96b0 with SMTP id af79cd13be357-93c6e1d9a63mr200809385a.17.1790494323632; Sun, 27 Sep 2026 00:32:03 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 3/9] hw/i386/isapc: reject modern x86 CPU models Date: Sun, 27 Sep 2026 09:31:34 +0200 Message-ID: <20260927073140.41422-4-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-GUID: aYbQBLkeRZa_DqeT-jZpWpYbJKGycGfI X-Authority-Analysis: v=2.4 cv=QvPLTlyd c=1 sm=1 tr=0 ts=6ab8c675 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=64Cc0HZtAAAA:8 a=EUspDBNiAAAA:8 a=zX-5KU0OjsM3FtIwGpUA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 X-Proofpoint-ORIG-GUID: aYbQBLkeRZa_DqeT-jZpWpYbJKGycGfI X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX+cCc6jzROkfL N3nEtOFIikznrtdJBSxLEsUjRPw7MCF2uCfbrQKDHjoLGxDyTkd906FNn58sOyLBfqlNPUOpGTq FM/aUmOuq9dwZxlxgt9ZtFuVx7FO1FIZxMaqumlxuLIw7qiPKdf9E4cvMtRnJAVA2FYImeA/yH4 /usww0dt13ACBVeCn5hYm2mDxBIBh1N4PrJsdTWjjmgRvVnrR0QUeOPOJ9K6gzTPtaqhhegTHu9 GvCFaPIs9jyX0g6mYNRApdwxdDm0RkOg2O3WrB0UCs40cEzS4nrvM1RYRmd8AZNVun9/aVO81Wq 4jfq/8+0BPMwedNAX94dfVNdGG2CaSLEkLPBGE5gIKG1I36XOEDglfHk6DQJt6gH8NwU829bkYg /XoPAOSgRieKgrGwI40SBepNNL7zqjvhD8F9NwwPZM+bcQ+Eo+dHecCkwnkijy2xTXB6rDUBogJ lZ1IAeolumYMGyFDzVg== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfXxEh8sx9JEc7g j+0EuO4d9BLO9STzHukfFKTMG2l3PWBqwKshRbdg6rV/tc8+uNAfJ5I9hFN9VlXVpUaLyLEUOgb 5mdsUOTdOzwKfBgv87rw11wUrX6wtVU= 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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 adultscore=0 impostorscore=0 priorityscore=1501 clxscore=1015 bulkscore=0 suspectscore=0 malwarescore=0 lowpriorityscore=0 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494367873158500 From: Mark Cave-Ayland It was originally intended as part of the work to split out the isapc machi= ne from the pc machine to restrict the isapc machine to using only 32-bit CPUs. Before the 10.2 release it was decided in commit 329e36af94 ("hw/i386/isapc= .c: warn rather than reject modern x86 CPU models") to follow the official deprecation process due to concerns this would have an adverse effect on us= ers. Now that the deprecation period has expired and there have been no reported problems, update the isapc machine to reject modern x86 CPUs by reverting commit 329e36af94 ("hw/i386/isapc.c: warn rather than reject modern x86 CPU models"). Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260824111054.575149-1-mark.caveayland@nutanix.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/i386/isapc.c | 53 +++++++++++++++++++++++++++++-------------------- 1 file changed, 32 insertions(+), 21 deletions(-) diff --git a/hw/i386/isapc.c b/hw/i386/isapc.c index 1ba9ae22cc3..44f4a446724 100644 --- a/hw/i386/isapc.c +++ b/hw/i386/isapc.c @@ -41,31 +41,29 @@ static void pc_init_isa(MachineState *machine) DriveInfo *hd[MAX_IDE_BUS * MAX_IDE_DEVS]; int i; =20 - bool valid_cpu_type =3D false; - static const char * const valid_cpu_types[] =3D { - X86_CPU_TYPE_NAME("486"), - X86_CPU_TYPE_NAME("athlon"), - X86_CPU_TYPE_NAME("kvm32"), - X86_CPU_TYPE_NAME("pentium"), - X86_CPU_TYPE_NAME("pentium2"), - X86_CPU_TYPE_NAME("pentium3"), - X86_CPU_TYPE_NAME("qemu32"), - }; - /* - * The isapc machine is supposed to represent a legacy ISA-only PC wit= h a - * 32-bit processor. For historical reasons the machine can still acce= pt - * almost any valid processor, but this is now deprecated in 10.2. Emit - * a warning if anyone tries to use a deprecated CPU. + * There is a small chance that someone unintentionally passes "-cpu m= ax" + * for the isapc machine, which will provide a much more modern 32-bit + * CPU than would be expected for an ISA-era PC. If the "max" cpu type= has + * been specified, choose the "best" 32-bit cpu possible which we cons= ider + * be the pentium3 (deliberately choosing an Intel CPU given that the + * default 486 CPU for the isapc machine is also an Intel CPU). */ - for (i =3D 0; i < ARRAY_SIZE(valid_cpu_types); i++) { - if (!strcmp(machine->cpu_type, valid_cpu_types[i])) { - valid_cpu_type =3D true; - } + if (!strcmp(machine->cpu_type, X86_CPU_TYPE_NAME("max"))) { + machine->cpu_type =3D X86_CPU_TYPE_NAME("pentium3"); + warn_report("-cpu max is invalid for isapc machine, using pentium3= "); } =20 - if (!valid_cpu_type) { - warn_report("cpu type %s is deprecated for isapc machine", machine= ->cpu_type); + /* + * Similarly if someone unintentionally passes "-cpu host" for the isa= pc + * machine then display a warning and also switch to the "best" 32-bit + * cpu possible which we consider to be the pentium3. This is because = any + * host CPU will already be modern than this, but it also ensures any + * newer CPU flags/features are filtered out for older guests. + */ + if (!strcmp(machine->cpu_type, X86_CPU_TYPE_NAME("host"))) { + machine->cpu_type =3D X86_CPU_TYPE_NAME("pentium3"); + warn_report("-cpu host is invalid for isapc machine, using pentium= 3"); } =20 if (machine->ram_size > 3.5 * GiB) { @@ -156,6 +154,18 @@ static void pc_init_isa(MachineState *machine) =20 static void isapc_machine_options(MachineClass *m) { + static const char * const valid_cpu_types[] =3D { + X86_CPU_TYPE_NAME("486"), + X86_CPU_TYPE_NAME("athlon"), + X86_CPU_TYPE_NAME("kvm32"), + X86_CPU_TYPE_NAME("pentium"), + X86_CPU_TYPE_NAME("pentium2"), + X86_CPU_TYPE_NAME("pentium3"), + X86_CPU_TYPE_NAME("qemu32"), + X86_CPU_TYPE_NAME("max"), + X86_CPU_TYPE_NAME("host"), + NULL + }; PCMachineClass *pcmc =3D PC_MACHINE_CLASS(m); =20 m->desc =3D "ISA-only PC"; @@ -170,6 +180,7 @@ static void isapc_machine_options(MachineClass *m) pcmc->has_reserved_memory =3D false; m->default_nic =3D "ne2k_isa"; m->default_cpu_type =3D X86_CPU_TYPE_NAME("486"); + m->valid_cpu_types =3D valid_cpu_types; m->no_floppy =3D !module_object_class_by_name(TYPE_ISA_FDC); m->no_parallel =3D !module_object_class_by_name(TYPE_ISA_PARALLEL); } --=20 2.53.0 From nobody Mon Nov 23 05:10:03 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=1790494399; cv=none; d=zohomail.com; s=zohoarc; b=fKQ85VKtth6mQQuCJ2vKgxoL/3uOdh+z0sBkv/AlNSi4yqxMQUBPABWuzfjnzR/EBvH6yWK2OKW1QT7i8LWEOES89Oci3xrr//hOFEYjAjtZU5OqxWYaOA3IryC5js+nRNCKH0Q8tfhRv4eVQnEFvkrFU5jOQWhQv+y3iqsWPpg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494399; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=tJj7Q4vyTC4ryc/tp/F7NMBFMsbaQtNl+doQfYMt0hM=; b=PIVEH3cb3pQnPcsldPlWGi47SXamyVUiMLxdmd6echtHiBseyX5Ujj1VVdU62YFxzZza9rO+O0DQ9UCGhv+k2fk9McPbu4Xf0TdmB+eqq+tQj4cpbCTqvDJQq0aXrEd5wXCopY7FDSX+u3Kra4PCArBJdQqt5MAveMGmilL5z1M= 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 1790494399773430.7921246910968; Sun, 27 Sep 2026 00:33:19 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjNL-0007nh-0k; Sun, 27 Sep 2026 03:32: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 1xAjMs-00071x-L4 for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:21 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xAjMr-0006Sq-1i for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:14 -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 68QNtpuP1075724 for ; Sun, 27 Sep 2026 07:32:12 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx3dp2ue9-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:32:12 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-93c5d7c4c26so223151385a.1 for ; Sun, 27 Sep 2026 00:32:12 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4887a746c57sm17618541f8f.35.2026.09.27.00.32.09 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:32:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= tJj7Q4vyTC4ryc/tp/F7NMBFMsbaQtNl+doQfYMt0hM=; b=G8Wfp21MIxWqwLJH ZwxLn2E1KwT/7hsT0JbRtwNxvVJg+EpK4dAC8hLRUpgYiWiK98Nd8cYuINbI20HW FCJrJ611a1cyeXc7tjWJCTd1ya0FlDO+s97n0ISZOxy9T53TY4hFs/cjs5zh8yWu dkO4ldqqp0aZBRA9usj0NihKdJk7nP52bm+4/4CYZgT07cG0/F+WyQo73Qv2Sg8f ZIgJdB40ToxsamYsCmcbIGDHiUP7yAab79oP85TqDCneLtmJ+GoSFuW+/crsOMGf lQY1JnRCzkQAUiyhZwTtCets0vQFty5KwHhuyEXYHYL6gE9BX+TzC2R/Y+SHopET sjW62w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494331; x=1791099131; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=tJj7Q4vyTC4ryc/tp/F7NMBFMsbaQtNl+doQfYMt0hM=; b=iXBqLWa/64RHTyUSZIfXMUXo/kSck9kHueyEUPfsAlzuBCNdZfh4O7SyBuJxPnRXIg dqauX2IEmsuXY52jNbmkihQYSkNZgiUS1P/zG3LOSn+Afe4QgK3vCfvSJMaqT5BnHWme gwyumiN2sXj1nwGONUzT4S0Uv18VCD7nffM63K6+GFq4Y4dEvQHW+E+A83m6Vf3h5E1d 2CFC9zIVq/aVRlOf761Q75ZR8B2Vivam8VAQ/mIw9xODEiLwgMBuSYsbe+PGaurr16ic 09g8eCTwxg7ROOpGURSDVjWJ2hRX7KK4zSQZ2ARMwSbBsjCpTMmaUS4jwUjAQVuAO6hN roDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494331; x=1791099131; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=tJj7Q4vyTC4ryc/tp/F7NMBFMsbaQtNl+doQfYMt0hM=; b=k2/5oN+T3PAKl9bJTK0kr1QTetpgAsEXFVatRSq6Qs6C7yZC4kg9i43494k992fVrs ovlW5TOVRg7UsD03/knVbVjyXGE3bdZAE5H/bNAenDCsv8bhWkWQAHQKpvnATJctyEeS e/HkICMgLT5+goeJ3r4/JTTkC12uVrWK7FqFMvX0qoUZFFsG9BFtgg5TcaU1xy3hBO7t nNFj3Cm0ogdPElQafUFsov+t+E05eBXDCwSt0zHjbLCebe37x9YnJrc0jxp/Cdf8nIwj DXc4nySx1tWhtDDhN8K68TpHWwLZ93dHPhiCcpAjE2RYsCKZBY50rNW5oDguxqze4DvE l0Rg== X-Gm-Message-State: AFuF++kPG9jeI41oCGcDfEnqWf+vx3PBQjE5QaVO8wLlZWTZDniUG942 1Pa5xJ0kkYukxIO/P9Mr8jUgxtfsIE4MU3OvgusjwKO0UzHf3SlEJb4MsCf/bP3JUkFkMEOm31R nsU1il1buXH4mX3v6Pt9J47GmQZVzqBhgycQVrx6/fm+o6niOy/DgUkGmq3+6RW6UTQ== X-Gm-Gg: AYBFou3r92C1OxT4Gy91LXxRFfCF3ox21mjJ+OwXEin0AruDR1bdwPuyhEHtLDYSfsS A+qP2eRy1S/ofqiduABzIzOUygfvORxpxfIEgfVYvDlvv3f9E6GUf7GNlxJpt4x7ym8K2+8nEfa 5AY+v/faDR7x+Tvm56Kq2KafDale9Z2Nke1D11wYDH7YaiObdBpdblnPXRX7pXCDYRkRJrdHJEi NA/XGFj0VsCRIUcpJ3s88/2aL/yC47VHto2ujlXHUyovx22ui1oVsfMFBy+xhkAbC0cdo/4sl+G UdzgROKVSbiktJhukAhGpe0nTS3M9CEbIWIGxq2VbxyaFUgXkvH1akN4UXaFTXh+e0+gvflYVk/ fzCVZMFNFk3ptpDp9gjEpxm2QHAN8FgjxO4mVke91 X-Received: by 2002:a05:620a:470f:b0:93c:62a9:d5d8 with SMTP id af79cd13be357-93c62a9d6aamr512950385a.39.1790494331566; Sun, 27 Sep 2026 00:32:11 -0700 (PDT) X-Received: by 2002:a05:620a:470f:b0:93c:62a9:d5d8 with SMTP id af79cd13be357-93c62a9d6aamr512948685a.39.1790494331152; Sun, 27 Sep 2026 00:32:11 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 4/9] hw/macio/mac_dbdma: ensure only implemented DBDMA registers are accessed Date: Sun, 27 Sep 2026 09:31:35 +0200 Message-ID: <20260927073140.41422-5-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfXy+nq4HOz/rvx 7V9NZ4fRCzG2UOn4Xbu3GmhoMIX16W4MJh+erokDJjXjytB8bPng/jJw9RDMvuCmOklYtDA2l+G pTAeXCO3ayL+6b6VaomeEjKIoh+G3ivwJ+nn+7al1NWzK/ycAN8F7/NNB1MLKvjI6sZq/udzgem EO+NGpsklqmW+NIIm2/ldLup1uhul6gLx7wyryHZyp5hsSJJxNr6aOBvoNeTVgBG/fzr7YyX/mK 27zraIkgy0G1LO4ddUyZnYyhUAwB0/od5fVmMmC/NRFFsjG37/fAFn0HDDT86faVcYFu7eyvGW+ lHc7jiCMigYQPcxlXOCpTYpnP/HNQ1cX9GL69oACsRSF5gtcxMXhZ/4or6OdKX4O9nXYJUCUXmz xEU5vbul0Kca9KTYy1UKJmjrivusSaDw6U4ihYMWaUtZvVwqTT09YMcRJuuYLRv/ZbiAPR5Up6V +WYc/yxj94/5mTZYclA== X-Authority-Analysis: v=2.4 cv=QsXLTlyd c=1 sm=1 tr=0 ts=6ab8c67c cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=pcZqCyVeAAAA:8 a=EUspDBNiAAAA:8 a=kOx39PzbhEYiDC7fm0kA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=SGy6VSG0Ue1xmPAwIFl9:22 X-Proofpoint-GUID: n-We5rFH6ruYy9TQypjVfxo8iVDOA-2s X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX6b/a1LGj9JiH PjLLYdy9wtzpjzV3FtHvHlh9gfmhqyEyAQLP5qbbl9Zid+0wrAcpbNDHlI34HAlTWMvEBeZozkz 843tjguzIEbcxt57pFt7RZQCRW+I9Ik= X-Proofpoint-ORIG-GUID: n-We5rFH6ruYy9TQypjVfxo8iVDOA-2s 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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 clxscore=1015 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 priorityscore=1501 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494399848158500 From: Mark Cave-Ayland Whilst the DBDMA memory region is 4K in size, only the bottom 16 registers = are implemented in the Power Macintosh DBDMA controller. If an attempt is made = to access any unimplemented registers then an out-of-bounds array access occur= s. Rework the switch() statements in dbdma_read() and dbdma_write() to handle = each individual register access, as well as providing a safe default for all oth= er unimplemented registers. Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260914125236.820155-1-mark.cave-ayland@ilande.co.uk> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/misc/macio/mac_dbdma.c | 34 ++++++++++++++++++---------------- 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/hw/misc/macio/mac_dbdma.c b/hw/misc/macio/mac_dbdma.c index a55c9c99824..d00181b9781 100644 --- a/hw/misc/macio/mac_dbdma.c +++ b/hw/misc/macio/mac_dbdma.c @@ -715,22 +715,25 @@ static void dbdma_write(void *opaque, hwaddr addr, return; } =20 - ch->regs[reg] =3D value; - switch(reg) { case DBDMA_CONTROL: + ch->regs[DBDMA_CONTROL] =3D value; dbdma_control_write(ch); break; case DBDMA_CMDPTR_LO: /* 16-byte aligned */ - ch->regs[DBDMA_CMDPTR_LO] &=3D ~0xf; + ch->regs[DBDMA_CMDPTR_LO] =3D value & ~0xf; dbdma_cmdptr_load(ch); break; case DBDMA_STATUS: case DBDMA_INTR_SEL: case DBDMA_BRANCH_SEL: case DBDMA_WAIT_SEL: - /* nothing to do */ + case DBDMA_RES1: + case DBDMA_RES2: + case DBDMA_RES3: + case DBDMA_RES4: + ch->regs[reg] =3D value; break; case DBDMA_XFER_MODE: case DBDMA_CMDPTR_HI: @@ -738,12 +741,11 @@ static void dbdma_write(void *opaque, hwaddr addr, case DBDMA_DATA2PTR_LO: case DBDMA_ADDRESS_HI: case DBDMA_BRANCH_ADDR_HI: - case DBDMA_RES1: - case DBDMA_RES2: - case DBDMA_RES3: - case DBDMA_RES4: /* unused */ break; + default: + /* do nothing */ + break; } } =20 @@ -756,8 +758,6 @@ static uint64_t dbdma_read(void *opaque, hwaddr addr, DBDMA_channel *ch =3D &s->channels[channel]; int reg =3D (addr - (channel << DBDMA_CHANNEL_SHIFT)) >> 2; =20 - value =3D ch->regs[reg]; - switch(reg) { case DBDMA_CONTROL: value =3D ch->regs[DBDMA_STATUS]; @@ -767,7 +767,11 @@ static uint64_t dbdma_read(void *opaque, hwaddr addr, case DBDMA_INTR_SEL: case DBDMA_BRANCH_SEL: case DBDMA_WAIT_SEL: - /* nothing to do */ + case DBDMA_RES1: + case DBDMA_RES2: + case DBDMA_RES3: + case DBDMA_RES4: + value =3D ch->regs[reg]; break; case DBDMA_XFER_MODE: case DBDMA_CMDPTR_HI: @@ -778,11 +782,9 @@ static uint64_t dbdma_read(void *opaque, hwaddr addr, /* unused */ value =3D 0; break; - case DBDMA_RES1: - case DBDMA_RES2: - case DBDMA_RES3: - case DBDMA_RES4: - /* reserved */ + default: + /* unimplemented */ + value =3D 0; break; } =20 --=20 2.53.0 From nobody Mon Nov 23 05:10:03 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=1790494440; cv=none; d=zohomail.com; s=zohoarc; b=WTEWeYpOpofGADchw/B8zPsIYg4N6/kOWY3+x4MI1RX6VeMe/htobFKAtQmamTdDKn5+deCGgLS70C0lZEkscUEUptUT6DhlGL3eWyBZp5BmwuQVp6FX3XOgG5aBDJVx+WA6XW9hxJbLilJqcJYAl4df9fLqSzpbSwhIKtzaWQM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494440; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=PtAkygZ0Bvn6wTQ/CU3tqWA1BcZzlgCTjGQS9l5/rPo=; b=ksCbJ83vFBQx4lmdSYK2+91m8PxPN/tVT4E8GmA3YRoGLw6K+PXnfiXc0F/m2fDItgYl+KerDjBPkCqt59t698abuT7u48OHTbGxNj7hR7EdYTF91qqE3DjhC4/UMuy/rxbxXRH13IYae+bZi7Q/sMqAr6pqdSaU1wqFmH7Oz9E= 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 1790494440953294.25473813273265; Sun, 27 Sep 2026 00:34:00 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjN9-0007Mf-Ua; Sun, 27 Sep 2026 03:32: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 1xAjN2-00077T-0C for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:27 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xAjN0-0006Ue-5b for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:23 -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 68QNBSTL2196059 for ; Sun, 27 Sep 2026 07:32:20 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx3rfttc5-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:32:20 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-939f248907fso211217185a.3 for ; Sun, 27 Sep 2026 00:32:20 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4887a64ef3asm18939019f8f.30.2026.09.27.00.32.17 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:32:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= PtAkygZ0Bvn6wTQ/CU3tqWA1BcZzlgCTjGQS9l5/rPo=; b=lxtRQC2qPzJgZ+ou 3udCJgHq9GdrTV1Hfdfl56d8Q38ntY8zIlL4UKJwv97AmpjxVYVpoa71W1ViUlJY G002hAMl5hwtuZdb4gTnhsGJXnaycGLxynBzLJYn8zESM1qK9E6w8yef+yKZTEvi 91a7keIE9696OQ9m7AKnxvvne1q3Xu9s/jVLFJ+1as4DjaxACfYMpn00txDNTV1Y Fuz0T9zAJbSOys/oHYB6rSuXU3tW0hex+5IrsW4qXES0mYgtmP+7Pi9TzufTTUN1 DzA/qHXYgt3Lws4rqofAXIO18k4Q3TCcR8nOn7IDVGHM5Okz1VBZid1ZcAkrhS72 hA04lA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494339; x=1791099139; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=PtAkygZ0Bvn6wTQ/CU3tqWA1BcZzlgCTjGQS9l5/rPo=; b=ddDDZLEuDv01I3aR03EhcEqhN3LGlS3HrdvosIilYrUkNEb594hMgivWX5zmLZaI49 tAJImaKeNLYA5kqR/vOXl/dNVxCHhQwABaWg0R0mVLeIe1irgNzh19mkb0n4w4TP46Np U2gWoQlUqpFqdO3OTFmur4gxoqfwOztZXzGwRkLQ2Mi6sL/JXRdI/9McRSS3VNzLfczz DKQ02B1Vpb21cjJ709YGUkQtVFJAPC0tAt+ma19wL6UZrwwJmyPAPVtTeraNWEiLoLXN DAnrPwwUXJ3NyGe51w1aR+4DKFvAG4Ex/tYFgLxd+yKcvmMqfgOd/5O7oT1wpoyL1RuR sZkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494339; x=1791099139; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=PtAkygZ0Bvn6wTQ/CU3tqWA1BcZzlgCTjGQS9l5/rPo=; b=BuxpsE9CwMfY22NXMLx8pyBvn4sshscQ9L3ml2XRZ9YZq8nu/MKW0Sv0MVEB3+sx7r WzjbA0r4TkRDTqM0fO1kkn6TwSRinZkvaEW/NlZIpoL2VsY+rE9XlvAuShMGZzBPoZeN Tn8BSHDAwEOA2C8DxIin1ajI9tzr5LDB8RHs8fDeLfACZaemIaAWxf7SCaVJwg1bw9z2 vCfG6tTpKTXt84AoUH875bTTl1+fktMVem3bOZQxn7TNb3Ys0tQqjFVcur55HlMvhfRj Adgab3WhftBlEbMuZB7GoSS/tltxH+TOhD5P4JPZLh9nhVAx8IRtZPoNsYWaWNcnqbBm w89w== X-Gm-Message-State: AFuF++mwd+VQi3qgBZzA+LnBc5+7otx6tLofFgtKgTTen3oWxjVwmE4W O0kiW/lQ0ar76ilecsCJ+BhHoKtsWC3+0wU2qz08kn4a9JA+gj69q144OCPduEaAuFg5ukQK0n6 nq6h1kzKjUgzkPua1miKKDY0qk00LXMDSsE1p2csqBGEz5oAYhJmsfLVSTxIityLBjA== X-Gm-Gg: AYBFou1N09ICUAy+DkEl2gBmSKR/hZJOJSMmSTLsOXinB0tOm3YFf6+Ojji6FS8UHT8 v8ZE2Md0+OA+H/Yhh66pbFguUWWP9qHT6HhweFADkS4SwZGB3NE95xcNQ4/jXmfw3RA0r3sKxkC bEKx9Kr6nCVzM71aIIjY5cVLRS5PqZWYXCvude8+28O7Akx1M0PwUAg3Jg3dCC3848V8IuSHOyQ +emTcsPwRxt3/ARrL2YmQsDOrRU3ocnGyzn3+4oTo7uSUlhpDaAEWfArDL1Tw5ltPJHO2EdmygQ p+fKXhm239yXOXMdZyFn18a6XQ4sYUaoJ/35v+iku/GxvsDPOLiUgcJSepTjVhM2p7FHNMRazwe 8a7bLBCo0hIgHNiTtdcyGgSVFdZWz4KyRamSm35gt X-Received: by 2002:a05:620a:29c6:b0:93b:d7a2:dd2a with SMTP id af79cd13be357-93c43d2d07bmr1406998585a.58.1790494339189; Sun, 27 Sep 2026 00:32:19 -0700 (PDT) X-Received: by 2002:a05:620a:29c6:b0:93b:d7a2:dd2a with SMTP id af79cd13be357-93c43d2d07bmr1406996685a.58.1790494338620; Sun, 27 Sep 2026 00:32:18 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 5/9] hw/intc: use kvm_enabled() in APLIC AIA helpers Date: Sun, 27 Sep 2026 09:31:36 +0200 Message-ID: <20260927073140.41422-6-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfXzFOoBOSRGIrl KtdSGVkteiAAXZitePy3hw7q0lrer3EGbiStkeKupTGabYMuGkZOcxqDFWQ9JZGxiZ5Ie/oMx0g puc/inb4ukcf2zoO9XWrQJF2hbYQDcI= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX3glcP9Aj0Wui ei5h8g72Ddi7QsozkhA3t3QNqzVyqp7QOANQmiC0a6MsYO8edWAN3vUnt+5y2DIXLKdgLzr5Bik hSpoNb0emRqXY0HIzTmwpimxG94yfmycUpBUqu6plKI6ocKwiI8EFTWkebRVIcyhvmz/ZqWtkUT fFSMfITq7NlfTY12jttsLyZ3wpJDgKlV+i0OH6M4R4M/G/sm4Y2J3n+S/6qnHeG9AqHVxWara0N HC1BuE8+eszIBFe9Va0DgQKKEb+0w01ihiIlNSnV1rP2n/KWBgzSBydUJEtjepo0KzKyyGVco2l a04TD2VmxvjHeRnk/BdKVhs4N8zcKO5BID9iNR1hwFgJUNTld/2XrwIuatPUpHRdRwl4N4EdEOm qJfYYr5qmwsGybn525iAH9r4aCKt2lIJMuSYK2OuciWg5RjTIXKM4vlO9h9XamYUe5oYQ7VdV1y KNaAS8EU5iMRwdaSLRA== X-Proofpoint-GUID: 4yD4RkSAKg5dEV93jSu1ntroSb10Nhwe X-Proofpoint-ORIG-GUID: 4yD4RkSAKg5dEV93jSu1ntroSb10Nhwe X-Authority-Analysis: v=2.4 cv=K6G3jCWI c=1 sm=1 tr=0 ts=6ab8c684 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=pGLkceISAAAA:8 a=EUspDBNiAAAA:8 a=aK4Vr543ky-C4wP0_eYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB: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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 adultscore=0 priorityscore=1501 impostorscore=0 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494442069158500 From: Yonggang Luo - Replace CONFIG_KVM ifdefs in riscv_use_emulated_aplic and riscv_aplic_set_kvm_msicfgaddr with kvm_enabled(). Signed-off-by: Yonggang Luo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260923131635.1894-29-luoyonggang@gmail.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/intc/riscv_aplic.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/intc/riscv_aplic.c b/hw/intc/riscv_aplic.c index d8e25bfda14..03a0852b8b8 100644 --- a/hw/intc/riscv_aplic.c +++ b/hw/intc/riscv_aplic.c @@ -167,7 +167,10 @@ bool riscv_is_kvm_aia_aplic_imsic(bool msimode) =20 bool riscv_use_emulated_aplic(bool msimode) { -#ifdef CONFIG_KVM + if (!kvm_enabled()) { + return true; + } + if (tcg_enabled()) { return true; } @@ -177,21 +180,20 @@ bool riscv_use_emulated_aplic(bool msimode) } =20 return kvm_kernel_irqchip_split(); -#else - return true; -#endif } =20 void riscv_aplic_set_kvm_msicfgaddr(RISCVAPLICState *aplic, hwaddr addr) { -#ifdef CONFIG_KVM + if (!kvm_enabled()) { + return; + } + if (riscv_use_emulated_aplic(aplic->msimode)) { addr >>=3D APLIC_xMSICFGADDR_PPN_SHIFT; aplic->kvm_msicfgaddr =3D extract64(addr, 0, 32); aplic->kvm_msicfgaddrH =3D extract64(addr, 32, 32) & APLIC_MMSICFGADDRH_VALID_MASK; } -#endif } =20 /* --=20 2.53.0 From nobody Mon Nov 23 05:10:03 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=1790494427; cv=none; d=zohomail.com; s=zohoarc; b=OfXXq8ateDAtMWP8c2kFO81BAvJ4lpi9jyoLeOm3n9m6ZLEOAayhIL8Np6/IWclI+Ort3yW7mMdRg+Pr53jb786bnLdawnbXoUjvz8TELVM8QEvPlx8n759I+DDMeHACdu10zFAvtp3BeGoWlMhsjUBN+36ZkceyDv97S/QE7Xc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494427; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=K/wnIvYnAqnLa1FrO9t5ONeMwdI4mXlHg3asUe7i180=; b=NYznGA244e00ggtlpYMuOMTrY3AWIe9MIInyODhYsYQrdJDhqRLH5D2Xe+lqN7h7mnyjSwgyNtNbu6ZnN1am4NhhvqoKwfUb6sJGLRYDAeeu6UU45W1Piwv8+NgAwe30Ht2W+2CRFTjmBaJbbk/jxmhpcxPiaKXrIJn7btmYYc0= 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 179049442775135.72691147522198; Sun, 27 Sep 2026 00:33:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjNH-0007d5-0L; Sun, 27 Sep 2026 03:32:39 -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 1xAjNA-0007Qu-Ao for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32: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 1xAjN8-0006W7-Lu for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:32 -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 68QMiqZT783927 for ; Sun, 27 Sep 2026 07:32:26 GMT Received: from mail-qk1-f197.google.com (mail-qk1-f197.google.com [209.85.222.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx5cgjmrh-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:32:26 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-9390a2c895bso636500785a.0 for ; Sun, 27 Sep 2026 00:32:26 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a0018f3e68sm36666575e9.9.2026.09.27.00.32.24 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:32:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= K/wnIvYnAqnLa1FrO9t5ONeMwdI4mXlHg3asUe7i180=; b=PF5k0LumnXQVJq3W QyHNGJCqxaqjB4isvM+LS4KuITdRfl5tm8I1okvWx4Vc0ahCnlguzrL0Rom8igQH ZZRheAgdNObIEQ9ZorCWBazNMbuzoVEBUfTJpN5aJ1b30dlXtcoR15urD12z79LA /rBg95YZEtEii/MhSwffMryBZ+FR+BjQBbHzm2bNtFphKTUBsIQ2inhoMmbe/oPH 7VrnGuvSmGmkRxg7PKaPy19JpSJRnhRFpEuKort+B4fYGET/JO0FStGnXDiAECZg lhy+cqunpF8sSMgdfpsNOIFjMYQzIUasjd/pPYsgl6To7j//dzSbFPNnNdp7d+fu 8klQMw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494346; x=1791099146; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=K/wnIvYnAqnLa1FrO9t5ONeMwdI4mXlHg3asUe7i180=; b=Ck7yakIBaPTy7sqod2cskYyAi1ob1gv2PMNMIs4Mrwqoxdk0JaG+iY3eqRictTEEg7 Jick7mmNtqdHZeWzLUuIhGNivWWSPu8ZAxe4caeBMUoZi+j2wVEV1LnzYf1FO45dl21y sgM6/pMSEwx/hKClqKhS0ZqSV8QkMLwutqx8nmhGu98uXnocheW/8GO7qFGi9dYxLAVW xnGLC09dNjdzbg9pl+GKDZVI2JQ9kU30MVOYn/gKzQMyFz+bESCA0UvJjEVs1kS478jS +hclVbvf16QGYgQpR7MixvU2CI3IbPxeomQOP2hkO0Nj5jQNycjzjSBEcUXnXWf0r2BT tg5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494346; x=1791099146; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=K/wnIvYnAqnLa1FrO9t5ONeMwdI4mXlHg3asUe7i180=; b=YbYGoFH4gm+ZGrPKeF8wWdYDzjc86DlsQ37/g1WJ6B/4B0PhVXfTiDz4NKAcj1n+GP alxfLIRmRJf+9JLmG11bCG/xN/zTqbREQ49tMEc2Ji4iiOj8oRJc+L3TEugyPacJ10Oh HethwP6JULuSBCS3hhPt6K/KxRMFtakZEDegYoQxHTyWumkZMPixySCMl7Z7kby2a59g gmocUF+LC7BG7BNsSS0Jkiwby8MscyjZp/vIKHuf2LGPY9Z2RAA0QUG3OBNPhKy8Ub1G o0AToNJ3X8D4Cz91IFz8/VLBPT4HQQYi3mLWUTTeU9kAXX1ixsu7NcE7YjopFK/l7sGw EDyw== X-Gm-Message-State: AFuF++nswSL4g5Yy5RxGz8gjoyXaPQhACSPVtMuJ009Ty0Fr7T3Jy3QU i9KA3Knc1S/avd3Vcs06Rv9owE3vDKfCxkqabSWo3UwHba/QAYWk0WXhUE0HmmxDT/R2BdgY3yj W5iVqqpqi0HaGgrYV+L2SFpvkYq4IXrctEvo8/5JeJSy4IODyNMOSEbucOuao1K+Bmw== X-Gm-Gg: AYBFou2yoNAE6LqzRdL492JKo+EJwUmIkL2eSuSsxeMOSIKrr7z4nP1lgh3+IbfP3GC Z4rkdY1mwQYHcq1wBdYAe7YhTdbS7RfJoIPl5Y3G6S80UJsWHSQwYYYG6N6HFil1QmrtgQsDjwa 7xUbDPzTkFNJVwcsBor7/V+qXCGiUlRlorZH/jjm6MbbXL47PEEtBdjT0MYBwlHUQhUeuZw4KG5 KY2HtmdEeFoz/x4Z3gvKk5N+XNgarkwYfzHGZouS+lnK1atXn0E3i+EwplEqa1tnn538W0KU4a5 2r+27P3NgGqY9rKmelASdDSB3mOplM1Z+jQU1WtkfrXaaa55zNtHh0WdOjQMdTBvXc+IGh4IYqK WOWEuXCStgL5Q1cSVWtuqpYIYaLuFbOwyVWXjVG+z X-Received: by 2002:a05:620a:25d2:b0:93c:2ac6:37d1 with SMTP id af79cd13be357-93c43e4807cmr1380691585a.49.1790494345926; Sun, 27 Sep 2026 00:32:25 -0700 (PDT) X-Received: by 2002:a05:620a:25d2:b0:93c:2ac6:37d1 with SMTP id af79cd13be357-93c43e4807cmr1380689385a.49.1790494345330; Sun, 27 Sep 2026 00:32:25 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 6/9] hw/misc/bcm2835_cprman: correct register index in test for mux update Date: Sun, 27 Sep 2026 09:31:37 +0200 Message-ID: <20260927073140.41422-7-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX5OePA86SDMJV W8WRallaWBZJUmItLUv6WN71T/10tFofmEGF1QkGMmQHOZaunaupl+37Jn283f33vjDImwVmGfH 6UNbDOtkUeyQS/j1/I8UZV0rfhZ+BP+ho8JpRmrOC40URGX8qxOcGhUGCT7vtxa8U6YGlJrvTqa EiAbyhkg+PI99KQ77/a1MXn0MkFWU+gZFha0wvowwB88tMCojgYEm1L8rYgKC8rISf57FwHNCwG 9r8j7xY25JPAAhwdNQH+dLv+CGLKYaGU7Cf2Mw9Vsqq2kSaywYBgJKriWO+sipZNuUGycgw/nGd Z7nxAUCPPnCGX3myXqtcni9Ad+dkh8iWRRPfzeKbF9fnAKpsXTmEBZb/ZPW1f68diqhUsNTsYvs cokFVZrQIXCVw+6/xI+3jyVovhJzSvQNfmN4wvLHudz2DK72mUbbDfOGlh3Z0T4E0mX1J3P/ffH XUso2c8MJi8MFPzGlcQ== X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX63yEKBIsYQKI Emfs0M+bk3NKN6y8cnBh7ERo+tZJ+EvEXLPM4XdOKkAwiv6Lw1Ldd+H3yVJPJOdHVg6Bp/I872o KAJkxVjb8I5IkZ39J481chXOdvz0L+I= X-Proofpoint-GUID: jgj8Do1L1jO7wmNi2KqJqd9bGA4Hjruq X-Authority-Analysis: v=2.4 cv=QvLLTlyd c=1 sm=1 tr=0 ts=6ab8c68a cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=ZpdpYltYx_vBUK5n70dp:22 a=-ISfGIX_AAAA:8 a=EUspDBNiAAAA:8 a=gTzq3umuov047XrckY4A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=6K80JWTZPwV2TOQbRzu6:22 X-Proofpoint-ORIG-GUID: jgj8Do1L1jO7wmNi2KqJqd9bGA4Hjruq 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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 impostorscore=0 phishscore=0 suspectscore=0 spamscore=0 clxscore=1015 bulkscore=0 adultscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494427995158500 From: Jonathan Gilbert After each register write handled by cprman_write, function update_mux checks each of the clocks to see whether the supplied register index applies to it, calling clock_mux_update if so. Each clock has two registers, so it needs to check the base cm_offset for CM_CTL and then the next slot for CM_DIV. But, it was checking for cm_offset plus 4, as though it were a byte offset when it's a logical index. Signed-off-by: Jonathan Gilbert Fixes: 7281362484a ("hw/misc/bcm2835_cprman: clock mux skeleton implementa= tion") Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260925100726.1546566-1-logic@deltaq.org> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/misc/bcm2835_cprman.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/misc/bcm2835_cprman.c b/hw/misc/bcm2835_cprman.c index 8220f7a6b4b..f9a77ff9bb0 100644 --- a/hw/misc/bcm2835_cprman.c +++ b/hw/misc/bcm2835_cprman.c @@ -508,7 +508,7 @@ static inline void update_mux_from_cm(BCM2835CprmanStat= e *s, size_t idx) =20 for (i =3D 0; i < CPRMAN_NUM_CLOCK_MUX; i++) { if ((CLOCK_MUX_INIT_INFO[i].cm_offset =3D=3D idx) || - (CLOCK_MUX_INIT_INFO[i].cm_offset + 4 =3D=3D idx)) { + (CLOCK_MUX_INIT_INFO[i].cm_offset + 1 =3D=3D idx)) { /* matches CM_CTL or CM_DIV mux register */ clock_mux_update(&s->clock_muxes[i]); return; --=20 2.53.0 From nobody Mon Nov 23 05:10:03 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=1790494374; cv=none; d=zohomail.com; s=zohoarc; b=Ridp+4ixDTCqMCHVaJZ9k+Vpn/0DkYV2DSWSyHNHnrvYrsUJIUp3DmkP9IMnlacp/hy8oAdymPURtJiF4+e3RalyQqH2JQFT49M5l7NfzJA7Axnqh9URImeaCGNoHNF7KMkseRi/OYJruOC2yLieWwGjrmae1/b74lk8RtP5/Xs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494374; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=QYu8bvEGUdQWeDhON91oegvqLJFYqYY7Upi3+WdIY80=; b=R1Irp/BRMctsdjEEMdtt1f/XxUHGpM7AyTQMRZrgCbPRd1KIx1YxXM0iPkCCtlLwuEcmlhOP3tSzzI+b5JNe8XgJ86nceGgJhWNULtgLcmYYPP23ooz44WrMlf4eHe6Wwh/4z8v75FfS4RIU3jDZPQmNgh6Lpa6c+DOYd0Y7rXQ= 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 17904943746271003.8292367929579; Sun, 27 Sep 2026 00:32:54 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjNM-0007wD-FT; Sun, 27 Sep 2026 03:32: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 1xAjNE-0007d9-NX for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:38 -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 1xAjND-0006YI-2Q for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:36 -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 68QGxQFN1449967 for ; Sun, 27 Sep 2026 07:32:33 GMT Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx3rfttce-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:32:33 +0000 (GMT) Received: by mail-qk1-f198.google.com with SMTP id af79cd13be357-93c444b438aso443542085a.2 for ; Sun, 27 Sep 2026 00:32:33 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a0018f1375sm33391595e9.8.2026.09.27.00.32.31 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= QYu8bvEGUdQWeDhON91oegvqLJFYqYY7Upi3+WdIY80=; b=YAUNRa/xgICGRbey IAbsdqzXL+qd3uuxNnZPMCeIAhhmKyXscrHzYfggsSfr5g7JnAutvduQqQyNHhnq 3TEo36cidBpAVp/3t5tzRryrdgIPmF3WE4Uum8iP3Kw26tGa2MwvoIwIiTARzXF+ 7/cvQms3HN5elRzBEmTTmlymX2EpEEs/fgwURfiIuKMBkDw+AcjoIidBPn/rOGu8 TWgv5mR9hwwDwDCkvPIc4pXy+bwknPy2zxGI2cQkMcL7oCETqefHMs9/BI12V5Qx 318vKKCB2uPijSnrOpKUbbeXHxH54rLMDA3e7EOhjKEopshVZU0tbyH3zENtzuAd 159rcg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494352; x=1791099152; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=QYu8bvEGUdQWeDhON91oegvqLJFYqYY7Upi3+WdIY80=; b=Q8tN/jl86v75N7w363/g6usIXm1fUZKe7bTfK72bTdy9X6vkzcRZRe7OICrLOHMXtu 4DD6xVApT2iL3ZKc/gkTqk0TfC2vRVvPSp4VPDcbsf5kbtF+PcqAxJzfzPFierqdPmB8 7haFozvtJDgZMXEW0WWqfvrOgERznib0mUq33z32vkSmxLm8X2Kd0L+6+cXmEdULV85a Kh34t8MHwgMj9fSvdnN2FsTO7rtoDbUeBdepB2VvdFBygwYk6KGG0mhroWKYjWwWZVxh PjGVeXplNZCSxcr0Uplg+TkiYkhaLGBiPxsWwyu6LWY3JmhW0Vq+sUEe7HP3S/YzQZUc ZIjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494352; x=1791099152; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=QYu8bvEGUdQWeDhON91oegvqLJFYqYY7Upi3+WdIY80=; b=wV4ixB1S+7fXKaZppsUyngLpDOrj/yze+KUGDD+PmccwbvDc3/YN1qWRgRDKftlM9f hDtJiXWNh8X5tu73TGk2WnMoGz2jfQivkLjYTnzELiAOwVFOShGR2Sxh2TdR2GYHfSNK wwhK+KXDoKQT/uA/AcHHsM7TTbyUaRVsVRlNlYJXWE+MBXeuOqQy+dOFDPg4dATSPLCc mhpBpaYUgayYYO1MYyXLV4iZs6M/URoBp9aEUpF0BPpfbnwae3YZ2Z/regv182iXeivZ 1AMwGwytN9BA0ztTPf0uV9+DKDNFQy1UQlmnhTSIfJmXxQdFA5bOwEj8eXUYFjaQP+Z8 2NPQ== X-Gm-Message-State: AFuF++mO88YnbJtdbwFtQc7/cswJqePHhWBBJ+H7uel6FFth1NkbJhI5 PnyuDq9xfdaE2R962eKsyauoECmsxTzEoFyt3q0u+Jov1WYiREp2pfep9MKPMlQmtXCZyEBeCbS sFCmvlcDu3WtsE9YytiM4K0UAn8HIYSLScfxIjwzUexfHGs/O/8YS0Ao2J5mpArj7vg== X-Gm-Gg: AYBFou2FNIfTuLO/x9H4pIxCS8U2Dl9ZYkKPkAeIrFwJ7LZwqkPjOAxTfEC7TOfWxm0 DZa/KDtM5dPE7hl6P6wsG67NuOOeWZWpqnBjKbYeJ1Doi1YHPqqwnVRoEVPsrT6EzBeFv0VgPMv tOxIv7i/8Cv186yvszGoN2W5bOmaQEARMhn7gQgMFRRJb4YN80+s3h31DyHkpQ4HAT7q0hhWtBQ pwRjrAaz6Ra5x42KIf9qWrJt/7vZaPu9HYq2tNYQOHZUZXSaycPQ01h9zxBlZrEGL+odgoJD4Mr no4rbbHij3FzbnBd2+cWHuSBZ+/WhvhWzDnrKPnLshCs7AxWLRWaFPSGhwTe+aIY0a63bvnZz3O mXXdVaGMSImdtDgSYMUwKnrogerHDc1p38qh+cWWQ X-Received: by 2002:a05:620a:46a5:b0:93c:7582:14e4 with SMTP id af79cd13be357-93c75821ademr41794685a.40.1790494352527; Sun, 27 Sep 2026 00:32:32 -0700 (PDT) X-Received: by 2002:a05:620a:46a5:b0:93c:7582:14e4 with SMTP id af79cd13be357-93c75821ademr41791385a.40.1790494352039; Sun, 27 Sep 2026 00:32:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 7/9] hw/ide/macio: use pmac_ide_transfer_cb() for disk DMA read callback Date: Sun, 27 Sep 2026 09:31:38 +0200 Message-ID: <20260927073140.41422-8-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfXwLsDvrS3IcBP sI7ndkbRFru4BXTIgkiWKXSoy6oxrw0YkYepseK/vkPkj+GxlZN3pZ4qsqcCH5FI9sfJIuRDiqa +fkB7hqhaGo7r3EmaBxvwd9p09UpBI4= X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX/1jY8fH7oPN+ 92+tV32MV+IOO/CpMP+BmXTaKm9wnb31cVb/bp3QKdA4X6LmKCgvMsCEaYDxhh7hDcAYM9+LSGH MibSByHMh0aZnwjK+cqlNnS/qP4I0rwUpKnAXg/9Y+DT5pRS/oiDkiTA3pNf20yZ05CPTsI9GvU zLqgEAZIsiKpEJpouxmMaFkIYxlHYAUvvBKOnZzIDJyA5z8SRO4f9VJY+pYb1JJO6YQAxr1rY4J GCo/SG6F9G09CHAMG6XTEeUjFUusYBcxC57EGeCXeTOmCmMsEckMUvCNxoQKrRTSN8dTbQBR16L 9i6WdTiTE+xuXcohC6BU8Ui5PCEm4DcsiEFvy4nta67jSJ+ik+kH/Anf6kbLOiM133DQ3XGWQzV wj5e2Xyu6/YEjQQN8P11T/1g5fj8HyYMYBq1QPFDPAOEcwmxclPoV+hUGw0DxbgxVc3H8xKzY7k CpBMHgeXDgLNqweT5Mw== X-Proofpoint-GUID: NUPIiiJl_4OWayhR9ZSdkCK2mp_Gpp57 X-Proofpoint-ORIG-GUID: NUPIiiJl_4OWayhR9ZSdkCK2mp_Gpp57 X-Authority-Analysis: v=2.4 cv=K6G3jCWI c=1 sm=1 tr=0 ts=6ab8c691 cx=c_pps a=qKBjSQ1v91RyAK45QCPf5w==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=pcZqCyVeAAAA:8 a=EUspDBNiAAAA:8 a=nzRHPgdkaXdYiH_QP9EA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=NFOGd7dJGGMPyQGDc5-O:22 a=SGy6VSG0Ue1xmPAwIFl9: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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 clxscore=1015 lowpriorityscore=0 bulkscore=0 adultscore=0 priorityscore=1501 impostorscore=0 phishscore=0 malwarescore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494375893158500 From: Mark Cave-Ayland Since its original implementation the disk DMA callback pmac_ide_transfer_c= b() accidentally made use of the CDROM DMA read callback pmac_ide_atapi_transfe= r_cb() for disk DMA reads instead of itself. Fixes: be1e343995e ("macio: switch over to new byte-aligned DMA helpers") Signed-off-by: Mark Cave-Ayland Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: BALATON Zoltan Message-ID: <20260926074425.468348-1-mark.cave-ayland@ilande.co.uk> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/ide/macio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ide/macio.c b/hw/ide/macio.c index 40fb4f3b4f3..a95e68083f4 100644 --- a/hw/ide/macio.c +++ b/hw/ide/macio.c @@ -180,7 +180,7 @@ static void pmac_ide_transfer_cb(void *opaque, int ret) switch (s->dma_cmd) { case IDE_DMA_READ: s->bus->dma->aiocb =3D dma_blk_read(s->blk, &s->sg, offset, 0x1, - pmac_ide_atapi_transfer_cb, io); + pmac_ide_transfer_cb, io); break; case IDE_DMA_WRITE: s->bus->dma->aiocb =3D dma_blk_write(s->blk, &s->sg, offset, 0x1, --=20 2.53.0 From nobody Mon Nov 23 05:10:03 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=1790494428; cv=none; d=zohomail.com; s=zohoarc; b=gUz3y82/6JmfAzv4QWphjE7ugO9iEnmTEUjoNk8GKDgBCovX+Nq1JbGX5Rl5iQlG1DbpGwsOLi/OpYYqei2a5PuspcSgMAknLhTLWuuG8qqOtnyUS8S6uFrgsX8EQrn0YHGGxXZreEHNYj2ZBkAD8d+v2lF3Wj5riRkIsJIiF2A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494428; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=9HcQT+RC2Vf6Si0c7R/k3RokAONKg68v2I5zK2P1P4I=; b=nRZSBaAQH4KZ863YH2wVg+scJY4uiwwxG94t+gUwWX5AwBmbcnquscwlwE9XQS5rRMH4K+caThvuJ40ZcChyGGuiRghVDi8lUGzxhBPx8lxRkWFZwJCTaLzvpAgEj3CgeKpf+XReOVGwk6uzbQft+8Lxtkva7ohxQpJRVskNF1w= 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 1790494427926949.5912124812104; Sun, 27 Sep 2026 00:33:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjNR-00089t-OB; Sun, 27 Sep 2026 03:32:50 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xAjNL-0007vm-Ru for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:44 -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 1xAjNK-0006aE-1t for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:43 -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 68QNwB9a2169659 for ; Sun, 27 Sep 2026 07:32:40 GMT Received: from mail-qk1-f199.google.com (mail-qk1-f199.google.com [209.85.222.199]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx50sanh6-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:32:40 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93a1e564fd5so411721585a.1 for ; Sun, 27 Sep 2026 00:32:40 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-4887a74538asm18300762f8f.34.2026.09.27.00.32.38 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:32:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= 9HcQT+RC2Vf6Si0c7R/k3RokAONKg68v2I5zK2P1P4I=; b=i4FKAB80Xt8hEdEl sf0RodwMerPNW7ecVkDIv2kV0j/Ix580nS8JmPPuANdVeVk0VluK04LB3aJLB/vs TZZymuOzSnq+uFfSfbi2GxonFRi1w9szS0/j0RR3CFDGPDewd+l/ECGQDcj9OUQ6 43UAN4iye7FA95sJT8+6ys/8EviMYwtv4rw/h2DCOeKi4l4nhwioJ5LtP23ryZvI nDfsNBTkXPQLmrgim6JE93PxBFSjRotoLL2wlkjLmJV4+NHRHjBqAH3hgcCNdRsp wAEmFOPqXug0u3UQr69etToU3bGCed7sK8rasDC/Il3qr+k1RDoJZrxFmcw3NBBs k+OtjQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494359; x=1791099159; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=9HcQT+RC2Vf6Si0c7R/k3RokAONKg68v2I5zK2P1P4I=; b=N0Go8yAcvIci0FTBB60iPv0M2cGr5W6M139LaASUDxj7C5pS29XA4wYGRjhU2k6wq+ i8ElIkqRTsN5T4PGWEM5lcCWTp83J8vir43PseAQ7LYHEHjJanKX2fabR1cZgEoShlzP s8JZ3cqJEIfKP1YTcIve66m+W2HhlVVz2YZyvTMmgubpTIRHA0YO59z+B5CcIimO0ITy pUy5a427OtApS0RMizCxF5qe4RYBNNQZpzZtiIBTi1t8oehzzPSX5fdJZLXYUhmj4AzS EMDhQfcjj7ykcgKtNiUAJKqNgfFXs4fdlpNS8722okEh534L42HMOpqlUpFxbhdKSTZo vaIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494359; x=1791099159; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=9HcQT+RC2Vf6Si0c7R/k3RokAONKg68v2I5zK2P1P4I=; b=j0fWZsfDEADKZFPlfLVj0TXf5F6YxuQynchGfKOA/lPO7VOCMPCnGAnIt0xqdPRHfn ftqe/Nqzx/w+GkDfvDiaDIk5JX0DkX/Rmdmwm08A7u8BcZsZEJucVC35H07ulh1hqSRs ZJ8hE53nlwIqJ5xu1vNLgWkRNHLfmSJT9L+rkisr51xC7r/ByF74rGqzrBeof6EQjlyc 4N5Hn+vmEVSZCESx/KAmAGB0x0ShYMmq98U/v/sftV2SPC3XU9tHsND/fGE8RBsGPbVZ HL2/FXVDWEnb6IfleUqzgkthQpJ7jb/83JlxOdJTDJRPcnvy3atomlfjgjf6jpqkFXgY 1duA== X-Gm-Message-State: AFuF++ljzZv0U4SKvwFGK17UHK+jXZm2CSw0ml0elsNE3TcOazpRiNE8 oGGfhaPsCDL2xnYroXpMIHW9SDjOC7yap1/eJSkFGneDdYkExa3d++ysZrOc0ED9QLHyFdu6MNc BXNe35hycew54RXGYjza95c4Qq/4+bbk/P6/zUtDPQvHvOzz1MLHmtOI4FZzPl+tdfg== X-Gm-Gg: AYBFou2fQD/8WLXoP+KtBBG/fH7RwFAJaU3w0WRIEfZ/Ex9ptMvjs/bJgRDyXBF6w/i pYE5ajzokbDmSFA4t4YCgJ1Vgaog6+noSDBeeD3xcB0EEW1j0MCyopcKwr3JOhPOIZ7KVVDeHPW ZEpi5/SRhAgYVd8Wl0tRoeG8JeiqppeJseOD3nN5cAB3i2eRlqxRNBlx9d5b9Rzppd8Itze7Ytu 7vaiMXfuU8+yhawc2DRNY1aKadG1s66lgMr9J9bpTTj+PXYmprRitzP2Fu8BSU0Nwp6FBY/OSd+ 4CEyEIMm+XyojmtZdqBk/8ZKbE5xgz5k9jwJU4MEJReF2YOAcmeyNWRIhhExEE9IXkqEmRoJBFj YvgIWJb12XTu+7PMimSaxJ+pAUxYioZ1dVRCWE4Rc X-Received: by 2002:a05:620a:4111:b0:939:13a7:70f0 with SMTP id af79cd13be357-93c43b7f202mr1426299585a.5.1790494359495; Sun, 27 Sep 2026 00:32:39 -0700 (PDT) X-Received: by 2002:a05:620a:4111:b0:939:13a7:70f0 with SMTP id af79cd13be357-93c43b7f202mr1426297785a.5.1790494359089; Sun, 27 Sep 2026 00:32:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 8/9] hw/xen: use stub_ss for xen_stubs Date: Sun, 27 Sep 2026 09:31:39 +0200 Message-ID: <20260927073140.41422-9-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX2JKSvmW13YIV VgW1TezNf41M6aN8e/RP5O4VpZ0yRpQvNwoAREfHe2EomFEhehPZq8fgdeLecVa7FKfNzEbNS+6 dqq+zdLp8SbUKmbro55WInMw7d5f5sQ= X-Proofpoint-ORIG-GUID: zRIKJLyPNs0PCcDx5GNPQGnXlXRaOgcy X-Authority-Analysis: v=2.4 cv=WuK+otfv c=1 sm=1 tr=0 ts=6ab8c698 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=Um2Pa8k9VHT-vaBCBUpS:22 a=EUspDBNiAAAA:8 a=FgIZ_Fb27Ug_Fq7-BHoA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX5wz1Je8UJA06 Q0JpEFivO5OHwpJJfawXzbP/gzTzmtIzDlB9Knw0OfHvPDVCejVFwqe65bYNGGB1UKFSd84e6Bm XZ5vVAC1U903c8FP2t02Xcp+HOR5F/YeX93VyRczZo6rsi60e2bAlgmKdX44CU2HEv9WyLpr+Cs 1iQIMW+M8ZzeBzc4ccMZyRC1s8FEJNSw+HuYrf6n8opMoS2oWSHR8ph0G9p74ED7yrzmcnzmmYp +9fFpnvyOZcAAMJJGnVfg9Y+QwfTAyaYGdEz+VYrqbIPzH2p43EKL8RfhK5+DRCdjPPg1uXDSGW XpL91FwWTEHnp6PpNzH5+IgY3EacPOytug5wUAZ1pyz2eZUbgzEZxC46X6U1QTEMTF4QTrFPG+p uM13bSHSkp2yVL3VFpczuW/3nnnrNv/aY0ziVpTIP39sSGRWpr8GglddnoDA4JxCzHmL0maRz3C dh3GEsUlUdPwKPlraYw== X-Proofpoint-GUID: zRIKJLyPNs0PCcDx5GNPQGnXlXRaOgcy 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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 suspectscore=0 phishscore=0 lowpriorityscore=0 adultscore=0 spamscore=0 priorityscore=1501 clxscore=1015 malwarescore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494429980158500 From: Pierrick Bouvier Solves these link errors on aarch64 hosts when linking arm and aarch64 targets: /usr/bin/ld: libsystem.a.p/hw_xen_xen_stubs.c.o: in function `xen_hvm_modif= ied_memory': /qemu/build/../hw/xen/xen_stubs.c:17: multiple definition of `xen_hvm_modif= ied_memory'; libsystem_arm.a.p/hw_arm_xen-stubs.c.o:/qemu/build/../hw/arm/x= en-stubs.c:25: first defined here /usr/bin/ld: libsystem.a.p/hw_xen_xen_stubs.c.o: in function `xen_ram_alloc= ': /qemu/build/../hw/xen/xen_stubs.c:23: multiple definition of `xen_ram_alloc= '; libsystem.a.p/hw_xen_xen-hvm-common.c.o:/qemu/build/../hw/xen/xen-hvm-co= mmon.c:39: first defined here /usr/bin/ld: libsystem.a.p/hw_xen_xen_stubs.c.o: in function `xen_mr_is_mem= ory': /qemu/build/../hw/xen/xen_stubs.c:28: multiple definition of `xen_mr_is_mem= ory'; libsystem.a.p/hw_xen_xen-hvm-common.c.o:/qemu/build/../hw/xen/xen-hvm= -common.c:27: first defined here /usr/bin/ld: libsystem.a.p/hw_xen_xen_stubs.c.o: in function `xen_map_cache= _enabled': /qemu/build/../hw/xen/xen_stubs.c:34: multiple definition of `xen_map_cache= _enabled'; libsystem.a.p/hw_xen_xen-mapcache.c.o:/qemu/build/../hw/xen/xen-= mapcache.c:86: first defined here /usr/bin/ld: libsystem.a.p/hw_xen_xen_stubs.c.o: in function `xen_invalidat= e_map_cache_entry': /qemu/build/../hw/xen/xen_stubs.c:38: multiple definition of `xen_invalidat= e_map_cache_entry'; libsystem.a.p/hw_xen_xen-mapcache.c.o:/qemu/build/../hw= /xen/xen-mapcache.c:664: first defined here /usr/bin/ld: libsystem.a.p/hw_xen_xen_stubs.c.o: in function `xen_ram_addr_= from_mapcache': /qemu/build/../hw/xen/xen_stubs.c:43: multiple definition of `xen_ram_addr_= from_mapcache'; libsystem.a.p/hw_xen_xen-mapcache.c.o:/qemu/build/../hw/xen= /xen-mapcache.c:538: first defined here /usr/bin/ld: libsystem.a.p/hw_xen_xen_stubs.c.o: in function `xen_map_cache= ': /qemu/build/../hw/xen/xen_stubs.c:54: multiple definition of `xen_map_cache= '; libsystem.a.p/hw_xen_xen-mapcache.c.o:/qemu/build/../hw/xen/xen-mapcache= .c:468: first defined here Signed-off-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921204954.50529-2-pierrick.bouvier@oss.qualcomm.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- hw/xen/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xen/meson.build b/hw/xen/meson.build index dcd2b7e1df3..62767a5ea21 100644 --- a/hw/xen/meson.build +++ b/hw/xen/meson.build @@ -29,4 +29,4 @@ else endif =20 system_ss.add_all(when: ['CONFIG_XEN', xen], if_true: xen_common_ss) -system_ss.add(when: ['CONFIG_XEN', xen], if_false: files('xen_stubs.c')) +stub_ss.add(files('xen_stubs.c')) --=20 2.53.0 From nobody Mon Nov 23 05:10:03 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=1790494377; cv=none; d=zohomail.com; s=zohoarc; b=ZZ7C4NMLdd8r8FCP5FlIRqur7Xd2ojz+bka81Ss9N0LRYZbuqbE6xmpnlrys5g9D3laByJoQWe0RJcq3A+MFMOuPKk2OCeR2GcYPnDRdLUDiU0987Gr+zrA0scufePvqCTDenDcJY9OpJX2toy0FaQPq+ILp6LTbsJEnhpcbIo8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1790494377; h=Content-Type:Content-Transfer-Encoding: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:Cc; bh=uHFX0PvLMf+Hsw8xnGc25nM8FRuS49x8Ym+534oN7w0=; b=K0nPidb/l2Z+UL5n+LGTiiew2Vidci0qWxNkoRNXazlrOyv5UsvGtGOU+VUi+vQZ8914astAVuyMuNrBeRqGEQKR0mXU0DoZmKzUwrZUUiORRHOlC2KGO+RdWZilzcsy+79XznP5WYjma5FG3CiK1J6l0h5P7EXS9mkdI+iKpwg= 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 1790494377391510.48351615067406; Sun, 27 Sep 2026 00:32:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xAjNW-0000CW-84; Sun, 27 Sep 2026 03:32:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xAjNT-0008NA-Dt for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32: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 1xAjNR-0006bT-Co for qemu-devel@nongnu.org; Sun, 27 Sep 2026 03:32:51 -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 68QHFmcu3201316 for ; Sun, 27 Sep 2026 07:32:48 GMT Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gx77jtcnh-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Sun, 27 Sep 2026 07:32:47 +0000 (GMT) Received: by mail-qt1-f198.google.com with SMTP id d75a77b69052e-53310b75674so38749521cf.3 for ; Sun, 27 Sep 2026 00:32:47 -0700 (PDT) Received: from localhost.localdomain (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a0017816efsm38339935e9.9.2026.09.27.00.32.45 for (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Sun, 27 Sep 2026 00:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= uHFX0PvLMf+Hsw8xnGc25nM8FRuS49x8Ym+534oN7w0=; b=MIntgDM574gtXWIN Lfy1OUU5MEZygrzdJOb5WmW7uhsc8tx5LzQkHvCwWAY9js+ZYSkVFww+nirSvfQm zJ81eeOyjt7oxHBFOZAlb9Ymd8FpR5deR0IrOVnRywDaHYYOVRgQB4NJMS0ki389 dWcHO4bULHHzlAj72fjVCYRH3HmB8pzY5GiPWmpgBzv9OxsdsYLpmd3AQhgQihYE 1PtDH96e91OvHIpTZHQqvS7TjUxddVc615HClBepXYAEIqhsNUw714NlCNF241Ph WKQWusNgi7bx0Yw+6ihu7jwPi+xj1sWqdsgo3aO8Iw1qBpyLp5LhPtXnYUwCTrER E8qRSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1790494367; x=1791099167; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=uHFX0PvLMf+Hsw8xnGc25nM8FRuS49x8Ym+534oN7w0=; b=MWzlb1d6tDxd5nFRmVdeqMd1zjzMZymu4e0Q97/SBkud3DzUq16paodX+4d05cMh8T +bmsfjRZa4d4CsXm1wlJpYXvUqrYks5/7hKx1YyVqUIAa9A39Te22le1rWzPJbtUQAGn 5qma7Uj81L5iLyk3jSpw2zcLqcpF6fXzUphTAOgckr2nDDBTk5/yc3DapaT+4icYw9C/ 0kerPjiZeCx0eMUzPMngZdvAN9S08FJNszwJuIGc06l3jw/4yxzyuXGRaNQ1QagfGvJ4 3eRSoe6aitht5lh10L3b6Zdks1mh5QzFp+zE+KGhkztWUhFGiYCWNduPsFtX+puxoQMK cz4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1790494367; x=1791099167; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=uHFX0PvLMf+Hsw8xnGc25nM8FRuS49x8Ym+534oN7w0=; b=ZF/Y5eS9bJQGS72iD71KnFCCqr0+T6C3xbLoGxPEyPEx57rivT/SfFaxR3UByp3FIJ hrCmITKYCNJ/bVVwYGse+Wl+naZxTHdfCZvFBIF3m+sHmKiDwHs+04/x4AfLeCLVJXn4 bZIS8HQR6nDiiC+SIL+kclNMGNZmISpRsavKlhCi2VpyE4FREco+yULcohXkjOXs+MdW G+R1VOFRrIjqiQrFOzGQ2BbXfhE5I6yTWXvmu7D+5LkFEuis+iQoJwJQMbexvvV5AeLP Prec26l2T+UtzT/B9kn3Cz4sXW0DGFhcT+p6CVdNIDhpkfhJsoyq7N0SoTKfIANk3gmg CJKA== X-Gm-Message-State: AFuF++klBxRvhXufbXBfIBi1DTmUwTP/JBy4Hm1HhewL74N/gFIuxnB6 m548WxIgGDgvE0iZSdBMZqzZ4Idsn4OBBmQxBacdZ+lEWjPiToCoWkpEKFpQIMhZGqXfkGrPteh 8RXeuk7FNMgI/2NDcpMNeU++1AwHNcCD3r8U6UZfUqEzj/OLVmz65xal0b3JrPCu7XA== X-Gm-Gg: AYBFou0ps0lFehxOQsGvv/qUklFbpV+7BzLapPKa/f1z5f9LYgjpdbI3IMsEfd4YPfL q8DpZM4OmvF13eZmHnBQFhv9uKmC0g2shNXuRAtt+y+LLtB4oKi4zSjT4zLDCdNu2E2uYet7fGz EV8efgHrL9/SFLva6RFuUsOpHIp/j1jAhuamhg0Vv16qKc95zNGySdcMZYRUSA5mSUT/ZHxgIxG RzAT/dXU6RN9DUOMj/FvVHSCwles6iHQlLC9eLdksAIA8uNHAg0nYGx5Dz9LQHl5mKdvfj19pcw qj9mkrjQdLkno4edyo/R87Yb4VI61olfbHIb9wAUNr34h0lPaH3jc1qXPE6vfYpXnhs0pD+Gyux MZ/g/Of1J+qcFaglUssZXjGjpCC2p3ya5lyNtz5Ex X-Received: by 2002:a05:622a:2515:b0:533:3b67:75dd with SMTP id d75a77b69052e-5333b6778e8mr10934651cf.13.1790494366734; Sun, 27 Sep 2026 00:32:46 -0700 (PDT) X-Received: by 2002:a05:622a:2515:b0:533:3b67:75dd with SMTP id d75a77b69052e-5333b6778e8mr10934351cf.13.1790494366147; Sun, 27 Sep 2026 00:32:46 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 9/9] target-info: add multi-target test binary Date: Sun, 27 Sep 2026 09:31:40 +0200 Message-ID: <20260927073140.41422-10-philmd@oss.qualcomm.com> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260927073140.41422-1-philmd@oss.qualcomm.com> References: <20260927073140.41422-1-philmd@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Proofpoint-Spam-Info: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX4txrOQjZ5zUc Jy1/N2C52T8cl0AsoCvQ+s91rPj1nTVYP9xscjgzZoDZmi8hlO/smzi/IuFLxwcckYtB6F8TR8H VjAjgqrzp/W0szJNjaWEOhEMC/n5WGc= X-Proofpoint-GUID: TZFhzQHAarG1eEWY6wMXG1QHj2bD_EbF X-Proofpoint-ORIG-GUID: TZFhzQHAarG1eEWY6wMXG1QHj2bD_EbF X-Authority-Analysis: v=2.4 cv=J8U/fwnS c=1 sm=1 tr=0 ts=6ab8c69f cx=c_pps a=mPf7EqFMSY9/WdsSgAYMbA==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=DJpcGTmdVt4CTyJn9g5Z:22 a=EUspDBNiAAAA:8 a=kv-CIVRGVCO3ybwTuYQA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=dawVfQjAaf238kedN5IG:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTI3MDAyOSBTYWx0ZWRfX3L2u+TIQvrH9 kIUsXktAEJ3QCmTI4xiL3P5ikCiO+RAgNHmx7my1qx7P6dmz/sNSYLJC7CFbRUQUlultIJpQKys JkOYFjC0277RXL645jTSHn1UwSdaE/e4o8Xiyofo2du4863V2EsnZTSmbW7L9XFiB6bCkqiMN6R UD9QJyOVec2fnLyrCjy/zgrSYpHM0a8trR7ZG2zZaOm+Udy6TzK5InTwHXIOA1nSTdVbby8eSVi HJwYRXRD/tntwcKTnrJU25pxqFLLb/vCAusAeQsrfexOPnnOs6un5ND6ilART5KmBSA8mZ8rh1e SmKXelOTWiMA/j/PUgHsR9MYN6F3ZcKr5X516q0a6Ip6rNdUTRyhNUocnJwR9YnzmmGKAuNuQbh WRmEPGit/xMsyKk5PFi83WHxDnYTy4ayOjPyd7zUkGCIFbu6J1sa2iF4pSVEyAySop9FkXRWuJ+ zBN7aMm7kopTpVRGErg== 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-09-26_05,2026-09-21_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 priorityscore=1501 spamscore=0 impostorscore=0 bulkscore=0 lowpriorityscore=0 adultscore=0 suspectscore=0 clxscore=1015 phishscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609270029 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=philmd@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: 1790494377867158500 From: Pierrick Bouvier Now we are able to link multiple targets together, we want to make sure no build regression is introduced. For this, add a new unit test linking compatible targets. In addition, we check QOM types can be initialized, ensuring uniqueness among all targets. For now, supported targets are: - arm-softmmu - aarch64-softmmu - microblaze-softmmu Signed-off-by: Pierrick Bouvier Reviewed-by: Philippe Mathieu-Daud=C3=A9 Message-ID: <20260921204954.50529-3-pierrick.bouvier@oss.qualcomm.com> Signed-off-by: Philippe Mathieu-Daud=C3=A9 --- MAINTAINERS | 1 + meson.build | 23 +++++++++++++++ include/qemu/target-info-qom.h | 1 + target-info-qom.c | 5 ++++ tests/unit/test-multi-target.c | 53 ++++++++++++++++++++++++++++++++++ tests/unit/meson.build | 12 ++++++++ 6 files changed, 95 insertions(+) create mode 100644 tests/unit/test-multi-target.c diff --git a/MAINTAINERS b/MAINTAINERS index 026c11bd9b0..1b66c65f689 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2146,6 +2146,7 @@ S: Supported F: include/qemu/target-info*.h F: target-info*.c F: configs/targets/*.c +F: tests/unit/test-multi-targets.c =20 Xtensa Machines --------------- diff --git a/meson.build b/meson.build index cfac634cf13..cae1591cd28 100644 --- a/meson.build +++ b/meson.build @@ -4259,6 +4259,15 @@ if host_os =3D=3D 'darwin' endif =20 traceable =3D [] +multi_target_libs =3D [] +multi_target_deps =3D [] +multi_target_crates =3D [] +multi_target_supported_targets =3D [ + 'aarch64-softmmu', + 'arm-softmmu', + 'microblaze-softmmu', +] + emulators =3D {} foreach target : target_dirs config_target =3D config_target_mak[target] @@ -4414,6 +4423,12 @@ foreach target : target_dirs build_by_default: false) =20 if target.endswith('-softmmu') + if target in multi_target_supported_targets + multi_target_libs +=3D lib + multi_target_deps +=3D arch_deps + multi_target_deps +=3D target_stubs + multi_target_crates +=3D main_rs + endif execs =3D [{ 'name': 'qemu-system-' + target_name, 'win_subsystem': 'console', @@ -4497,6 +4512,14 @@ endforeach =20 # Other build targets =20 +multi_target_objects =3D [] +foreach lib: multi_target_libs + multi_target_objects +=3D lib.extract_all_objects(recursive: true) +endforeach + +multi_target_link_args =3D emulator_link_args +multi_target_link_args +=3D enable_modules ? ['@block.syms', '@qemu.syms']= : [] + if get_option('plugins') install_headers('include/plugins/qemu-plugin.h') if host_os =3D=3D 'windows' diff --git a/include/qemu/target-info-qom.h b/include/qemu/target-info-qom.h index 91be415ed33..8b6e1ece969 100644 --- a/include/qemu/target-info-qom.h +++ b/include/qemu/target-info-qom.h @@ -26,5 +26,6 @@ typedef struct TargetInfoQomClass { OBJECT_DECLARE_TYPE(TargetInfoQom, TargetInfoQomClass, TARGET_INFO) =20 void target_info_qom_set_target(void); +void target_info_qom_set_target_info(const TargetInfo *ti); =20 #endif /* QEMU_TARGET_INFO_QOM_H */ diff --git a/target-info-qom.c b/target-info-qom.c index 6965e4d1169..3ae1627b8fb 100644 --- a/target-info-qom.c +++ b/target-info-qom.c @@ -53,3 +53,8 @@ void target_info_qom_set_target(void) =20 target_info_ptr =3D TARGET_INFO_CLASS(targets->data)->target_info; } + +void target_info_qom_set_target_info(const TargetInfo *ti) +{ + target_info_ptr =3D ti; +} diff --git a/tests/unit/test-multi-target.c b/tests/unit/test-multi-target.c new file mode 100644 index 00000000000..89b55bb1632 --- /dev/null +++ b/tests/unit/test-multi-target.c @@ -0,0 +1,53 @@ +/* + * Test for multiple targets + * + * Ensures targets compatible can be linked together. + * Also that each QOM type is unique among them and can be initialized. + * + * Copyright (c) Qualcomm Technologies, Inc. and/or its subsidiaries. + * + * Author: + * Pierrick Bouvier + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#include "qemu/osdep.h" +#include "qemu/module.h" +#include "qemu/target-info.h" +#include "qemu/target-info-qom.h" +#include "qom/object.h" + +#ifdef CONFIG_SDL +/* + * SDL insists on wrapping the main() function with its own implementation= on + * some platforms; it does so via a macro that renames our main function, = so + * must be #included here even with no SDL code called from this f= ile. + */ +#include +#endif + +/* stub for system/main.c */ +int (*qemu_main)(void); + +static void test_qom_types_are_unique(void) +{ + module_call_init(MODULE_INIT_TARGET_INFO); + g_autoptr(GSList) targets =3D object_class_get_list(TYPE_TARGET_INFO, = false); + g_assert(targets); + const TargetInfo *first_ti =3D TARGET_INFO_CLASS(targets->data)->targe= t_info; + target_info_qom_set_target_info(first_ti); + + /* register all types */ + module_call_init(MODULE_INIT_QOM); + /* trigger type_initialize for all types */ + object_class_get_list("", false); +} + +int main(int argc, char **argv) +{ + g_test_init(&argc, &argv, NULL); + g_test_add_func("/multi-targets/qom-types-are-unique", + test_qom_types_are_unique); + return g_test_run(); +} diff --git a/tests/unit/meson.build b/tests/unit/meson.build index e47bc7225ab..d17435c1877 100644 --- a/tests/unit/meson.build +++ b/tests/unit/meson.build @@ -215,3 +215,15 @@ foreach test_name, extra: tests suite: ['unit'] + (slow_tests.has_key(test_name) ? ['slow'] : [])) endforeach + +# Multi targets test +if multi_target_objects !=3D [] + test('test-multi-target', + executable('test-multi-target', + sources: [multi_target_crates, files('test-multi-target.= c')], + dependencies: multi_target_deps, + objects: multi_target_objects, + link_depends: [block_syms, qemu_syms], + link_args: multi_target_link_args), + suite: ['unit']) +endif --=20 2.53.0