From: Ross Lagerwall <ross.lagerwall@citrix.com>
To: Jan Beulich <JBeulich@suse.com>
Cc: Keir Fraser <keir@xen.org>, Xen-devel <xen-devel@lists.xen.org>
Subject: Re: [PATCH] x86/nmi: Make external NMI injection reliably crash the host
Date: Wed, 27 Aug 2014 12:14:38 +0100 [thread overview]
Message-ID: <53FDBD9E.6000406@citrix.com> (raw)
In-Reply-To: <53FCC60E020000780002DBCC@mail.emea.novell.com>
On 08/26/2014 04:38 PM, Jan Beulich wrote:
>>>> On 26.08.14 at 17:26, <ross.lagerwall@citrix.com> wrote:
>> On 08/26/2014 01:59 PM, Jan Beulich wrote:
>>>>>> On 26.08.14 at 12:10, <ross.lagerwall@citrix.com> wrote:
>>>> @@ -3323,7 +3323,7 @@ void do_nmi(const struct cpu_user_regs *regs)
>>>> pci_serr_error(regs);
>>>> if ( reason & 0x40 )
>>>> io_check_error(regs);
>>>> - if ( !(reason & 0xc0) && !nmi_watchdog )
>>>> + if ( !(reason & 0xc0) )
>>>> unknown_nmi_error(regs, reason);
>>>
>>> As much as I like the original idea, I'm afraid this won't fly: I do
>>> know of systems where bad motherboard design leads to neither
>>> of these two bits ever getting set. I.e. at the very minimum we'd
>>> need a command line option to restore old behavior. Personally I
>>> think it should in fact remain default behavior, and new behavior
>>> should only be enabled via command line option.
>>
>> Well the old behavior was different depending on whether the watchdog
>> was enabled or not. Since the watchdog was disabled by default, that's
>> no different from the behavior here.
>>
>> So are you thinking something like an ignore_unknown_nmi boolean
>> parameter that defaults to true?
>
> More like a "watchdog=force" one, but right, since the watchdog
> isn't being enabled by default, maybe making it an opt-out instead
> of opt-in would indeed be acceptable.
>
If bad motherboard design leads to neither of these bits being set (thus
always giving an unknown nmi error), can't the user set nmi=ignore on
the xen command-line to get the previous behavior?
We already have an tristate nmi parameter, a boolean watchdog parameter,
and a watchdog timeout parameter. I'm loathe to introduce even more
possible states.
Regards
--
Ross Lagerwall
next prev parent reply other threads:[~2014-08-27 11:14 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-26 10:10 [PATCH] x86/nmi: Make external NMI injection reliably crash the host Ross Lagerwall
2014-08-26 10:17 ` Andrew Cooper
2014-08-26 12:59 ` Jan Beulich
2014-08-26 15:26 ` Ross Lagerwall
2014-08-26 15:38 ` Jan Beulich
2014-08-27 11:14 ` Ross Lagerwall [this message]
2014-08-27 12:04 ` Jan Beulich
2014-08-26 16:06 ` Don Slutz
2014-08-26 16:51 ` Andrew Cooper
2014-08-26 21:51 ` Don Slutz
2014-08-26 23:01 ` 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=53FDBD9E.6000406@citrix.com \
--to=ross.lagerwall@citrix.com \
--cc=JBeulich@suse.com \
--cc=keir@xen.org \
--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.