]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Add .hyp.data..ro_after_init ELF section
authorDavid Brazdil <dbrazdil@google.com>
Wed, 2 Dec 2020 18:41:08 +0000 (18:41 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 4 Dec 2020 10:08:33 +0000 (10:08 +0000)
commit0488a889db2db7f813c7ef82eb186e4966d1f306
treebc3a4579e07a6737c4a7114dacd8114cfcc7648b
parent8eb91947b3c39e3207ba71054086b15748f7d6e9
KVM: arm64: Add .hyp.data..ro_after_init ELF section

Add rules for renaming the .data..ro_after_init ELF section in KVM nVHE
object files to .hyp.data..ro_after_init, linking it into the kernel
and mapping it in hyp at runtime.

The section is RW to the host, then mapped RO in hyp. The expectation is
that the host populates the variables in the section and they are never
changed by hyp afterwards.

Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201202184122.26046-13-dbrazdil@google.com
arch/arm64/include/asm/sections.h
arch/arm64/kernel/vmlinux.lds.S
arch/arm64/kvm/arm.c
arch/arm64/kvm/hyp/nvhe/hyp.lds.S