]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
LoongArch: KVM: Move LASX capability check in exception handler
authorBibo Mao <maobibo@loongson.cn>
Fri, 6 Feb 2026 01:27:47 +0000 (09:27 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 6 Feb 2026 01:27:47 +0000 (09:27 +0800)
commit37da26e0e8396def86ff4ca70ece0a5f5619dbd4
tree0cdfce962a38f7922c808b4c554397f29ff76d01
parent89b5dc53971328934fcb6a68bf75e4b76fc59ef0
LoongArch: KVM: Move LASX capability check in exception handler

Like FPU exception handler, check LASX capability in the LASX exception
handler rather than function kvm_own_lasx(). Since LASX capability in
the function kvm_guest_has_lasx() implies FPU and LSX capability, only
checking kvm_guest_has_lasx() is OK here.

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
arch/loongarch/kvm/exit.c
arch/loongarch/kvm/vcpu.c