hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/arch/powerpc/kernel/kvm_emul.S
....@@ -1,16 +1,5 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
2
- * This program is free software; you can redistribute it and/or modify
3
- * it under the terms of the GNU General Public License, version 2, as
4
- * published by the Free Software Foundation.
5
- *
6
- * This program is distributed in the hope that it will be useful,
7
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
8
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9
- * GNU General Public License for more details.
10
- *
11
- * You should have received a copy of the GNU General Public License
12
- * along with this program; if not, write to the Free Software
13
- * Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
143 *
154 * Copyright SUSE Linux Products GmbH 2010
165 * Copyright 2010-2011 Freescale Semiconductor, Inc.
....@@ -203,6 +192,8 @@
203192 kvm_emulate_mtmsr_len:
204193 .long (kvm_emulate_mtmsr_end - kvm_emulate_mtmsr) / 4
205194
195
+#ifdef CONFIG_BOOKE
196
+
206197 /* also used for wrteei 1 */
207198 .global kvm_emulate_wrtee
208199 kvm_emulate_wrtee:
....@@ -296,6 +287,10 @@
296287 kvm_emulate_wrteei_0_len:
297288 .long (kvm_emulate_wrteei_0_end - kvm_emulate_wrteei_0) / 4
298289
290
+#endif /* CONFIG_BOOKE */
291
+
292
+#ifdef CONFIG_PPC_BOOK3S_32
293
+
299294 .global kvm_emulate_mtsrin
300295 kvm_emulate_mtsrin:
301296
....@@ -345,5 +340,15 @@
345340 kvm_emulate_mtsrin_len:
346341 .long (kvm_emulate_mtsrin_end - kvm_emulate_mtsrin) / 4
347342
343
+#endif /* CONFIG_PPC_BOOK3S_32 */
344
+
345
+ .balign 4
346
+ .global kvm_tmp
347
+kvm_tmp:
348
+ .space (64 * 1024)
349
+
350
+.global kvm_tmp_end
351
+kvm_tmp_end:
352
+
348353 .global kvm_template_end
349354 kvm_template_end: