From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Andy Lutomirski <luto@amacapital.net>
Cc: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
David Vrabel <david.vrabel@citrix.com>,
"H. Peter Anvin" <hpa@zytor.com>, Ingo Molnar <mingo@redhat.com>,
Thomas Gleixner <tglx@linutronix.de>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"xen-devel@lists.xenproject.org" <xen-devel@lists.xenproject.org>,
linux@eikelenboom.it
Subject: Re: [PATCH] hypervisor/x86/xen: Unset X86_BUG_SYSRET_SS_ATTRS on Xen PV guests
Date: Thu, 30 Apr 2015 18:23:28 -0400 [thread overview]
Message-ID: <5542AB60.1090907@oracle.com> (raw)
In-Reply-To: <CALCETrXt2y33KdwyyfjDmi42q7k4gPyLRtJa5Vf78e5Dozk3Lg@mail.gmail.com>
On 04/30/2015 03:35 PM, Andy Lutomirski wrote:
> On Thu, Apr 30, 2015 at 12:30 PM, Boris Ostrovsky
> <boris.ostrovsky@oracle.com> wrote:
>> On 04/30/2015 03:17 PM, Andy Lutomirski wrote:
>>> On Thu, Apr 30, 2015 at 12:08 PM, Boris Ostrovsky
>>> <boris.ostrovsky@oracle.com> wrote:
>>>> Commit 61f01dd941ba ("x86_64, asm: Work around AMD SYSRET SS descriptor
>>>> attribute issue") makes AMD processors set SS to __KERNEL_DS in
>>>> __switch_to() to deal with cases when SS is NULL.
>>>>
>>>> This breaks Xen PV guests who do not want to load SS with__KERNEL_DS.
>>>>
>>>> Since the problem that the commit is trying to address would have to be
>>>> fixed in the hypervisor (if it in fact exists under Xen) there is no
>>>> reason to set X86_BUG_SYSRET_SS_ATTRS flag for PV VPCUs here.
>>>>
>>> Seems reasonable.
>>>
>>> Have you run the test case on a Xen PV guest on AMD? It's possible
>>> that Xen is affected, since the old accidental workaround that we
>>> deleted was in the vdso and probably would have worked on Xen.
>>
>> Is there a specific test that would trigger this bug? I
>> booted/suspended/resumed a bunch of various guest types on both AMD and
>> Intel but not much more than that. What is the commit that you deleted?
>>
>> I doubt that a change in the guest could suddenly start triggering this
>> issue but I will take a look at hypervisor code.
> http://article.gmane.org/gmane.linux.kernel/1937899
>
> The change was that we stopped reloading ss after 32-bit sysret in the
> vdso trampoline. Before we always reloaded ss in userspace before
> doing any stack operations.
>
> I have no idea whether this was deliberate. It had done that (with
> the attendant performance hit) since the very beginning, and there was
> no comment explaining why.
The test passed. Which I guess is not surprising given that interrupt
handling is done by the hypervisor.
-boris
next prev parent reply other threads:[~2015-04-30 22:25 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-30 19:08 Boris Ostrovsky
2015-04-30 19:17 ` Andy Lutomirski
2015-04-30 19:30 ` Boris Ostrovsky
2015-04-30 19:35 ` Andy Lutomirski
2015-04-30 22:23 ` Boris Ostrovsky [this message]
2015-05-01 10:37 ` [Xen-devel] " David Vrabel
2015-05-02 12:10 ` Sander Eikelenboom
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=5542AB60.1090907@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=hpa@zytor.com \
--cc=konrad.wilk@oracle.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux@eikelenboom.it \
--cc=luto@amacapital.net \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®