What is Message-signaled interrupts (MSI)?

A scheme in which a device signals an interrupt by writing to a designated address. It needs no dedicated interrupt wire and lets one device have many interrupts.

Field: I/O Interfaces & Buses

Japanese name: MSI(メッセージシグナル割り込み)

How it works

A traditional interrupt uses a dedicated signal wire from the device toward the CPU and signals by changing the voltage on it. MSI uses no wire: the device writes a defined value to a defined address. That write travels along the same path as ordinary data transfers, and the interrupt controller accepts it as an interrupt. The operating system programs the address and value into the device at startup.

How it differs from interrupt lines

With the traditional scheme the number of lines is limited, so several devices share one line. When an interrupt arrives, the operating system has to check each sharing device to find out which one has asked. With MSI the written value identifies even the kind of interrupt, so no checking is needed and the right handler runs at once. PCI Express devices are required to support MSI or its extension, MSI-X.

MSI and MSI-X

MSI can give one device up to 32 interrupts. MSI-X extends this to as many as 2,048 and lets each interrupt have its own destination. That makes it possible to steer interrupts to individual CPU cores. NVMe SSDs and fast network cards can have a separate interrupt per queue, each handled on a different core, because of MSI-X.

Try it: questions about Message-signaled interrupts (MSI)

What is a characteristic of MSI (message-signaled interrupts) used in PCI Express?

  1. AThe device phones the CPU on every interrupt
  2. BNo interrupts are used; the CPU continuously polls the device
  3. CThe device signals an interrupt by writing to a designated address, so no dedicated interrupt wire is needed
Show answer and explanation

Answer: C. The device signals an interrupt by writing to a designated address, so no dedicated interrupt wire is needed

Devices without MSI use dedicated interrupt wires, sometimes shared among several devices. With MSI, the device writes a designated value to an address set by the OS, and that write arrives at the CPU as an interrupt. Without the limit on wires, a device can have many interrupts; a network card, for example, can send a separate interrupt for each receive queue to a different core.

FAQ

What improves with MSI?

Interrupt lines are no longer shared, so the system does not have to check several devices on every interrupt. No interrupt traces are needed on the board. Interrupts can be spread across cores, so a busy device does not load a single core.

Which is used, MSI or MSI-X?

The operating system and driver choose according to what the device supports. Devices with many queues, or that want interrupts spread across cores, use MSI-X; devices with few interrupts are served well enough by MSI.

Books on I/O Interfaces & Buses Ad

As an Amazon Associate I earn from qualifying purchases.

Comparisons that include this term

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary