]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Make all 32bit ID registers fully writable
authorMarc Zyngier <maz@kernel.org>
Thu, 30 Oct 2025 12:27:05 +0000 (12:27 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 8 Nov 2025 11:17:28 +0000 (11:17 +0000)
commit3f9eacf4f0705876a5d6526d7d320ca91d7d7a16
treefa87851f1b8976875ea24c94fda8338f45d17ee1
parent103e17aac09cdd358133f9e00998b75d6c1f1518
KVM: arm64: Make all 32bit ID registers fully writable

32bit ID registers aren't getting much love these days, and are
often missed in updates. One of these updates broke restoring
a GICv2 guest on a GICv3 machine.

Instead of performing a piecemeal fix, just bite the bullet
and make all 32bit ID regs fully writable. KVM itself never
relies on them for anything, and if the VMM wants to mess up
the guest, so be it.

Fixes: 5cb57a1aff755 ("KVM: arm64: Zero ID_AA64PFR0_EL1.GIC when no GICv3 is presented to the guest")
Reported-by: Peter Maydell <peter.maydell@linaro.org>
Cc: stable@vger.kernel.org
Reviewed-by: Oliver Upton <oupton@kernel.org>
Link: https://patch.msgid.link/20251030122707.2033690-2-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/sys_regs.c