]> www.infradead.org Git - nvme.git/commit
KVM: arm64: Honor trap routing for TCR2_EL1
authorMarc Zyngier <maz@kernel.org>
Tue, 25 Jun 2024 13:00:42 +0000 (14:00 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 27 Jun 2024 00:04:25 +0000 (00:04 +0000)
commit91e9cc70b77516e766fd8b532c3a20aba37369d1
tree50d112baed4af5d0a08ba1bb91dd4177f57384f2
parent663abf04ee4d750229e8f47881d31a5204259ceb
KVM: arm64: Honor trap routing for TCR2_EL1

TCR2_EL1 handling is missing the handling of its trap configuration:

- HCRX_EL2.TCR2En must be handled in conjunction with HCR_EL2.{TVM,TRVM}

- HFG{R,W}TR_EL2.TCR_EL1 does apply to TCR2_EL1 as well

Without these two controls being implemented, it is impossible to
correctly route TCR2_EL1 traps.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20240625130042.259175-7-maz@kernel.org
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/emulate-nested.c