mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Question: Outer NMI can nest if from user mode?
@ 2016-08-18 15:21 Steven Rostedt
  2016-08-18 15:48 ` Steven Rostedt
  0 siblings, 1 reply; 3+ messages in thread
From: Steven Rostedt @ 2016-08-18 15:21 UTC (permalink / raw)
  To: Andy Lutomirski; +Cc: LKML, Jiri Olsa

Hi Andy,

I was reading some of the comments in nmi.c and came across this:

/*
 * NMIs can page fault or hit breakpoints which will cause it to lose
 * its NMI context with the CPU when the breakpoint or page fault does an IRET.
 *
 * As a result, NMIs can nest if NMIs get unmasked due an IRET during
 * NMI processing.  On x86_64, the asm glue protects us from nested NMIs
 * if the outer NMI came from kernel mode, but we can still nest if the
 * outer NMI came from user mode.


What confuses me is "but we can still nest if the outer NMI came from
user mode".

How can that happen? You mean do_nmi() can be called nested even on
x86_64 if the first NMI happened in user mode?

-- Steve

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-08-19  1:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-18 15:21 Question: Outer NMI can nest if from user mode? Steven Rostedt
2016-08-18 15:48 ` Steven Rostedt
2016-08-18 15:56   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®