From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH 2/2] x86/cpu: Move set_cpumask() calls into c_early_init()
Date: Fri, 27 Nov 2015 10:57:20 +0000 [thread overview]
Message-ID: <56583710.5040708@citrix.com> (raw)
In-Reply-To: <5658224202000078000B98D8@prv-mh.provo.novell.com>
On 27/11/15 08:28, Jan Beulich wrote:
>>>> On 26.11.15 at 17:59, <andrew.cooper3@citrix.com> wrote:
>> Before c/s 44e24f8567 "x86: don't call generic_identify() redundantly", the
>> commandline-provided masks would take effect in Xen's view of the features.
>>
>> As the masks got applied after the query for features, the redundant call to
>> generic_identify() would clobber the wrong feature information with the new,
>> correct information.
> I'm seriously wondering: Why would the un-adjusted feature
> information be wrong for Xen's own use (and perhaps even Dom0's)?
There is at least one situation when levelling PV guests where you
absolutely do need to level Xen alongside.
Intel mask msrs cannot hide CPUID.1.ECX[OSXSAVE], as the copy from cr4
happens after the mask is applied, rather than before.
The only way to safely level systems with mixed xsave/non-xsave hardware
is to prevent Xen from turning it on in the first place. This could be
special cased using the "xsave" command line option, but that is just
awkward.
> I view it exactly the other way around: Said commit actually fixed
> this misbehavior.
I am firmly of the opinion that Xen not respecting the mask options for
itself is misbehaviour.
With my feature levelling series (which is just about together now and
undergoing testing), I don't expect anyone to used the cpuid_mask_*
command line options in general, because the adjustments are made
dynamically on a per-guest basis.
This leaves the use of the command line options for debugging (which
used to work), and for actually making the hardware pretend to be older
hardware, which IMO is the expectation of using the options.
~Andrew
next prev parent reply other threads:[~2015-11-27 10:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-26 16:58 [PATCH 1/2] x86/cpu: Introduce cpu_dev.c_early_init() Andrew Cooper
2015-11-26 16:59 ` [PATCH 2/2] x86/cpu: Move set_cpumask() calls into c_early_init() Andrew Cooper
2015-11-27 8:28 ` Jan Beulich
2015-11-27 10:57 ` Andrew Cooper [this message]
2015-11-27 11:11 ` Jan Beulich
2015-11-27 12:03 ` Andrew Cooper
2015-11-27 8:24 ` [PATCH 1/2] x86/cpu: Introduce cpu_dev.c_early_init() Jan Beulich
2015-11-27 9:59 ` 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=56583710.5040708@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=JBeulich@suse.com \
--cc=xen-devel@lists.xen.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.