• Home
  • Raw
  • Download

Lines Matching +full:machine +full:- +full:level

16 exceptions`_, `NMI and NMI-like exceptions`_.
18 Non-instrumentable code - noinstr
19 ---------------------------------
33 .. code-block:: c
37 handle_entry(); // <-- must be 'noinstr' or '__always_inline'
41 handle_context(); // <-- instrumentable code
45 handle_exit(); // <-- must be 'noinstr' or '__always_inline'
51 Invoking non-instrumentable functions from instrumentable context has no
55 All non-instrumentable entry/exit code sections before and after the RCU
59 --------
61 Syscall-entry code starts in assembly code and calls out into low-level C code
62 after establishing low-level architecture-specific state and stack frames. This
63 low-level C code must not be instrumented. A typical syscall handling function
64 invoked from low-level assembly code looks like this:
66 .. code-block:: c
74 if (!invoke_syscall(regs, nr) && nr != -1)
112 ---
118 kvm_guest_enter_irqoff() is a KVM-specific variant of exit_to_user_mode()
129 ---------------------------------
144 The architecture-specific part looks similar to syscall handling:
146 .. code-block:: c
176 practice, deferring this update to irq_enter_rcu() allows the preemption-count
184 than irq-disabled context. In addition, irqentry_exit() might schedule, which
191 interrupt handler from re-enabling interrupts.
197 NMI and NMI-like exceptions
198 ---------------------------
200 NMIs and NMI-like exceptions (machine checks, double faults, debug
204 State changes for debug exceptions and machine-check exceptions depend on
205 whether these exceptions happened in user-space (breakpoints or watchpoints) or
206 in kernel mode (code patching). From user-space, they are treated like
209 NMIs and other NMI-like exceptions handle state transitions without
210 distinguishing between user-mode and kernel-mode origin.
229 Architecture-specific code looks like this:
231 .. code-block:: c
247 .. code-block:: c
275 above cannot be handled in an exception-agnostic way.
277 NMIs can happen in any context. For example, an NMI-like exception triggered