Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9215F3242D8; Wed, 25 Feb 2026 08:52:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772009564; cv=none; b=W++qT5Q/45Kmz/xJA55BV6bSiH3XqmoVMR8Cguo88mLSlzBxbV0Blt9VZtKezyIJMu1U5jv81ONa4LhdRodudsusMjrY0+4QPWKPUj0OIbVoaIzL6/Pj2idA0IX/KHOYHRyPo3+q8TjCLzTIRExXJd+ExnM6VBg+1ZfYgplm8Ts= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772009564; c=relaxed/simple; bh=nxiB4eR3ZUkyJ3dWbA+IdTm3cCYRhc1g98xGjy3nX7U=; h=Date:Message-ID:From:To:Cc:Subject:In-Reply-To:References: MIME-Version:Content-Type; b=qvV5UFiOUBkSKiGB4Sl5DdMN5r99Grdl6AwZ9edM7Gd99ZaDC3+ZS118FBmen5tPf+Y+VDQFV7nPi3wnptzm71MgJ8UF2eMqzO0Jc6I4KCfEVFPvf2IxYh+cImS+x1oUWlVXOXF8bnl5PRjf3Am07rjSm5zYQt+1pMEGpr8slSc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=q0+eB3cB; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="q0+eB3cB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31E4BC19423; Wed, 25 Feb 2026 08:52:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772009564; bh=nxiB4eR3ZUkyJ3dWbA+IdTm3cCYRhc1g98xGjy3nX7U=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=q0+eB3cBcwVZZ0ujGJcgnP96sAYAvEwZmoxSktiYSXrlUz7OulAvaIPxJvAQTqB7y tuSk+nGjtcM8zQXn3M9h1AiZmW2UMgbdD/ysrldHldnsrPIiWgrDAvqeoAfGtjQ+St 4f1tWCxufHirdq6jP88dY41ID6zocpMOrme4yZMDJ7usFxyQMSVriYgg1ALouo3UIf IHwdFvAlNXHUv4qZsnGa409vsvaKTbTrFa/Kz9uerjDkcytvOaH//pf3DxTpiz0Ciz L4q3RQcWCCcD9zzf7dddtkupY+RjRcZfF9yKrFpbyhox0llqtxJ+dI7ERamO9Utv9D lpw2CscKzVKZQ== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vvAdN-0000000DdAm-3G3y; Wed, 25 Feb 2026 08:52:41 +0000 Date: Wed, 25 Feb 2026 08:52:41 +0000 Message-ID: <86cy1t9pd2.wl-maz@kernel.org> From: Marc Zyngier To: Sascha Bischoff Cc: "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.linux.dev" , "kvm@vger.kernel.org" , nd , "oliver.upton@linux.dev" , Joey Gouly , Suzuki Poulose , "yuzenghui@huawei.com" Subject: Re: [PATCH] irqchip/gic-v5: Fix inversion of IRS_IDR0.virt flag In-Reply-To: <20260225083130.3378490-1-sascha.bischoff@arm.com> References: <20260225083130.3378490-1-sascha.bischoff@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: Sascha.Bischoff@arm.com, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm@vger.kernel.org, nd@arm.com, oliver.upton@linux.dev, Joey.Gouly@arm.com, Suzuki.Poulose@arm.com, yuzenghui@huawei.com X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false On Wed, 25 Feb 2026 08:31:40 +0000, Sascha Bischoff wrote: > > It appears that a !! became ! during a cleanup, resulting in inverted > logic when detecting if a host GICv5 implementation is capable of > virtualization. > > Re-add the missing !, fixing the behaviour. > > Fixes: 3227c3a89d65f ("irqchip/gic-v5: Check if impl is virt capable") > Signed-off-by: Sascha Bischoff > --- > drivers/irqchip/irq-gic-v5-irs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/irqchip/irq-gic-v5-irs.c b/drivers/irqchip/irq-gic-v5-irs.c > index e518e5dfede78..f3fce0b1e25d9 100644 > --- a/drivers/irqchip/irq-gic-v5-irs.c > +++ b/drivers/irqchip/irq-gic-v5-irs.c > @@ -699,7 +699,7 @@ static int __init gicv5_irs_init(struct gicv5_irs_chip_data *irs_data) > */ > if (list_empty(&irs_nodes)) { > idr = irs_readl_relaxed(irs_data, GICV5_IRS_IDR0); > - gicv5_global_data.virt_capable = !FIELD_GET(GICV5_IRS_IDR0_VIRT, idr); > + gicv5_global_data.virt_capable = !!FIELD_GET(GICV5_IRS_IDR0_VIRT, idr); > > idr = irs_readl_relaxed(irs_data, GICV5_IRS_IDR1); > irs_setup_pri_bits(idr); Gah. Apologies for the overly eager cleanup. I'll take that in the next batch of KVM fixes. Thanks, M. -- Without deviation from the norm, progress is not possible.