]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Correctly honor the presence of FEAT_TCRX
authorMarc Zyngier <maz@kernel.org>
Tue, 25 Jun 2024 13:00:37 +0000 (14:00 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 27 Jun 2024 00:04:25 +0000 (00:04 +0000)
commit9b58e665d6b25ff687380d14009d7cffe7f70df7
tree9305bcd73054b2f6af954c53a52579090dfa9c68
parent83a7eefedc9b56fe7bfeff13b6c7356688ffa670
KVM: arm64: Correctly honor the presence of FEAT_TCRX

We currently blindly enable TCR2_EL1 use in a guest, irrespective
of the feature set. This is obviously wrong, and we should actually
honor the guest configuration and handle the possible trap resulting
from the guest being buggy.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Joey Gouly <joey.gouly@arm.com>
Link: https://lore.kernel.org/r/20240625130042.259175-2-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/include/asm/kvm_arm.h
arch/arm64/kvm/sys_regs.c