FPU is lazy enabled in KVM hypervisor. After FPU is enabled and loaded,
vCPU can be preempted and FPU will be lost again. Here FPU is delay load
until guest enter entry.
Bibo Mao (3):
LoongArch: KVM: Move LSX capability check in LSX exception handler
LoongArch: KVM: Move LASX capability check in LASX exception handler
LoongArch: KVM: Add FPU delay load support
arch/loongarch/include/asm/kvm_host.h | 3 +++
arch/loongarch/kvm/exit.c | 10 ++++++---
arch/loongarch/kvm/vcpu.c | 30 ++++++++-------------------
3 files changed, 19 insertions(+), 24 deletions(-)
base-commit: 24d479d26b25bce5faea3ddd9fa8f3a6c3129ea7
--
2.39.3