From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xenproject.org>, Keir Fraser <keir@xen.org>
Subject: Re: [PATCH] x86/PV: hide features dependent on XSAVE when booted with "no-xsave"
Date: Mon, 30 Nov 2015 15:38:21 +0000 [thread overview]
Message-ID: <565C6D6D.4000406@citrix.com> (raw)
In-Reply-To: <565C77C002000078000BA518@prv-mh.provo.novell.com>
On 30/11/15 15:22, Jan Beulich wrote:
>>>> On 30.11.15 at 14:36, <andrew.cooper3@citrix.com> wrote:
>> On 30/11/15 11:30, Jan Beulich wrote:
>>> It's not well defined whether YMM register presence
>>> correlates to AVX, or is simply flagged by the respective XSTATE
>>> CPUID bit (or a mixture of both).
>> It is indeed not well defined, which is what makes this area of
>> functionality so hard to level safely.
>>
>>> The minimal (and imo more natural) dependency is just the XSTATE bit.
>> But it is wrong.
>>
>> Any VEX encoded SIMD operation unconditionally works on YMM state. In
>> the case that XMM registers are encoded with a VEX prefix, the upper 128
>> bits of the YMM register are zeroed (SDM Vol 2, 2.3.10). This is
>> contrary to legacy SSE instructions which preserve the upper 128 bits.
>>
>> Therefore, FMA, FMA4 and XOP do have a strict dependency on AVX.
> No, if you really want to express it that way, you'll need feature
> flags derived from the XSTATE bits.
What? That is absurd.
They depend on AVX. I am not introducing a synthetic feature when the
real feature bits are correct.
~Andrew
next prev parent reply other threads:[~2015-11-30 15:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-27 11:05 [PATCH] x86/PV: hide features dependent on XSAVE when booted with "no-xsave" Jan Beulich
2015-11-27 15:05 ` Andrew Cooper
2015-11-30 10:01 ` Jan Beulich
2015-11-30 10:46 ` Andrew Cooper
2015-11-30 11:08 ` Jan Beulich
2015-11-30 11:10 ` Andrew Cooper
2015-11-30 11:30 ` Jan Beulich
2015-11-30 13:36 ` Andrew Cooper
2015-11-30 15:22 ` Jan Beulich
2015-11-30 15:38 ` Andrew Cooper [this message]
2015-11-30 16:00 ` Jan Beulich
2015-11-30 18:01 ` Andrew Cooper
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=565C6D6D.4000406@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--cc=xen-devel@lists.xenproject.org \
/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.