From: Avi Kivity <avi@redhat.com>
To: Alexander Graf <agraf@suse.de>
Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [PATCH] x86, nmi: workaround sti; hlt race vs nmi; intr
Date: Mon, 27 Sep 2010 11:27:15 +0200 [thread overview]
Message-ID: <4CA06373.5030501@redhat.com> (raw)
In-Reply-To: <C725B379-9631-46E4-A825-E43A5120681E@suse.de>
On 09/27/2010 11:22 AM, Alexander Graf wrote:
> On 27.09.2010, at 11:17, Avi Kivity wrote:
>
> > On 09/27/2010 11:15 AM, Alexander Graf wrote:
> >> >
> >> > Wow, this is incredibly ugly :). Can't we just mask NMIs when the interrupt shadow is active?
> >
> > I plan to do that, for all the code that's out there relying on on STI interrupt shadow masking NMIs.
> >
> >> Yeah, that's me writing without thinking. So this means that the race can also happen on real hardware?
> >>
> >
> > Yes. At least on documented hardware. Some (most? all?) hardware does mask NMIs after STI.
>
> If all hardware masks NMIs after STI, wouldn't it be better to update the spec and declare KVM buggy for injecting NMIs there?
>
I don't have write permissions for the spec. If you can verify that all
existing and future hardware will mask NMI after STI and convince the
spec owners to update the specifications, I'm all for it; it's certainly
a cleaner solution.
Note these days hardware includes virtual hardware; though it's less
affected. Missing a wakeup is critical for real time systems --
virtualized systems are unlikely to notice it unless they have exactly
one interrupt source.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2010-09-27 9:27 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-19 16:28 [PATCH] x86, nmi: workaround sti; hlt race vs nmi; intr Avi Kivity
2010-09-27 8:38 ` Avi Kivity
2010-09-27 9:13 ` Alexander Graf
2010-09-27 9:15 ` Alexander Graf
2010-09-27 9:17 ` Avi Kivity
2010-09-27 9:22 ` Alexander Graf
2010-09-27 9:27 ` Avi Kivity [this message]
2010-09-27 9:36 ` Alexander Graf
2010-09-27 21:55 ` H. Peter Anvin
2010-09-28 8:50 ` Avi Kivity
2010-09-28 9:22 ` Roedel, Joerg
2010-09-28 15:34 ` H. Peter Anvin
2010-09-28 16:30 ` Avi Kivity
2010-09-27 10:31 ` Joerg Roedel
2010-09-27 14:17 ` Avi Kivity
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=4CA06373.5030501@redhat.com \
--to=avi@redhat.com \
--cc=agraf@suse.de \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=x86@kernel.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