User Tools

Site Tools


realtime:documentation:howto:debugging:smi-latency:smi

System management interrupt (SMI)

System management interrupts are high priority unmaskable hardware interrupts which cause the CPU to immediately suspend all other activities, including the operating system, and go into a special execution mode called system management mode (SMM) (Intel SDM, Vol.1 3.1). Once the system is in SMM, the interrupt is handled by firmware code.


The operating system has absolutely no control over when SMIs will happen or how long the CPU will subsequently stay in system management mode. In fact, the operating system is not even aware of the transitions to and from SMM. Thankfully, there are some ways to confirm whether or not an SMI has happened. For example, Intel x86 CPUs from after around 2008 (as of the Nehalem microarchitecture) have the MSR_SMI_COUNT model specific register that counts the number of SMIs that have occurred in a system (Intel SDM, Vol.4 Table 2-14).

The concepts of SMI and SMM are specific to x86, but similar high privilege processor modes exist on some other architectures. For example, on ARM there is a Secure Monitor mode that manages the switches between the Secure and Non-secure processor states.

realtime/documentation/howto/debugging/smi-latency/smi.txt · Last modified: 2024/11/24 12:51 by costa.shul