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 2F27ACC6B03 for ; Tue, 13 Oct 2026 10:30:53 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xGZmM-0007Cs-Cx; Tue, 13 Oct 2026 06:30:42 -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 1xGZmG-0007CE-5V for qemu-arm@nongnu.org; Tue, 13 Oct 2026 06:30:41 -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 1xGZmE-0003HU-2c for qemu-arm@nongnu.org; Tue, 13 Oct 2026 06:30:35 -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 69D94B64483184 for ; Tue, 13 Oct 2026 10:30: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= jpjxnfJAkJDYym8FzQWYz1Hf94IVqWFhGR+5oGS/Snk=; b=IlsDuvirKzeU5Ram f+6nFrzyMDnKeGxU41n+UA5rSeYIMAX3vNabVK4TlWhoRalniHKyUUu6SXffQRof bTstcU1nI+RotGV4n4vmneLh0msu5ynGjI+Fd8BmPhF+QFg5D+n4vqMyqLAhgZTi PfzIzJSV+n0VqaodHn5fBnLSw0gjfy7LiLfxUbmm2NJL7yZwnvWEbGravRSyfPBt ZhEdWH5yiUbCQ5NhYP453q4/TbPaOU0EyMbZE3bXx9KOd4OsdhSkvqB2E8x/jCVM cO9o01zI9PQowoWeXasD3joR1O1EmCa3EuP3/LvMhO8ltkWcdluE/WvN5aDQ8eWa OD0uJg== 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 4h9hpg8cfj-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 13 Oct 2026 10:30:32 +0000 (GMT) Received: by mail-qk1-f197.google.com with SMTP id af79cd13be357-9308eafb465so785506385a.2 for ; Tue, 13 Oct 2026 03:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1791887432; x=1792492232; darn=nongnu.org; h=content-transfer-encoding:content-type:in-reply-to:from:references :to:content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to:content-type; bh=jpjxnfJAkJDYym8FzQWYz1Hf94IVqWFhGR+5oGS/Snk=; b=bT4n6zSq0vbALrqwpu/GzqM0cn7lHyV+nC7dkUKUDu9UIMLBKhSiVOynTzuAf7iMPx wFYxihAQJWROrXxJQLkwva8nfmkxaSwnZv4stV5xn6w1cKihJl1kyowVj/pJKVIRq4r+ cO6nFBXygqC6hSB5+jNASZcvM75AqnGNPHt6/C7gau5+ioJM4FdE5j2rU3n4yZ2YGv+2 +8Dj2AlrajwoP2v4obP7Dj3/3AUuQw2r+765pv5N899pKhGQEGNhG5myljUEBng4ONkW 5ot0UpKyReTxac7NYWYMTcEDIsey+hhAX7cKPommqJXhKZQ6n3JplNYe0RGXByoXpdrS 9ouA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791887432; x=1792492232; h=content-transfer-encoding:content-type:in-reply-to:from:references :to:content-language: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=jpjxnfJAkJDYym8FzQWYz1Hf94IVqWFhGR+5oGS/Snk=; b=2EFRYCDInkLBJqzVlbx8DuAKiflUbMWAVMS8hJ3KVhZi2bRN2lZDsRwtAm2REC1y1v cD2DkWcm586t6pAcvbrDtgsF4uaycUoSUwxkpYYrjwVLF+hVwmb0IoY7XIBAzq+f+sI5 ecB/dIhd239G37PKJW2pGICSDPr8Wyfpw/R5kM40BpugYnMhouQiF1NZqK87IOQQ1T7l jQT+OFdyQz7QU+EdMf1tX/1bNZ/83W7jpjJjyy6uj0mY/rRunYOUaEBZDPNhndYT2+dB 63k+dxDbtPSJbvR9nkqf13uOwo+85wkwmEw/bnEOy0wNdmaXGTnYQGQFGsK0cWhJMtl4 u5fw== X-Forwarded-Encrypted: i=1; AKwUvBzuR7yB0UpucaA9FloTcteSvzfDk/Brua7h+N78Ds3n8whkARylqGkFEKAEE/nK6wRRJtHHBG3UWg==@nongnu.org X-Gm-Message-State: AFq9FYJ2vOYKORpWARYhrbzMYX8AQSGx72lTFLWlm8EAWY7oXubl7Gzx mY5/3oP/o0X1ieYXab5Kqv5Qgqk3qRL4T+2xH/jMZQWnuRx6PXXI9fIqSy8Ps9mv5vcqTS27t6r tyocaMyPm7vFgthK2RsXeHb+1F4nCb3b399FinjriprbItphZblJb+Ds= X-Gm-Gg: AYBFou1mriLr+HgIOY7bJtBQYbPw0hLxkHmyDNnyB+Qwc8R9E5NmDN3kDap7tnsmh92 VOsYS7uCW6G7Ba0PUpDzyChfESotUF+hgh6h3o85MWmXkxCk3WDl+6YentbHsZy3RY1REjhkijq pJlCXXvYKukPyDw+YRlOVM5WuTBzkGpgOFdCLMv5DsW0GujTLcxoLAg7W5n8VmFomyHNAdiKVfG i4Ei0Vlj/X7H/kuZ18xpBBEv0LyNDvpqTZF1EOyDZ1O6KwN59e9wDbxC4iIDEpMAb5hVDFwXcj5 AYef0KsUTdu8fpTqG3WJ4IaCuZ46zuAJQjIwyGSqegjh3MATqAkScUnzFLDg9qKwTCk7iEOUDbf +ODjGVLK0Dgqy92GdWl2raJ2dODlEqGO1fQ== X-Received: by 2002:a05:620a:2947:b0:93b:ef24:bc8c with SMTP id af79cd13be357-93ebd279c98mr1959688685a.47.1791887431988; Tue, 13 Oct 2026 03:30:31 -0700 (PDT) X-Received: by 2002:a05:620a:2947:b0:93b:ef24:bc8c with SMTP id af79cd13be357-93ebd279c98mr1959682385a.47.1791887431307; Tue, 13 Oct 2026 03:30:31 -0700 (PDT) Received: from [192.168.69.210] (pmd666.hd.free.fr. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4a198c80cb3sm168748515e9.3.2026.10.13.03.30.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Oct 2026 03:30:30 -0700 (PDT) Message-ID: Date: Tue, 13 Oct 2026 12:30:29 +0200 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 12/86] hw/intc/arm_gicv5: Relax QEMU_GICV5_MIN_LPI_ID_BITS to 0 Content-Language: en-US To: Peter Maydell , qemu-arm@nongnu.org, qemu-devel@nongnu.org References: <20261013083933.1024405-1-peter.maydell@linaro.org> <20261013083933.1024405-13-peter.maydell@linaro.org> From: =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= In-Reply-To: <20261013083933.1024405-13-peter.maydell@linaro.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: MUZwiAh459_siio2mXBTvUmbyI_t-fiF X-Proofpoint-Spam-Info: AW1haW4tMjYxMDEzMDA0MSBTYWx0ZWRfXykNCl/22ktnq 6durPTtK2wZH1ZX1akEJeq3OW2P8HG8WEwdKUmov6iF688ZSU4WmPJ3vdN0nlpvdqkNeOMAxjd0 ASN1nVloef4R1yNBIuU47bihi2SJXxs= X-Proofpoint-ORIG-GUID: MUZwiAh459_siio2mXBTvUmbyI_t-fiF X-Authority-Analysis: v=2.4 cv=Z4Z5j3RA c=1 sm=1 tr=0 ts=6ace0848 cx=c_pps a=50t2pK5VMbmlHzFWWp8p/g==: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=ZpdpYltYx_vBUK5n70dp:22 a=KKAkSRfTAAAA:8 a=EUspDBNiAAAA:8 a=8L6ZMB3pTTj5EbQMzgwA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=IoWCM6iH3mJn3m4BftBB:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYxMDEzMDA0MSBTYWx0ZWRfX4CcSNGfJ7k3j TEhGMa7ce9GZyogJ+aCL8NhHmeydzsG+GIhPL0bYEJtONBRKWJuhyGw6UWX8YaaA1n9dxSV0xn2 mBDxYKfkHf/uZWwLyq/0C30avasuXa6eR77UIxlmL0UazfcKETmEr9wh+bXE+y7X+cd9KO4ucax DmIV1uIwLlN0f2Nq4NCy2Iz8Kt3NIOEMU99HfcnVXVc4Ls8oa0x9umhRSeLGnL3VatMX8x4i7S2 mTvhIiGYlGT4SRjJO0Ccr0aZtpOBIcuB0TUFk1xr6sCM9NM+2yBWCUuvuM8z6JO+GlWXvqu0uzc zRD16tcehHRSw3yrqH+CQ2ODqA94AOPGdvwwHSenZi+2vXpSsOaFnkZItpf89dvELZzReZHuZme yz4rGqB+PcinlFbjEwFNmhnwQgnGDYgYJ9K1FOqL1vwJUPZQvjd0Kh8g6RtoywgWzZbDBwIz7T1 2DABfSB2Qh7HMd7DtUA== 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-13_01,2026-10-09_01,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 impostorscore=0 phishscore=0 bulkscore=0 adultscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 spamscore=0 lowpriorityscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2610080000 definitions=main-2610130041 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 13/10/26 10:38, Peter Maydell wrote: > The GICv5 specification allows implementations to declare a > MIN_LPI_ID_BITS value in IST_IDR2, which specifies the minimum number > of supported LPIs which can be configured (both for physical LPIs and > for virtual LPIs in VMs). It also notes (I_ZKLJR) that it doesn't > expect most hardware implementations to require a minimum numberof > LPI ID bits, and that this is mostly useful for the virtual IRS that > a hypervisor might expose to a guest. > > QEMU generally prefers to offer the guest the highest-flexibility > setting when it comes to this kind of IMPDEF value, so for instance > we set our supported ID and IAFFID bit size to the maximum the spec > permits. Since this value is a minimum rather than a maximum, > "highest-flexibility" means allowing the guest to configure a very > small LPI range if it wants to. Our current setting of 14 for > QEMU_GICV5_MIN_LPI_ID_BITS is the least-flexible the architecture > permits and requires that guests always configure large LPI ranges. > > Set QEMU_GICV5_MIN_LPI_ID_BITS to 0, as the spec suggests real > hardware would. > > Signed-off-by: Peter Maydell > --- > include/hw/intc/arm_gicv5_common.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Still valid with A.a release. Reviewed-by: Philippe Mathieu-Daudé