]> git.ipfire.org Git - thirdparty/linux.git/commit
LoongArch: KVM: Add FPU/LBT delay load support
authorBibo Mao <maobibo@loongson.cn>
Fri, 6 Feb 2026 01:28:00 +0000 (09:28 +0800)
committerHuacai Chen <chenhuacai@loongson.cn>
Fri, 6 Feb 2026 01:28:00 +0000 (09:28 +0800)
commit382c38c9ec94fe87ffd6c9b456fa8ce67943cf1b
treebbc58cef1db37fbd3d8dcbdf8b6e828285e5f067
parentb1388a9598fbe77b193cbb8368eed46e982212c5
LoongArch: KVM: Add FPU/LBT delay load support

FPU/LBT are lazy enabled with KVM hypervisor. After FPU/LBT enabled and
loaded, vCPU can be preempted and FPU/LBT will be lost again, there will
be unnecessary FPU/LBT exceptions, load and store stuff. Here delay the
FPU/LBT load until the guest entry.

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