KVM: arm64: Disable TTBR1_EL2 when using ARM64_KVM_HVHE
authorMarc Zyngier <maz@kernel.org>
Fri, 9 Jun 2023 16:21:54 +0000 (17:21 +0100)
committerOliver Upton <oliver.upton@linux.dev>
Mon, 12 Jun 2023 23:17:23 +0000 (23:17 +0000)
commitcff3b5cf96edbb9e7448bca6261871272922a0df
tree1c9829e93dc74791154767ab345d680f127aa6a0
parentd0daf5a21e635057e87cc05d6bca012157aa3ab7
KVM: arm64: Disable TTBR1_EL2 when using ARM64_KVM_HVHE

When using hVHE, we end-up with two TTBRs at EL2. That's great,
but we're not quite ready for this just yet.

Disable TTBR1_EL2 by setting TCR_EL2.EPD1 so that we only
translate via TTBR0_EL2.

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