diff options
author | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-04-17 17:41:51 +0200 |
---|---|---|
committer | Adrian Mangeac <Adrian.Mangeac@enea.com> | 2019-04-17 17:52:58 +0200 |
commit | bbd51f4b06ed088704e883b3153644af9b336e69 (patch) | |
tree | 04cc4442aa25e51d7761824aeebb92aeee1ba712 /patches/jailhouse/0001-export__hyp_stub_vectors.patch | |
parent | ef8404b9e5215e5fdfdc2fdb8600cd35c58802e1 (diff) | |
download | enea-kernel-cache-bbd51f4b06ed088704e883b3153644af9b336e69.tar.gz |
Add jailhouse related patches
Change-Id: I7f7f4a17dddc512dd8c3d50e0606f2618ee7e23e
Signed-off-by: Adrian Mangeac <Adrian.Mangeac@enea.com>
Diffstat (limited to 'patches/jailhouse/0001-export__hyp_stub_vectors.patch')
-rw-r--r-- | patches/jailhouse/0001-export__hyp_stub_vectors.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/patches/jailhouse/0001-export__hyp_stub_vectors.patch b/patches/jailhouse/0001-export__hyp_stub_vectors.patch new file mode 100644 index 0000000..b58b522 --- /dev/null +++ b/patches/jailhouse/0001-export__hyp_stub_vectors.patch | |||
@@ -0,0 +1,57 @@ | |||
1 | From 90165e12a59df7e26bfb4cedd76a1def45cee5a9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de> | ||
3 | Date: Wed, 7 Jun 2017 15:48:43 +0200 | ||
4 | Subject: [PATCH] arm, arm64: export __hyp_stub_vectors | ||
5 | |||
6 | HVC_GET_VECTORS got removed. External hypervisors, like Jailhouse, need | ||
7 | this address when they are deactivated, in order to restore original | ||
8 | state. | ||
9 | |||
10 | Signed-off-by: Ralf Ramsauer <ralf.ramsauer@oth-regensburg.de> | ||
11 | Signed-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 | |||
17 | diff --git a/arch/arm/kernel/hyp-stub.S b/arch/arm/kernel/hyp-stub.S | ||
18 | index 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 | |||
35 | diff --git a/arch/arm64/kernel/hyp-stub.S b/arch/arm64/kernel/hyp-stub.S | ||
36 | index 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 | -- | ||
56 | 2.1.4 | ||
57 | |||