summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/sections.h
diff options
context:
space:
mode:
authorQuentin Perret <qperret@google.com>2021-03-19 13:01:15 +0300
committerMarc Zyngier <maz@kernel.org>2021-03-19 15:01:20 +0300
commit380e18ade4a51334e8806160e6f0fdfaca0b4428 (patch)
treefe82cfb30031b7030df54e9fc6360d14fcb32587 /arch/arm64/include/asm/sections.h
parent7aef0cbcdcd0995efde9957b3eda9f31a219613d (diff)
downloadlinux-380e18ade4a51334e8806160e6f0fdfaca0b4428.tar.xz
KVM: arm64: Introduce a BSS section for use at Hyp
Currently, the hyp code cannot make full use of a bss, as the kernel section is mapped read-only. While this mapping could simply be changed to read-write, it would intermingle even more the hyp and kernel state than they currently are. Instead, introduce a __hyp_bss section, that uses reserved pages, and create the appropriate RW hyp mappings during KVM init. Acked-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-8-qperret@google.com
Diffstat (limited to 'arch/arm64/include/asm/sections.h')
-rw-r--r--arch/arm64/include/asm/sections.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/arm64/include/asm/sections.h b/arch/arm64/include/asm/sections.h
index 2f36b16a5b5d..e4ad9db53af1 100644
--- a/arch/arm64/include/asm/sections.h
+++ b/arch/arm64/include/asm/sections.h
@@ -13,6 +13,7 @@ extern char __hyp_idmap_text_start[], __hyp_idmap_text_end[];
extern char __hyp_text_start[], __hyp_text_end[];
extern char __hyp_rodata_start[], __hyp_rodata_end[];
extern char __hyp_reloc_begin[], __hyp_reloc_end[];
+extern char __hyp_bss_start[], __hyp_bss_end[];
extern char __idmap_text_start[], __idmap_text_end[];
extern char __initdata_begin[], __initdata_end[];
extern char __inittext_begin[], __inittext_end[];