]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: Make all 32bit ID registers fully writable
authorMarc Zyngier <maz@kernel.org>
Sun, 23 Nov 2025 10:39:09 +0000 (10:39 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Dec 2025 10:43:37 +0000 (11:43 +0100)
commit2678ceed5898659effb7fc9a61547eaa54d7d059
treece09a0942cb6861799e71038cc284712ed542736
parentfdf0dc82eb60091772ecea73cbc5a8fb7562fc45
KVM: arm64: Make all 32bit ID registers fully writable

commit 3f9eacf4f0705876a5d6526d7d320ca91d7d7a16 upstream.

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/arm64/kvm/sys_regs.c