All of lore.kernel.org
 help / color / mirror / Atom feed
From: Keir Fraser <keir@xen.org>
To: Jan Beulich <JBeulich@suse.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>, xen-devel@lists.xensource.com
Subject: Re: fsincos emulation on AMD CPUs
Date: Thu, 15 Dec 2011 16:52:50 +0000	[thread overview]
Message-ID: <CB0FD662.36072%keir@xen.org> (raw)
In-Reply-To: <4EEA020F0200007800068244@nat28.tlf.novell.com>

On 15/12/2011 13:19, "Jan Beulich" <JBeulich@suse.com> wrote:

>>>> On 15.12.11 at 14:13, Keir Fraser <keir@xen.org> wrote:
>> On 15/12/2011 13:08, "Jan Beulich" <JBeulich@suse.com> wrote:
>> 
>>>>>> On 15.12.11 at 13:33, Keir Fraser <keir@xen.org> wrote:
>>>> More detail: the full patch is ugly and hard to test all cases. And there's
>>>> no practical scenario where we want to emulate FSINCOS on AMD -- we don't
>>>> emulate realmode on AMD, FSINCOS on a shadowed page certainly indicates
>>>> that
>>>> we should unshadow the page, FSINCOS on MMIO is mad or malicious.
>>> 
>>> Those latter two cases can't really happen, as fsincos has no memory
>>> operand.
>> 
>> Possibly if the instruction itself was in a recycled page-table page? Or in
>> an MMIO page, or the malicious race that Paolo described --- definitely
>> malicious either way.
>> 
>> Anyhow the short answer is we never want to emulate it on AMD. :-)
> 
> I just sent out the patch as quoted in the reply to Paolo, but you're
> suggesting to be even more drastic and ignore the CPU family. If
> you really want it done that way, I wonder whether we should bail on
> AMD for *all* x87 operations not having memory operands.

Your patch is fine.

 -- Keir

> Jan
> 

      reply	other threads:[~2011-12-15 16:52 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-15  8:38 fsincos emulation on AMD CPUs Jan Beulich
2011-12-15  8:54 ` Paolo Bonzini
2011-12-15 10:15   ` Jan Beulich
2011-12-15 10:34     ` Paolo Bonzini
2011-12-15 11:15       ` Jan Beulich
2011-12-15 12:27         ` Keir Fraser
2011-12-15 12:33           ` Keir Fraser
2011-12-15 13:08             ` Jan Beulich
2011-12-15 13:13               ` Keir Fraser
2011-12-15 13:19                 ` Jan Beulich
2011-12-15 16:52                   ` Keir Fraser [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=CB0FD662.36072%keir@xen.org \
    --to=keir@xen.org \
    --cc=JBeulich@suse.com \
    --cc=pbonzini@redhat.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.