]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Add TCR2_EL2 to the sysreg arrays
authorMarc Zyngier <maz@kernel.org>
Wed, 23 Oct 2024 14:53:19 +0000 (15:53 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 31 Oct 2024 02:42:30 +0000 (02:42 +0000)
commit69c19e047dfee63f3e5b06b4ad288bbad32fe8f0
treec0d6cb957a73a4d4a08aae40caf7e93eddc0f274
parent9ae424d2a1ae144c83ffd7c9e2f408ae5acfb634
KVM: arm64: Add TCR2_EL2 to the sysreg arrays

Add the TCR2_EL2 register to the per-vcpu sysreg register array,
the sysreg descriptor array, and advertise it as mapped to TCR2_EL1
for NV purposes.

Access to this register is conditional based on ID_AA64MMFR3_EL1.TCRX
being advertised.

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