KVM: arm64: Add offset for hyp VA <-> PA conversion
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:13 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 10:08:34 +0000 (10:08 +0000)
commitd084ecc5c72811e7231838f7c128bfcc7f8d2889
tree30e74b89467e8cabcc35003e7f73295f679206b4
parenteeeee7193df015074c8302381356e8e617a5e2b0
KVM: arm64: Add offset for hyp VA <-> PA conversion

Add a host-initialized constant to KVM nVHE hyp code for converting
between EL2 linear map virtual addresses and physical addresses.
Also add `__hyp_pa` macro that performs the conversion.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201202184122.26046-18-dbrazdil@google.com
arch/arm64/kvm/hyp/nvhe/psci-relay.c
arch/arm64/kvm/va_layout.c