Re: [5.2 regression] x86/fpu changes cause crashes in KVM guest

2019-07-21 Thread Wanpeng Li
On Fri, 19 Jul 2019 at 19:09, Paolo Bonzini wrote: > > On 19/07/19 10:59, Wanpeng Li wrote: > > https://lkml.org/lkml/2017/11/14/891, "The scheduler will save the > > guest fpu context when a vCPU thread is preempted, and restore it when > > it is scheduled back in." But I can't find any scheduler

Re: [5.2 regression] x86/fpu changes cause crashes in KVM guest

2019-07-19 Thread Paolo Bonzini
On 19/07/19 10:59, Wanpeng Li wrote: > https://lkml.org/lkml/2017/11/14/891, "The scheduler will save the > guest fpu context when a vCPU thread is preempted, and restore it when > it is scheduled back in." But I can't find any scheduler codes do > this. That's because applying commit 240c35a37 wa

Re: [5.2 regression] x86/fpu changes cause crashes in KVM guest

2019-07-19 Thread Wanpeng Li
Cc kvm ml, On Thu, 18 Jul 2019 at 08:08, Thomas Lambertz wrote: > > Since kernel 5.2, I've been experiencing strange issues in my Windows 10 > QEMU/KVM guest. > Via bisection, I have tracked down that the issue lies in the FPU state > handling changes. > Kernels before 8ff468c29e9a9c3afe9152c10c7b

[5.2 regression] x86/fpu changes cause crashes in KVM guest

2019-07-17 Thread Thomas Lambertz
Since kernel 5.2, I've been experiencing strange issues in my Windows 10 QEMU/KVM guest. Via bisection, I have tracked down that the issue lies in the FPU state handling changes. Kernels before 8ff468c29e9a9c3afe9152c10c7b141343270bf3 work great, the ones afterwards are affected. Sometimes the