diff options
author | Tianrui Zhao <zhaotianrui@loongson.cn> | 2023-12-19 05:48:28 +0300 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2023-12-19 05:48:28 +0300 |
commit | 118e10cd893d57df55b3302dfd188a981b6e6d1c (patch) | |
tree | 43f25b27af229cc68bdc42dc3d874a0b8e4e510f /arch/loongarch/kernel | |
parent | db1ecca22edf27c5a3dd66af406c88b5b5ac7cc1 (diff) | |
download | linux-118e10cd893d57df55b3302dfd188a981b6e6d1c.tar.xz |
LoongArch: KVM: Add LASX (256bit SIMD) support
This patch adds LASX (256bit SIMD) support for LoongArch KVM.
There will be LASX exception in KVM when guest use the LASX instructions.
KVM will enable LASX and restore the vector registers for guest and then
return to guest to continue running.
Reviewed-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Tianrui Zhao <zhaotianrui@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to 'arch/loongarch/kernel')
-rw-r--r-- | arch/loongarch/kernel/fpu.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/kernel/fpu.S b/arch/loongarch/kernel/fpu.S index a400924c0348..4382e36ae3d4 100644 --- a/arch/loongarch/kernel/fpu.S +++ b/arch/loongarch/kernel/fpu.S @@ -385,6 +385,7 @@ SYM_FUNC_START(_restore_lasx_upper) lasx_restore_all_upper a0 t0 t1 jr ra SYM_FUNC_END(_restore_lasx_upper) +EXPORT_SYMBOL(_restore_lasx_upper) SYM_FUNC_START(_init_lasx_upper) lasx_init_all_upper t1 |