]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Avoid unnecessary absolute addressing via literals
authorArd Biesheuvel <ardb@kernel.org>
Thu, 28 Apr 2022 14:03:50 +0000 (16:03 +0200)
committerMarc Zyngier <maz@kernel.org>
Fri, 6 May 2022 10:03:56 +0000 (11:03 +0100)
commitcd0a65f6c2f7970c54491abcfa43d2b429f48414
tree1740965126509314123ee2d27a618b8e16293119
parent0567cae5d9f29f81d6c9b2c26860a75324adea0d
KVM: arm64: Avoid unnecessary absolute addressing via literals

There are a few cases in the nVHE code where we take the absolute
address of a symbol via a literal pool entry, and subsequently translate
it to another address space (PA, kimg VA, kernel linear VA, etc).
Originally, this literal was needed because we relied on a different
translation for absolute references, but this is no longer the case, so
we can simply use relative addressing instead. This removes a couple of
RELA entries pointing into the .text segment.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220428140350.3303481-1-ardb@kernel.org
arch/arm64/kvm/hyp/nvhe/host.S