]> git.itanic.dy.fi Git - linux-stable/commit
KVM: arm64: Link position-independent string routines into .hyp.text
authorWill Deacon <will@kernel.org>
Fri, 19 Mar 2021 10:01:10 +0000 (10:01 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 May 2023 11:57:55 +0000 (12:57 +0100)
commit18fbf8cfbb9dcfde8504d23c309ed22bbf616cdf
tree0ae072253a3a24fd104b145c6d6733a667dd2e3e
parente266da1656d6d83f41c1880b970f0e4887358f9d
KVM: arm64: Link position-independent string routines into .hyp.text

commit 7b4a7b5e6fefd15f708f959dd43e188444e252ec upstream

Pull clear_page(), copy_page(), memcpy() and memset() into the nVHE hyp
code and ensure that we always execute the '__pi_' entry point on the
offchance that it changes in future.

[ qperret: Commit title nits and added linker script alias ]

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210319100146.1149909-3-qperret@google.com
[sudip: adjust context]
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm64/include/asm/hyp_image.h
arch/arm64/kernel/image-vars.h
arch/arm64/kvm/hyp/nvhe/Makefile