@@ -3264,6 +3264,12 @@
kvm_x86_ops->vcpu_load(vcpu, cpu);
+
+ // fix floating point error kvm guest
+ if (test_thread_flag(TIF_NEED_FPU_LOAD))
+ switch_fpu_return();
+
+
/* Apply any externally detected TSC adjustments (due to suspend) */
if (unlikely(vcpu->arch.tsc_offset_adjustment)) {
adjust_tsc_offset_host(vcpu, vcpu->arch.tsc_offset_adjustment);
@@ -7955,9 +7961,11 @@
wait_lapic_expire(vcpu);
guest_enter_irqoff();
- fpregs_assert_state_consistent();
- if (test_thread_flag(TIF_NEED_FPU_LOAD))
- switch_fpu_return();
+// fix floating point error kvm guest
+//
+// fpregs_assert_state_consistent();
+// if (test_thread_flag(TIF_NEED_FPU_LOAD))
+// switch_fpu_return();
if (unlikely(vcpu->arch.switch_db_regs)) {
set_debugreg(0, 7);