]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit699e8c7dc340f82844c9c803460498785021fe4b
tree30e74b89467e8cabcc35003e7f73295f679206b4
parent268e5ea47b295358937d6d3036dd6254a79c2cab
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