From: Stefan Bader <stefan.bader@canonical.com>
To: xen-devel@lists.xen.org
Subject: Re: [PATCH/RFC] Fix xsave bug on older Xen hypervisors
Date: Fri, 07 Sep 2012 17:43:00 +0200 [thread overview]
Message-ID: <504A1604.5030103@canonical.com> (raw)
In-Reply-To: <20120907145433.GA5378@phenom.dumpdata.com>
[-- Attachment #1.1: Type: text/plain, Size: 3360 bytes --]
On 07.09.2012 16:54, Konrad Rzeszutek Wilk wrote:
>>> But iirc that bad patch is a Linux side one (i.e. you're trying to fix
>>> something upstream that isn't upstream)?
>>>
>> Right, so the patch that this improves upon, and that Fedora and Ubuntu are
>> currently carrying is not upstream because:
>>
>> a) It's crap, it cripples upstream xen users, but doesn't impact RHEL xen
>> users because xsave was never supported there.
>>
>> b) The hypervisor was patched to make it unnecessary quite some time ago,
>> and we hoped EC2 would eventually pick up that correct patch and we could
>> drop the crap kernel patch.
>>
>> Unfortunately this has not happened. We are at a point where EC2 really is
>> a quirk that has to be worked around. Distros do not want to maintain
>> a separate EC2 build of the kernel, so the easiest way is to cripple
>> current upstream xen users. This quirk is unfortunately the best possible
>> solution. Having it upstream also makes it possible for any user to build
>> an upstream kernel that will run on EC2 without having to dig a random
>> patch out of a vendor kernel.
>
> Sure. Jan is asking though for actual confirmation that the upstream kernel
> does indeed go belly up without a workaround.
> And whether this patch (which I would did since Canonical is carrying it) does
> fix the issue.
It is really hard to tell. It might even be that all of the hosts on EC2 are now
upgraded. There might be different version around. Even back when the problem
was found it would not always happen.
So it is, still a bit hackish, an attempt to play safe. All that is known is
that there happened to be hosts running Xen 3.something which would do that.
Historical evidence might be:
commit 389a3c02496dd1b399bb0efd005e9fa2be24e9ee
Author: Jeremy Fitzhardinge <jeremy@goop.org>
Date: Tue Sep 18 22:46:33 2007 -0700
xen: don't bother trying to set cr4
Xen ignores all updates to cr4, and some versions will kill the domain if
you try to change its value. Just ignore all changes.
Of course this is ancient v2.6.23 and it was later relaxed to just filter out
some flags:
commit 2956a3511c8c5dccb1d4739ead17c7c3c23a24b7
Author: Jeremy Fitzhardinge <jeremy@goop.org>
Date: Mon May 26 23:31:04 2008 +0100
xen: allow some cr4 updates
The guest can legitimately change things like cr4.OSFXSR and
OSXMMEXCPT, so let it.
But whether there are still hosts out there running a bad version of the HV is
hard to say. EC2 may or may not be the only case (or not at all anymore). For
upstream Linux it would be a valid decision either way. Not adding a quirk
because the use-case is so small. Or adding it because it avoids special patches
in distros and forcing those bits off on Xen 3 hosts is an acceptable drawback.
At least posting it here would allow those who carry the older more intrusive
hack to replace that. So we do not run again into that mess like when xsave was
half-disabled by guests with that patch and hosts supporting it.
>
> I am still a newbie on the Amazon EC2 upload your kernel thing (hint, would
> appreciate somebody taking this patch and trying it out).
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 897 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
next prev parent reply other threads:[~2012-09-07 15:43 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-07 11:40 [PATCH/RFC] Fix xsave bug on older Xen hypervisors Stefan Bader
2012-09-07 12:33 ` Jan Beulich
2012-09-07 12:33 ` [Xen-devel] " Jan Beulich
2012-09-07 13:21 ` Stefan Bader
2012-09-07 14:02 ` Jan Beulich
2012-09-07 14:02 ` [Xen-devel] " Jan Beulich
2012-09-07 14:22 ` Justin M. Forbes
2012-09-07 14:22 ` [Xen-devel] " Justin M. Forbes
2012-09-07 14:54 ` Konrad Rzeszutek Wilk
2012-09-07 14:54 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-09-07 15:43 ` Stefan Bader [this message]
2012-09-08 10:18 ` Paolo Bonzini
2012-09-08 10:18 ` Paolo Bonzini
2012-09-10 22:36 ` [Xen-devel] " Matt Wilson
2012-09-10 22:36 ` Matt Wilson
2012-09-07 15:44 ` Jan Beulich
2012-09-07 15:44 ` [Xen-devel] " Jan Beulich
2012-09-07 15:47 ` Stefan Bader
2012-09-07 15:52 ` Jan Beulich
2012-09-07 15:48 ` Konrad Rzeszutek Wilk
2012-09-07 15:48 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-09-07 16:13 ` Stefan Bader
2012-09-07 16:13 ` [Xen-devel] " Stefan Bader
2012-09-08 10:28 ` Paolo Bonzini
2012-09-08 10:28 ` [Xen-devel] " Paolo Bonzini
2012-09-07 15:52 ` Jan Beulich
2012-09-07 15:54 ` Ian Campbell
2012-09-07 15:54 ` [Xen-devel] " Ian Campbell
2012-09-08 10:20 ` Paolo Bonzini
2012-09-08 10:20 ` [Xen-devel] " Paolo Bonzini
2012-09-07 15:47 ` Stefan Bader
2012-09-07 16:00 ` Justin M. Forbes
2012-09-07 16:00 ` [Xen-devel] " Justin M. Forbes
2012-09-11 2:40 ` Matt Wilson
2012-09-11 11:37 ` Konrad Rzeszutek Wilk
2012-09-11 11:37 ` [Xen-devel] " Konrad Rzeszutek Wilk
2012-09-11 13:06 ` Josh Boyer
2012-09-11 13:06 ` Josh Boyer
2012-09-11 2:40 ` Matt Wilson
2012-09-07 13:21 ` Stefan Bader
2012-09-07 13:47 ` Konrad Rzeszutek Wilk
2012-09-07 13:47 ` Konrad Rzeszutek Wilk
2012-09-11 1:17 ` Matt Wilson
2012-09-11 1:17 ` Matt Wilson
-- strict thread matches above, loose matches on Subject: below --
2012-09-07 11:40 Stefan Bader
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=504A1604.5030103@canonical.com \
--to=stefan.bader@canonical.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.