Re: [PATCH RFC] NMI Re-introduce un[set]_nmi_callback

From: Andi Kleen
Date: Fri Sep 05 2008 - 10:18:42 EST


Ingo Molnar wrote:
* Andi Kleen <andi@xxxxxxxxxxxxxx> wrote:

Add "kdump" to the list. It will also be broken if we decide to let one driver hijack the NMI handler.
kdump is a special case, similar to the NMI button panic mode. It should be always only active when the user configured it. When the user configured it should be always the fallback and override any other drivers.

if by 'any other drivers' you mean all other notifiers then that's wrong - kdump must still come after many other NMI sources.

Your ordering makes sense. Someone just has to go through all
the users and fix them up I guess and also document it properly.

One thing to consider though: if there are more and more NMI drivers
it would make sense to have a new notifier chain just for this
(and also finally convert oprofile to use it too).

The problem with adding more and more into the die chain is that
die is executed on every exception, including quite performance
critical ones like page fault or int 3 (performance critical for
dprobes)

-Andi

--
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/