Re: [PATCH] KVM: x86: prevent setting unsupported XSAVE states

2013-09-09 Thread Gleb Natapov
On Mon, Sep 09, 2013 at 04:09:47PM +0200, Paolo Bonzini wrote: > Il 08/09/2013 11:54, Gleb Natapov ha scritto: > > On Thu, Sep 05, 2013 at 02:21:54PM +0200, Paolo Bonzini wrote: > >> A guest can still attempt to save and restore XSAVE states even if they > >> have been masked in CPUID leaf 0Dh. Th

Re: [PATCH] KVM: x86: prevent setting unsupported XSAVE states

2013-09-09 Thread Paolo Bonzini
Il 08/09/2013 11:54, Gleb Natapov ha scritto: > On Thu, Sep 05, 2013 at 02:21:54PM +0200, Paolo Bonzini wrote: >> A guest can still attempt to save and restore XSAVE states even if they >> have been masked in CPUID leaf 0Dh. This usually is not visible to >> the guest, but is still wrong: "Any att

Re: [PATCH] KVM: x86: prevent setting unsupported XSAVE states

2013-09-08 Thread Gleb Natapov
On Thu, Sep 05, 2013 at 02:21:54PM +0200, Paolo Bonzini wrote: > A guest can still attempt to save and restore XSAVE states even if they > have been masked in CPUID leaf 0Dh. This usually is not visible to > the guest, but is still wrong: "Any attempt to set a reserved bit (as > determined by the

[PATCH] KVM: x86: prevent setting unsupported XSAVE states

2013-09-05 Thread Paolo Bonzini
A guest can still attempt to save and restore XSAVE states even if they have been masked in CPUID leaf 0Dh. This usually is not visible to the guest, but is still wrong: "Any attempt to set a reserved bit (as determined by the contents of EAX and EDX after executing CPUID with EAX=0DH, ECX= 0H) in