Re: KVM causes #GP on XRSTORS

2014-11-25 Thread Eduardo Habkost
On Fri, Nov 21, 2014 at 03:46:55PM +0100, Paolo Bonzini wrote: > > > On 20/11/2014 17:34, Nadav Amit wrote: > > Fenghua, > > > > I got KVM (v3.17) crashing on a machine that supports XRSTORS - It appears > > to get a #GP when it is trying to load the guest FPU. > > One reason for the #GP is tha

Re: KVM causes #GP on XRSTORS

2014-11-23 Thread Wanpeng Li
Hi Paolo, On Fri, Nov 21, 2014 at 03:46:55PM +0100, Paolo Bonzini wrote: > > >On 20/11/2014 17:34, Nadav Amit wrote: >> Fenghua, >> >> I got KVM (v3.17) crashing on a machine that supports XRSTORS - It appears >> to get a #GP when it is trying to load the guest FPU. >> One reason for the #GP is t

Re: KVM causes #GP on XRSTORS

2014-11-21 Thread Paolo Bonzini
On 21/11/2014 15:46, Paolo Bonzini wrote: > Fenghua, which processors have XSAVEC, which have XGETBV with ECX=1, and > which have XSAVES? We need to expose this in QEMU, for which I can send > a patch later today or next week (CCing Eduardo for this). Actually no change in QEMU is needed to hid

Re: KVM causes #GP on XRSTORS

2014-11-21 Thread Paolo Bonzini
On 20/11/2014 17:34, Nadav Amit wrote: > Fenghua, > > I got KVM (v3.17) crashing on a machine that supports XRSTORS - It appears to > get a #GP when it is trying to load the guest FPU. > One reason for the #GP is that XCOMP_BV[63] is zeroed on the guest_fpu, but I > am not sure it is the only

Re: KVM causes #GP on XRSTORS

2014-11-20 Thread Nadav Amit
> On Nov 21, 2014, at 02:10, Wanpeng Li wrote: > > Hi Nadav, > On Thu, Nov 20, 2014 at 06:34:04PM +0200, Nadav Amit wrote: >> Fenghua, >> >> I got KVM (v3.17) crashing on a machine that supports XRSTORS - It appears >> to get a #GP when it is trying to load the guest FPU. >> One reason for the

Re: KVM causes #GP on XRSTORS

2014-11-20 Thread Wanpeng Li
Hi Nadav, On Thu, Nov 20, 2014 at 06:34:04PM +0200, Nadav Amit wrote: >Fenghua, > >I got KVM (v3.17) crashing on a machine that supports XRSTORS - It appears to >get a #GP when it is trying to load the guest FPU. >One reason for the #GP is that XCOMP_BV[63] is zeroed on the guest_fpu, but I >am n

RE: KVM causes #GP on XRSTORS

2014-11-20 Thread Yu, Fenghua
> From: Nadav Amit [mailto:nadav.a...@gmail.com] > Sent: Thursday, November 20, 2014 8:34 AM > To: Paolo Bonzini; Yu, Fenghua > Cc: kvm list > Subject: KVM causes #GP on XRSTORS > > Fenghua, > > I got KVM (v3.17) crashing on a machine that supports XRSTORS - It appears > to get a #GP when it is t