[PATCH v2 04/45] KVM: arm64: Turn vgic-v3 errata traps into a patched-in constant

Marc Zyngier maz at kernel.org
Thu Nov 13 03:42:04 PST 2025


On Thu, 13 Nov 2025 11:23:33 +0000,
Joey Gouly <joey.gouly at arm.com> wrote:

> I suppose the issue is that the alternatives in vgic_ich_hcr_trap_bits() are
> always calculated, even if that function is only used from the gic-v3 code.
> Calculating the trap bits reads ICH_VTR_EL2, which needs FEAT_GICv3.

Except that we have a bunch of rotten fruits that only have half a
GICv3, so relying on FEAT_GICv3 isn't useful if we want to continue
supporting these machines in the foreseeable future.

The fix for this is, I expect, what I posted at [1].

Thanks,

	M.

[1] https://lore.kernel.org/r/86seeitd3f.wl-maz@kernel.org

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list