* Re: KVM causes #GP on XRSTORS [not found] <AA52FB0B-FB19-4DC0-964B-2984040B15A6@gmail.com> @ 2014-11-21 0:10 ` Wanpeng Li 2014-11-21 1:09 ` Nadav Amit [not found] ` <546F505F.9080309@redhat.com> 1 sibling, 1 reply; 3+ messages in thread From: Wanpeng Li @ 2014-11-21 0:10 UTC (permalink / raw) To: Nadav Amit; +Cc: Paolo Bonzini, fenghua.yu, kvm list, linux-kernel 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 not sure it is the only problem. >Was KVM ever tested with XRSTORS? Current kvm and qemu use standard format and xsaves/xrstors should use compact format, in addition, vmx is still not enabled for xsaves/xrstors in kvm. Regards, Wanpeng Li > >Thanks, >Nadav > >-- >To unsubscribe from this list: send the line "unsubscribe kvm" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: KVM causes #GP on XRSTORS 2014-11-21 0:10 ` KVM causes #GP on XRSTORS Wanpeng Li @ 2014-11-21 1:09 ` Nadav Amit 0 siblings, 0 replies; 3+ messages in thread From: Nadav Amit @ 2014-11-21 1:09 UTC (permalink / raw) To: Wanpeng Li; +Cc: Paolo Bonzini, fenghua.yu, kvm list, linux-kernel > On Nov 21, 2014, at 02:10, Wanpeng Li <wanpeng.li@linux.intel.com> 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 #GP is that XCOMP_BV[63] is zeroed on the guest_fpu, but I am not sure it is the only problem. >> Was KVM ever tested with XRSTORS? > > Current kvm and qemu use standard format and xsaves/xrstors should use > compact format, in addition, vmx is still not enabled for xsaves/xrstors > in kvm. Sorry, but I don’t quite understand. Should KVM work on a machine that supports xsaves/xrstors? I am not referring to whether KVM exposes the capability to the guest, but to whether KVM should work at all. Thanks, Nadav ^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <546F505F.9080309@redhat.com>]
* Re: KVM causes #GP on XRSTORS [not found] ` <546F505F.9080309@redhat.com> @ 2014-11-24 2:05 ` Wanpeng Li 0 siblings, 0 replies; 3+ messages in thread From: Wanpeng Li @ 2014-11-24 2:05 UTC (permalink / raw) To: Paolo Bonzini Cc: Nadav Amit, fenghua.yu, kvm list, Eduardo Habkost, linux-kernel 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 that XCOMP_BV[63] is zeroed on the guest_fpu, but I am not sure it is the only problem. >> Was KVM ever tested with XRSTORS? > >What is the content of the CPUID[EAX=13,ECX=0] and CPUID[EAX=13,ECX=1] >leaves on the host? > >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 Skylake-client supports XSAVES. >a patch later today or next week (CCing Eduardo for this). Actually I do the xsaves work in kvm/qemu recently and the patches are complete, I will start to test it before send out. Regards, Wanpeng Li > >We will also have to uncompact the XSAVE area either in KVM_GET_XSAVE or >in QEMU. It's probably not hard to do it in the kernel. > >Paolo >-- >To unsubscribe from this list: send the line "unsubscribe kvm" in >the body of a message to majordomo@vger.kernel.org >More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-11-24 2:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <AA52FB0B-FB19-4DC0-964B-2984040B15A6@gmail.com>
2014-11-21 0:10 ` KVM causes #GP on XRSTORS Wanpeng Li
2014-11-21 1:09 ` Nadav Amit
[not found] ` <546F505F.9080309@redhat.com>
2014-11-24 2:05 ` Wanpeng Li
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox