Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm/arm64: KVM: Export __hyp_text_start/end symbols

Declare the __hyp_text_start/end symbols in asm/virt.h so that
they can be reused without having to declare them locally.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>

authored by

Marc Zyngier and committed by
Christoffer Dall
1df3e234 fd81e6bf

+8 -2
+4
arch/arm/include/asm/virt.h
··· 80 80 return false; 81 81 } 82 82 83 + /* The section containing the hypervisor idmap text */ 84 + extern char __hyp_idmap_text_start[]; 85 + extern char __hyp_idmap_text_end[]; 86 + 83 87 /* The section containing the hypervisor text */ 84 88 extern char __hyp_text_start[]; 85 89 extern char __hyp_text_end[];
-2
arch/arm/kvm/mmu.c
··· 32 32 33 33 #include "trace.h" 34 34 35 - extern char __hyp_idmap_text_start[], __hyp_idmap_text_end[]; 36 - 37 35 static pgd_t *boot_hyp_pgd; 38 36 static pgd_t *hyp_pgd; 39 37 static pgd_t *merged_hyp_pgd;
+4
arch/arm64/include/asm/virt.h
··· 82 82 static inline void verify_cpu_run_el(void) {} 83 83 #endif 84 84 85 + /* The section containing the hypervisor idmap text */ 86 + extern char __hyp_idmap_text_start[]; 87 + extern char __hyp_idmap_text_end[]; 88 + 85 89 /* The section containing the hypervisor text */ 86 90 extern char __hyp_text_start[]; 87 91 extern char __hyp_text_end[];