]> Gentwo Git Trees - linux/.git/commit
KVM: arm64: Use the in-context stage-1 in __kvm_find_s1_desc_level()
authorOliver Upton <oliver.upton@linux.dev>
Fri, 26 Sep 2025 22:42:46 +0000 (15:42 -0700)
committerMarc Zyngier <maz@kernel.org>
Mon, 13 Oct 2025 13:17:03 +0000 (14:17 +0100)
commita46c09b382eea3f9e3d16576096b987a2171fcca
treec30780f6c1e5850dd7452bc1682b48c9374a80c9
parent9a1950f97741a23fc68a7b2cfd487e059d389be5
KVM: arm64: Use the in-context stage-1 in __kvm_find_s1_desc_level()

Running the external_aborts selftest at EL2 leads to an ugly splat due
to the stage-1 MMU being disabled for the walked context, owing to the
fact that __kvm_find_s1_desc_level() is hardcoded to the EL1&0 regime.

Select the appropriate translation regime for the stage-1 walk based on
the current vCPU context.

Fixes: b8e625167a32 ("KVM: arm64: Add S1 IPA to page table level walker")
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/kvm/at.c