Re: [PATCH 2/2] boot: add early NMI counter

From: Fernando Luis VÃzquez Cao
Date: Thu Mar 08 2012 - 01:00:29 EST


On 03/08/2012 01:50 PM, Eric W. Biederman wrote:
Fernando Luis VÃzquez Cao<fernando@xxxxxxxxxxxxx> writes:

Subject: [PATCH] boot: add early NMI counter

From: Fernando Luis Vazquez Cao<fernando@xxxxxxxxxxxxx>

We currently ignore early NMIs but it would be nice to be able to
know whether they actually occurred.

This patch adds an early NMI counter and exports it trough
/proc/interrupts with the name of ENM (Early NMI).
For a userspace interface I suspect we just want to dump the count
into the NMI counter.

It probably makes sense to have a separate variable in early boot like
you do, but then about the time we setup the normal NMI handler move the
NMI count over and possibly do something like reboot if that is our
policy.

I am fine with either approach. I guess that is the x86 maintainers'
call. Ingo, Thomas, Peter, what do you think? Should I add a new
entry to /proc/interrupts or move over the early NMI count to the
existing per-cpu NMI counter?

Thanks,
Fernando
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/