Commit 3911b65e authored by Paolo Bonzini's avatar Paolo Bonzini

Revert "KVM: x86: Add a WARN on TIF_NEED_FPU_LOAD in kvm_load_guest_fpu()"

This reverts commit 95145c25.
The next few patches will fix the issue so the warning is not
needed anymore; revert it separately to simplify application to
stable kernels.
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 3ce4dc17
......@@ -8563,13 +8563,6 @@ static void kvm_load_guest_fpu(struct kvm_vcpu *vcpu)
{
fpregs_lock();
/*
* Reloading userspace's FPU is handled by kvm_arch_vcpu_load(), both
* for direct calls from userspace (via vcpu_load()) and if this task
* is preempted (via kvm_sched_in()) between vcpu_load() and now.
*/
WARN_ON_ONCE(test_thread_flag(TIF_NEED_FPU_LOAD));
copy_fpregs_to_fpstate(vcpu->arch.user_fpu);
/* PKRU is separately restored in kvm_x86_ops->run. */
__copy_kernel_to_fpregs(&vcpu->arch.guest_fpu->state,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment