]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Use FGT feature maps to drive RES0 bits
authorMarc Zyngier <maz@kernel.org>
Sun, 9 Feb 2025 14:45:29 +0000 (14:45 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 19 May 2025 10:35:00 +0000 (11:35 +0100)
commitc6cbe6a4c1bdce88bb0384df0e3679e4ef81dcd6
treeb2e77083b1d4e04ee8a8a4b6798a57a38a07164f
parent938a79d0aa8dd0f75e4302a67006db4f45e1ce4e
KVM: arm64: Use FGT feature maps to drive RES0 bits

Another benefit of mapping bits to features is that it becomes trivial
to define which bits should be handled as RES0.

Let's apply this principle to the guest's view of the FGT registers.

Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/config.c
arch/arm64/kvm/nested.c