: Export individual Xen hypercalls
Subsystems (2)
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).
Signed-off-by Ruslan Nikolaev <[email protected]>
--- xen-head.S | 2 ++ 1 file changed, 2 insertions(+)
arch/x86/xen/xen-head.S +2 -0
@@ -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>