All of lore.kernel.org
 help / color / mirror / Atom feed
From: Weidong Han <weidong.han@intel.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>
Cc: Tim Deegan <Tim.Deegan@eu.citrix.com>,
	Xen-devel <xen-devel@lists.xensource.com>,
	Jan Beulich <JBeulich@novell.com>
Subject: Re: [PATCH 0/3 v2] XSAVE/XRSTOR fixes and enhancements
Date: Wed, 01 Sep 2010 16:26:50 +0800	[thread overview]
Message-ID: <4C7E0E4A.9040104@intel.com> (raw)
In-Reply-To: <C8A3C8D6.219F6%keir.fraser@eu.citrix.com>

Keir Fraser wrote:
> On 01/09/2010 08:56, "Weidong Han" <weidong.han@intel.com> wrote:
>
>   
>>> Well that's how it was explained to me at the time. Was that in fact wrong
>>> and we are already broken for save/restore for some subtle unexplained
>>> reason?
>>>   
>>>       
>> When XSAVE is enabled, it saves states to xsave_area in struct hvm_vcpu.
>> But hvm_save_cpu_ctxt and hvm_load_cpu_ctxt don't save/restore FPU/SSE
>> from xsave_area. So FPU/SSE states are incorrect after guest save/restore.
>>     
>
> Ignoring AVX, that needs fixing in 4.0 branch. The state needs pulling out
> of the xsave area and into the existing hvm_hw_cpu structure. Or, we disable
> xsave by default on 4.0.x branch. What do you think?
>
>   
I prefer to disable it by default on 4.0 branch now. After finish guest save/restore with XSAVE/XRSTOR in xen-unstable, we can port code to 4.0 branch and enable it again. 

Regards,
Weidong

  reply	other threads:[~2010-09-01  8:26 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-31 14:52 [PATCH 0/3 v2] XSAVE/XRSTOR fixes and enhancements Han, Weidong
2010-08-31 14:56 ` Tim Deegan
2010-09-01  1:17   ` Weidong Han
2010-08-31 14:57 ` Keir Fraser
2010-09-01  1:53   ` Weidong Han
2010-09-01  7:26     ` Keir Fraser
2010-09-01  7:39       ` Keir Fraser
2010-09-01  7:56         ` Weidong Han
2010-09-01  8:09           ` Keir Fraser
2010-09-01  8:26             ` Weidong Han [this message]
2010-09-01  7:45       ` Weidong Han

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=4C7E0E4A.9040104@intel.com \
    --to=weidong.han@intel.com \
    --cc=JBeulich@novell.com \
    --cc=Tim.Deegan@eu.citrix.com \
    --cc=keir.fraser@eu.citrix.com \
    --cc=xen-devel@lists.xensource.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.