summaryrefslogtreecommitdiffstats
path: root/patches/jailhouse/0001-export__hyp_stub_vectors.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/jailhouse/0001-export__hyp_stub_vectors.patch')
-rw-r--r--patches/jailhouse/0001-export__hyp_stub_vectors.patch57
1 files changed, 0 insertions, 57 deletions
diff --git a/patches/jailhouse/0001-export__hyp_stub_vectors.patch b/patches/jailhouse/0001-export__hyp_stub_vectors.patch
deleted file mode 100644
index b58b522..0000000
--- a/patches/jailhouse/0001-export__hyp_stub_vectors.patch
+++ /dev/null
@@ -1,57 +0,0 @@
1From 90165e12a59df7e26bfb4cedd76a1def45cee5a9 Mon Sep 17 00:00:00 2001
2From: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
3Date: Wed, 7 Jun 2017 15:48:43 +0200
4Subject: [PATCH] arm, arm64: export __hyp_stub_vectors
5
6HVC_GET_VECTORS got removed. External hypervisors, like Jailhouse, need
7this address when they are deactivated, in order to restore original
8state.
9
10Signed-off-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de>
11Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
12---
13 arch/arm/kernel/hyp-stub.S | 2 ++
14 arch/arm64/kernel/hyp-stub.S | 2 ++
15 2 files changed, 4 insertions(+)
16
17diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S
18index 60146e3..d34efc5 100644
19--- a/arch/arm/kernel/hyp-stub.S
20+++ b/arch/arm/kernel/hyp-stub.S
21@@ -19,6 +19,7 @@
22 #include <linux/init.h>
23 #include <linux/irqchip/arm-gic-v3.h>
24 #include <linux/linkage.h>
25+#include <asm-generic/export.h>
26 #include <asm/assembler.h>
27 #include <asm/virt.h>
28
29@@ -282,4 +283,5 @@ __hyp_stub_trap: W(b) __hyp_stub_do_trap
30 __hyp_stub_irq: W(b) .
31 __hyp_stub_fiq: W(b) .
32 ENDPROC(__hyp_stub_vectors)
33+EXPORT_SYMBOL_GPL(__hyp_stub_vectors)
34
35diff --git a/arch/arm64/kernel/hyp-stub.S b/arch/arm64/kernel/hyp-stub.S
36index e1261fb..061b32e 100644
37--- a/arch/arm64/kernel/hyp-stub.S
38+++ b/arch/arm64/kernel/hyp-stub.S
39@@ -21,6 +21,7 @@
40 #include <linux/linkage.h>
41 #include <linux/irqchip/arm-gic-v3.h>
42
43+#include <asm-generic/export.h>
44 #include <asm/assembler.h>
45 #include <asm/kvm_arm.h>
46 #include <asm/kvm_asm.h>
47@@ -51,6 +52,7 @@ ENTRY(__hyp_stub_vectors)
48 ventry el1_fiq_invalid // FIQ 32-bit EL1
49 ventry el1_error_invalid // Error 32-bit EL1
50 ENDPROC(__hyp_stub_vectors)
51+EXPORT_SYMBOL_GPL(__hyp_stub_vectors)
52
53 .align 11
54
55--
562.1.4
57