]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: arm64: nv: Extract translation helper from the AT code
authorMarc Zyngier <maz@kernel.org>
Wed, 14 May 2025 10:34:46 +0000 (11:34 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 19 May 2025 06:59:46 +0000 (07:59 +0100)
commit34fa9dece52757727ed2ffd5cf4713c6cd0b707f
tree36476a109783c36157ce2b47b93ed91b84ba409b
parent469c4713d48028186e4bbf4b74ebce273af9a394
KVM: arm64: nv: Extract translation helper from the AT code

The address translation infrastructure is currently pretty tied to
the AT emulation.

However, we also need to features that require the use of VAs, such
as VNCR_EL2 (and maybe one of these days SPE), meaning that we need
a slightly more generic infrastructure.

Start this by introducing a new helper (__kvm_translate_va()) that
performs a S1 walk for a given translation regime, EL and PAN
settings.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20250514103501.2225951-4-maz@kernel.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_nested.h
arch/arm64/kvm/at.c