lkml.org 
[lkml]   [2019]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] KVM: x86: Add a WARN on TIF_NEED_FPU_LOAD in kvm_load_guest_fpu()
From
Date
On 09/12/19 21:05, Sean Christopherson wrote:
> + /*
> + * 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_arch_sched_in()) between vcpu_load() and now.

via kvm_sched_in (not the arch_ function). Applied with that change.

Paolo

> + */
> + WARN_ON_ONCE(test_thread_flag(TIF_NEED_FPU_LOAD));
> +

\
 
 \ /
  Last update: 2019-12-10 11:29    [W:0.022 / U:0.928 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site