KVM: arm64: nv: Add non-VHE-EL2->EL1 translation helpers
authorMarc Zyngier <maz@kernel.org>
Sun, 25 Dec 2016 15:49:48 +0000 (10:49 -0500)
committerMarc Zyngier <maz@kernel.org>
Tue, 19 Dec 2023 09:51:11 +0000 (09:51 +0000)
commit3606e0b2e462164bced151dbb54ccfe42ac6c35b
treef39fd77cc42e223e3f45c2f1c612dd4387e3131b
parent4d4f52052ba8357f1591cb9bc3086541070711af
KVM: arm64: nv: Add non-VHE-EL2->EL1 translation helpers

Some EL2 system registers immediately affect the current execution
of the system, so we need to use their respective EL1 counterparts.
For this we need to define a mapping between the two. In general,
this only affects non-VHE guest hypervisors, as VHE system registers
are compatible with the EL1 counterparts.

These helpers will get used in subsequent patches.

Reviewed-by: Oliver Upton <oliver.upton@linux.dev>
Co-developed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_nested.h