hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm64/kvm/hyp/fpsimd.S
....@@ -1,18 +1,7 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * Copyright (C) 2015 - ARM Ltd
34 * Author: Marc Zyngier <marc.zyngier@arm.com>
4
- *
5
- * This program is free software; you can redistribute it and/or modify
6
- * it under the terms of the GNU General Public License version 2 as
7
- * published by the Free Software Foundation.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License
15
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
165 */
176
187 #include <linux/linkage.h>
....@@ -20,14 +9,23 @@
209 #include <asm/fpsimdmacros.h>
2110
2211 .text
23
- .pushsection .hyp.text, "ax"
2412
25
-ENTRY(__fpsimd_save_state)
13
+SYM_FUNC_START(__fpsimd_save_state)
2614 fpsimd_save x0, 1
2715 ret
28
-ENDPROC(__fpsimd_save_state)
16
+SYM_FUNC_END(__fpsimd_save_state)
2917
30
-ENTRY(__fpsimd_restore_state)
18
+SYM_FUNC_START(__fpsimd_restore_state)
3119 fpsimd_restore x0, 1
3220 ret
33
-ENDPROC(__fpsimd_restore_state)
21
+SYM_FUNC_END(__fpsimd_restore_state)
22
+
23
+SYM_FUNC_START(__sve_restore_state)
24
+ __sve_load 0, x1, 2
25
+ ret
26
+SYM_FUNC_END(__sve_restore_state)
27
+
28
+SYM_FUNC_START(__sve_save_state)
29
+ sve_save 0, x1, 2
30
+ ret
31
+SYM_FUNC_END(__sve_save_state)