[lkml]   [2021]   [Oct]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [patch 13/31] x86/fpu: Move KVMs FPU swapping to FPU core
On 14/10/21 13:30, Liu, Jing2 wrote:
> I guess we're worrying about is when KVM is sched_out, a nonzero XFD_ERR
> can be lost by other host thread. We can save guest XFD_ERR in sched_out
> and restore before next vmenter. Kernel is assumed not using AMX thus
> softirq won't make it lost.
> I think this solves the problem. So we can directly passthrough RW of it,
> and no need to rdmsr(XFD_ERR) in vmexit.

Correct; you can also use the "user-return MSRs" machinery (until Linux
starts using AMX in the kernel, but that shouldn't happen too soon).


 \ /
  Last update: 2021-10-14 13:41    [W:0.133 / U:10.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site