]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Validate FGT register descriptions against RES0 masks
authorMarc Zyngier <maz@kernel.org>
Sun, 9 Feb 2025 14:19:05 +0000 (14:19 +0000)
committerMarc Zyngier <maz@kernel.org>
Sat, 10 May 2025 10:04:35 +0000 (11:04 +0100)
commit938a79d0aa8dd0f75e4302a67006db4f45e1ce4e
treea1dec30bb006a8cca78b301a7ebf627308b7d1a9
parent63d423a7635bca6d817a30adff29be58ee99c6d5
KVM: arm64: Validate FGT register descriptions against RES0 masks

In order to point out to the unsuspecting KVM hacker that they
are missing something somewhere, validate that the known FGT bits
do not intersect with the corresponding RES0 mask, as computed at
boot time.

THis check is also performed at boot time, ensuring that there is
no runtime overhead.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/config.c
arch/arm64/kvm/sys_regs.c