Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 954E9CA5FF1 for ; Wed, 7 Oct 2026 13:20:49 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xERZb-0000L0-NO; Wed, 07 Oct 2026 09:20: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 1xERZV-0000KV-8v for qemu-arm@nongnu.org; Wed, 07 Oct 2026 09:20:37 -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 1xERZT-0001Bs-EV for qemu-arm@nongnu.org; Wed, 07 Oct 2026 09:20:37 -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 697BV9wO3687353 for ; Wed, 7 Oct 2026 13:20:32 GMT 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= 3bAUurAMjdd9838yiMUYqDq5XOtd1Xca72ydMvrK1fc=; b=GCnxw9codYajiqoS 2dsD1I+cI9mvuZm61QtuCldono/qx9iFA9JaN4o8GhS163AtE2ksCDPqRe+blcU9 OLuuyELRJRdwt7/dbpt6ti9h+Pk0So/rzOAfW6Cuy2maXCSv0UKUolJxkr1sEaW+ 3rDzMqZqDVvx2Rw+RivocgPk1lXEyW5QA+vh2Y3WA1Hb1POQzZwDDctZOMMv27NQ IeXAN3dJa7fBM/50g6VZdIyT4eRG19atF3hEnC90CTEwm69tIm8bYHhDdHKHOxik GNGO6WHMQ5rtErmi/IyQD2q6p5BVR5y6czJJQOol2plM+mbesjspdV3WvE1fYDYP ocbUDg== 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 4h5mgr8k2m-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 07 Oct 2026 13:20:32 +0000 (GMT) Received: by mail-qk1-f199.google.com with SMTP id af79cd13be357-93caa0ce0cdso500221985a.2 for ; Wed, 07 Oct 2026 06:20:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1791379232; x=1791984032; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to:content-type; bh=3bAUurAMjdd9838yiMUYqDq5XOtd1Xca72ydMvrK1fc=; b=JYKEB2stc9CKAjv/EdYUqcRWm8gQbik388o/6jPOouCAbmKCRECl+WGtkC9QE5hnQ8 8sd/xQ21Xrt72WXmngCVpozGxy+yggepEYzoOJCdCdCKi9LzsmeV6NYJHP4YdPDNZ58s Sv2ELFR40Ze2ytkN5X6621MudJmXXqJUjI16+GftNZogbuPBHpOAEENUCAXuoRCW0uBX 5gzHpFbtMBwEAW22CbcYOxlrWWdQjRfYL9Htpi9cp7nrKUn1GBlOhqOEqEnGfKEp5zQC H5PnG7cxS7DruWhocNIO7yIUVBTQ+NiUGsRzC6pbhUhGXrquk5RCuVt5Eeg+HEQeD6rj 0chw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791379232; x=1791984032; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=3bAUurAMjdd9838yiMUYqDq5XOtd1Xca72ydMvrK1fc=; b=gak3crk70sabozDkQulQS6C7zZQ1OaxG5HLpACMoFpfDJqahN4clmCME/ONwOR2sBk 8dsbFLiKEnNotboiQyWK71nBNdOxzKP2AKzQp6OSZg9LhAOlFqyIDvSVK3glYGGifi/U 03v6J7Un7c/Ts3hG0xUGocQv1ARHVJGVs2D4sFAcpEHZxCEPpKKf0VieQr0tQtaeXifI fLsZjbTQbLALDEjX3gMXYDE+zl8QL7lzOmKbDmQ3TPMPhtpC4YMrFbrvE3J8DlGEpkL2 d9+vOF2/AIJgth3/IjG9l4+Sw6veQesYD1TNvinIq6d2OFPMRwhIiF0G5WEPyVdc4OIJ eSmw== X-Forwarded-Encrypted: i=1; AKwUvBwuFST1pH5RnGAijj3s3xw+afMc30nRcP/bij5MfxOcb4G3Ie2InEHScT3Wl+/oph2zQKxXO0HY8Q==@nongnu.org X-Gm-Message-State: AFuF++m5cHB/oHla/tAKj2BKXWaXgnMnnKIO2xql0WdDIIjSxAtV/cr4 vE81H2VALiTff9NkXFCQRce33y7dFbu7a4NoXwRb2VdkiIET0Pkf6MBNHqSfCLUgI3hiG4N21jT slRUyGdjZanqIz+hbVrG37t7FuPu0LUDCYOBDwVkkIMt1D6a4tUhKbCg= X-Gm-Gg: AYBFou2OIqLW7RZHlT9lQFJ9Zc61MeuBk37si0/rlswN35coc35+XPIq+ZRtlWNiDYg qxrEynRrkW8c2h7QOTZv81tl64k95jLayHfAZVfCnIxktrX9eWTdqNt7ig+FGSSupj1V471MImE 6PxvzvfQj/tp7m3LrcJxnS40s4pRQ436lijyVQj6N1IWc5fSyJE4Isyg0MS/jXDl85FDKZKU4Fz JZfpNe14MPwkFCLlEOHK/wZXenqlBR73Qj+esoJMDZbHajdvpjan8mhjRCLV0ODV+ChLMcB5Ptr e17/RovoW6u5KDWXGzkH5FOLssyU/6U/HIIawJ+3ZX2ndvtfZ/BjkAaj2T7GpVMtYnjYdoErnlB vgZlrS+oFeYRbcyL24grDmSiYkiOl9CP6xg== X-Received: by 2002:a05:620a:27cd:b0:93d:78e0:30b2 with SMTP id af79cd13be357-93e9b721dd7mr451683285a.29.1791379231330; Wed, 07 Oct 2026 06:20:31 -0700 (PDT) X-Received: by 2002:a05:620a:27cd:b0:93d:78e0:30b2 with SMTP id af79cd13be357-93e9b721dd7mr451677985a.29.1791379230783; Wed, 07 Oct 2026 06:20:30 -0700 (PDT) Received: from [192.168.69.210] (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a17a0fc2e4sm149808745e9.3.2026.10.07.06.20.29 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 07 Oct 2026 06:20:30 -0700 (PDT) Message-ID: <79f974bd-dcda-42cf-be57-6360f796ab0d@oss.qualcomm.com> Date: Wed, 7 Oct 2026 15:20:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 6/9] target/arm: GICv5 cpuif: Use arm_cpu_set_irq() to set IRQ/FIQ status To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org References: <20260914160020.327787-1-peter.maydell@linaro.org> <20260914160020.327787-7-peter.maydell@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= Content-Language: en-US In-Reply-To: <20260914160020.327787-7-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDA3MDA1MyBTYWx0ZWRfX9eHygjxzBePY 1ZAi6wVpd6K1d4TTN1Ko3h9vLO01ExYFOH8lqYh35MXHUdcull5cA/+HSgxQfPlSafkpy/W4Def svZZgMSlpSElDodBtpZp+G4GqdcbeTYst9FWG90J77FQ0R9ZqAW2lkQpYLcVyXQ37v5HDGloJke UFmNfxJTfp29Qg2hRwZuHpgQ58f7Z8Ao6PnXN+2G03LqAK91TWB5BNiYS5bsdRAKDxZD5WQG0N5 xfpO0BfoS/taWDmz580K57t3xXnIO8JygnOfQx5XTo0aXPLRsJU222ppxBwjJCG8JcrqtOr9abS k767fPHalxcGbweMT6gAXZVwDA1hNTLmK7A26wzWv2ONPHs0HjccsEHooOV6sZ8h/divEbUlLGi Dl31ijiOqI2Pa/ge/COqZCE7txbvGH8xgaa0SnJwep1dRUHqI4NzwZzlGdllgPCEtdaLwAUClNx I4kyZ70eby187aMM6dA== X-Proofpoint-Spam-Info: AW1haW4tMjYxMDA3MDA1MyBTYWx0ZWRfX65tBVTKNrpzX /fUYDbbJqQzydsB2/h2/OonUcswjWBUfrhm90eWqviRa5S5mZjp13hdp41VKW1ThMKpWjU2Iz8q E6wCPHR4r35R5CcPBhL1tD2fhizsADo= X-Proofpoint-ORIG-GUID: hErM-iG3O2ZMMeJBG8J4dkFH2Hh1PpKt X-Proofpoint-GUID: hErM-iG3O2ZMMeJBG8J4dkFH2Hh1PpKt X-Authority-Analysis: v=2.4 cv=OYkNnRTY c=1 sm=1 tr=0 ts=6ac64720 cx=c_pps a=HLyN3IcIa5EE8TELMZ618Q==:117 a=4s3hRJSeHn4rkQlkrse1kQ==:17 a=IkcTkHD0fZMA:10 a=660iZSQnnn4A:10 a=M51BFTxLslgA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=rJkE3RaqiGZ5pbrm-msn:22 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=s5kuZBEdcB38ouE1BJ8A:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bTQJ7kPSJx9SKPbeHEYW:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-10-07_04,2026-10-06_03,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 lowpriorityscore=0 clxscore=1015 spamscore=0 phishscore=0 bulkscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2610070053 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-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org On 14/9/26 18:00, Peter Maydell wrote: > Currently the GICv5 cpu interface directly calls cpu_interrupt() and > cpu_reset_interrupt() to raise and lower IRQ and FIQ. This is almost > but not exactly what we do for GICv2/GICv3 external GPIO IRQ/FIQ line > changes. Those are handled by arm_cpu_set_irq(), and as well as > calling cpu_interrupt() or cpu_reset_interrupt() they also update > env->irq_line_state. > > For IRQ and FIQ it doesn't matter whether we set and clear the bits > in irq_line_state, because nothing looks at them. But for VIRQ and > VFIQ it will matter, because VIRQ and VFIQ are the logical OR of the > line state and some bits in HCR_EL2. We're going to need to call > arm_cpu_set_irq() for VIRQ and VFIQ; for consistency, handle IRQ and > FIQ that way too. > > Since arm_cpu_set_irq() is now a function called from other parts of > the CPU code, we make its first argument a properly typed one, with a > wrapper taking void* for when we need to use it as a > qemu_irq_handler. > > Signed-off-by: Peter Maydell > --- > target/arm/cpu.c | 14 +++++++++++--- > target/arm/internals.h | 14 ++++++++++++++ > target/arm/tcg/gicv5-cpuif.c | 35 ++++------------------------------- > 3 files changed, 29 insertions(+), 34 deletions(-) Reviewed-by: Philippe Mathieu-Daudé