lkml.org 
[lkml]   [2021]   [Dec]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH 15/19] kvm: x86: Save and restore guest XFD_ERR properly
From
On 12/8/21 01:03, Yang Zhong wrote:
> kvm_steal_time_set_preempted(vcpu);
> srcu_read_unlock(&vcpu->kvm->srcu, idx);
>
> + if (vcpu->preempted)
> + fpu_save_guest_xfd_err(&vcpu->arch.guest_fpu);
> +

Instead of checking vcpu->preempted, can you instead check if the active
FPU is the guest FPU? That is, save if
current->thread.fpu->fpstate->is_guest?

Paolo

\
 
 \ /
  Last update: 2021-12-10 17:24    [W:2.001 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site