]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Set ID_{AA64PFR0,PFR1}_EL1.GIC when GICv3 is configured
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Oct 2025 12:27:06 +0000 (12:27 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 8 Nov 2025 11:17:28 +0000 (11:17 +0000)
commit8a9866ff860052efc5f9766f3f87fae30c983156
treed0c151131fe80c76d33e596a228c0da360b48f8f
parent3f9eacf4f0705876a5d6526d7d320ca91d7d7a16
KVM: arm64: Set ID_{AA64PFR0,PFR1}_EL1.GIC when GICv3 is configured

Drive the idreg fields indicating the presence of GICv3 directly from
the vgic code. This avoids having to do any sort of runtime clearing
of the idreg.

Fixes: 5cb57a1aff755 ("KVM: arm64: Zero ID_AA64PFR0_EL1.GIC when no GICv3 is presented to the guest")
Reviewed-by: Oliver Upton <oupton@kernel.org>
Link: https://patch.msgid.link/20251030122707.2033690-3-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/vgic/vgic-init.c