Thread (19 messages) 19 messages, 2 authors, 2020-05-18

Re: [PATCH v2 04/14] arm64: kvm: Add build rules for separate nVHE object files

From: Andrew Scull <hidden>
Date: 2020-05-18 15:56:01
Also in: kvmarm, lkml

On Fri, May 15, 2020 at 11:58:31AM +0100, David Brazdil wrote:
quoted hunk ↗ jump to hunk
diff --git a/arch/arm64/kernel/image-vars.h b/arch/arm64/kernel/image-vars.h
index 7f06ad93fc95..13850134fc28 100644
--- a/arch/arm64/kernel/image-vars.h
+++ b/arch/arm64/kernel/image-vars.h
@@ -51,4 +51,16 @@ __efistub__ctype		= _ctype;
 
 #endif
 
+#ifdef CONFIG_KVM
+
+/*
+ * KVM nVHE code has its own symbol namespace prefixed by __hyp_text_, to
+ * isolate it from the kernel proper. The following symbols are legally
+ * accessed by it, therefore provide aliases to make them linkable.
+ * Do not include symbols which may not be safely accessed under hypervisor
+ * memory mappings.
+ */
nit: the prefix is not '__kvm_nvhe_' rather than '__hyp_text_'

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help