All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wanpeng Li <wanpeng.li@linux.intel.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: Nadav Amit <nadav.amit@gmail.com>,
	fenghua.yu@intel.com, kvm list <kvm@vger.kernel.org>,
	Eduardo Habkost <ehabkost@redhat.com>,
	linux-kernel@vger.kernel.org
Subject: Re: KVM causes #GP on XRSTORS
Date: Mon, 24 Nov 2014 10:05:53 +0800	[thread overview]
Message-ID: <20141124020553.GA27849@kernel> (raw)
In-Reply-To: <546F505F.9080309@redhat.com>

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

  parent reply	other threads:[~2014-11-24  2:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-20 16:34 KVM causes #GP on XRSTORS Nadav Amit
2014-11-20 22:18 ` Yu, Fenghua
2014-11-21  0:10 ` Wanpeng Li
2014-11-21  1:09   ` Nadav Amit
2014-11-21 14:46 ` Paolo Bonzini
2014-11-21 18:34   ` Paolo Bonzini
2014-11-24  2:05   ` Wanpeng Li [this message]
2014-11-25 18:41   ` Eduardo Habkost

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20141124020553.GA27849@kernel \
    --to=wanpeng.li@linux.intel.com \
    --cc=ehabkost@redhat.com \
    --cc=fenghua.yu@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=nadav.amit@gmail.com \
    --cc=pbonzini@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.