From: Jeremy Fitzhardinge <jeremy@goop.org>
To: Haitao Shan <maillists.shan@gmail.com>
Cc: xen-devel@lists.xensource.com, "Han,
Weidong" <weidong.han@intel.com>,
Keir Fraser <keir.fraser@eu.citrix.com>
Subject: Re: [Patch 2/4] Refining Xsave/Xrestore support
Date: Thu, 28 Oct 2010 18:11:40 -0700 [thread overview]
Message-ID: <4CCA1F4C.8010704@goop.org> (raw)
In-Reply-To: <AANLkTin7Ei3-Jiq9dzExXih1KPNUNT=ymQaZE9hENbmD@mail.gmail.com>
On 10/28/2010 05:57 PM, Haitao Shan wrote:
> Then what about the approach that Jan uses in 2.6.27 tree, which is
> reading CPUID-OSXSAVE? If supported, Xen will always set CR4.OSXSAVE.
Sure, if CR4.OSXSAVE is set iff xsave is available, then it should work
fine if we test that.
J
> Shan Haitao
>
> 2010/10/29 Jeremy Fitzhardinge <jeremy@goop.org>:
>> On 10/27/2010 07:57 PM, Haitao Shan wrote:
>>> Hi, Jeremy,
>>>
>>> My approach is based an old PV-OPS kernel source. Kernel tries to set
>>> CR4.OSXSAVE and read it back to determine whether Xsave is actually
>>> available.
>>> Could you still use that?
>> No, because some older versions of Xen kill the domain when they try to
>> set unknown bits in CR4.
>>
>> J
>>
>>> Shan Haitao
>>>
>>> 2010/10/28 Jeremy Fitzhardinge <jeremy@goop.org>:
>>>> On 10/27/2010 12:04 AM, Haitao Shan wrote:
>>>>> Hi, Keir,
>>>>>
>>>>> This is patch #2, which adds PV guest Xsave support.
>>>> How does a PV guest know whether Xsave support is available? Previous
>>>> versions of Xen left the xsave cpu feature flag set even though xsave
>>>> wasn't usable by the domain, so I had to forceably mask it from the
>>>> cpuid features within the domain. Given that a PV domain can't rely on
>>>> X86_FEATURE_XSAVE, how can it tell that the feature is actually usable?
>>>>
>>>> Thanks,
>>>> J
>>>>
>>
prev parent reply other threads:[~2010-10-29 1:11 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 7:04 [Patch 2/4] Refining Xsave/Xrestore support Haitao Shan
2010-10-27 10:28 ` Jan Beulich
2010-10-28 2:31 ` Haitao Shan
2010-10-28 4:58 ` Haitao Shan
2010-10-28 7:15 ` Jan Beulich
2010-10-28 7:52 ` Haitao Shan
2010-10-28 8:29 ` Jan Beulich
2010-10-28 8:52 ` Haitao Shan
2010-10-28 10:30 ` Keir Fraser
2010-10-28 11:28 ` Haitao Shan
2010-10-27 17:12 ` Jeremy Fitzhardinge
2010-10-28 2:57 ` Haitao Shan
2010-10-28 7:32 ` Jan Beulich
2010-10-28 7:55 ` Haitao Shan
2010-10-28 8:14 ` Jan Beulich
2010-10-28 8:33 ` Haitao Shan
2010-10-28 8:42 ` Jan Beulich
2010-10-28 16:18 ` Jeremy Fitzhardinge
2010-10-29 0:57 ` Haitao Shan
2010-10-29 1:11 ` Jeremy Fitzhardinge [this message]
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=4CCA1F4C.8010704@goop.org \
--to=jeremy@goop.org \
--cc=keir.fraser@eu.citrix.com \
--cc=maillists.shan@gmail.com \
--cc=weidong.han@intel.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.