On Mon, 25 Jan 2021 09:51:45 -0800 Andy Lutomirski <l...@amacapital.net> wrote:
> > The problem I see with this is that exc_nmi is called with the thread > > stack, if it were to take an exception, NMIs would be enabled allowing for > > a nested NMI to run. From what I can tell, I don't see anything stopping > > that NMI from executing over the currently running NMI. That is, this means > > that NMI handlers are now re-entrant. > > That was intentional in my part. The C code checks for this condition and > handles it, just like it does on 32-bit kernels. I vaguely remember you implementing this, and me reviewing it. I'm getting to that age that there's less and less I remember doing :-/ I'll include a comment about that in my rewrite. But first, I'll re-review your changes to make sure there's no one offs that happen with the mixture of nmi stack handling and the x86_32 version doing the same thing. Thanks for the reminder. -- Steve