Skip to contentSkip to conversation

: Export individual Xen hypercalls

PATCH In review Ruslan Nikolaev 1 participant 1 message Jan 15, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/6 : Export individual Xen hypercalls

Export individual Xen hypercalls

The patch is by Hassan Nadeem and Ruslan Nikolaev. This extends the prior PIE kernel patch (by Thomas Garnier) to also support position-independent modules that can be placed anywhere in the 48/64-bit address space (for better KASLR).

---
 xen-head.S |    2 ++
 1 file changed, 2 insertions(+)
arch/x86/xen/xen-head.S +2 -0
diff -uprN a/arch/x86/xen/xen-head.S b/arch/x86/xen/xen-head.S
@@ -13,6 +13,7 @@
 #include <asm/page_types.h>
 #include <asm/percpu.h>
 #include <asm/unwind_hints.h>
+#include <asm/export.h>
 
 #include <xen/interface/elfnote.h>
 #include <xen/interface/features.h>
@@ -66,6 +67,7 @@ ENTRY(hypercall_page)
 	.endr
 
 #define HYPERCALL(n) \
+	EXPORT_SYMBOL_GPL(xen_hypercall_##n); \
 	.equ xen_hypercall_##n, hypercall_page + __HYPERVISOR_##n * 32; \
 	.type xen_hypercall_##n, @function; .size xen_hypercall_##n, 32
 #include <asm/xen-hypercalls.h>