Search

A technology, a device or an article

CPU microcode: why update timing matters

An update file and an active CPU revision are distinct facts. How early microcode loading affects OS decisions, and why runtime updates depend on the starting revision.

Blue woven fabric with a local orange change in the stitch pattern
ITNWS AI-generated conceptual illustration. A local stitch change evokes revised behavior; this is not a CPU layout.ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

The package is installed, and the processor can still work with the previous microcode revision. There is no contradiction in this phrase: a file on a drive and the behavior of a running CPU refer to different events. Between them is the bootloader, which must find a suitable update and transfer it to the processor at the appropriate moment. The update history therefore starts before the desktop and continues after the package manager message. To understand it, it is more useful to trace how the system makes its decisions than to look for a single version number, as if it describes the entire computer at once.

Microcode allows the manufacturer to adjust certain internal mechanisms of the processor after the die is manufactured. This is not an opportunity to arbitrarily transform one architecture into another. Corrections apply to the manufacturer’s intended mechanisms; some add software-visible features that the operating system must then use. A public update description can communicate bug fixes and application requirements without revealing the internals of the patch. There is no reason to invent an internal instruction-execution design from an opaque patch file or to promise the same speed change for all programs.

Let’s look at the documented x86 boot, mainly using Intel and Linux as an example. This is an explanation of the mechanism and not a report of a new vulnerability on October 25, 2026. Intel Microcode Update Guidance has an update date of June 12, 2020; we checked it again. Its historical examples do not become a description of every modern CPU. They show why patch delivery time was part of the engineering requirement from the very beginning.

After a hard reset, the processor will have to run the platform code. On supported Intel systems, the Firmware Interface Table may point to a suitable patch even before the first BIOS instruction. Early delivery has an obvious causal advantage: subsequent initialization code is already executed with corrected behavior. An update loaded only by the operating system cannot retroactively change instructions executed during memory initialization. Later, the computer may be in good condition, although the earlier part of startup ran with a different set of fixes.

It does not follow from this that each user needs to change the firmware independently. The meaning of the observation is different: two delivery methods can cover different periods of the life of the CPU. The platform manufacturer includes suitable updates in its delivery, and the operating system has its own mechanism. The words “microcode is already in the system” do not specify what mechanism used it and what part of the start it covered. To analyze a specific error, this is sometimes more significant than the date the package was downloaded.

A pointer to a patch does not establish universal compatibility either. Intel documentation contains the processor signature, family, model, stepping and platform characteristics. The loader selects the relevant data, not just the largest file with the latest date. The revision number has meaning within the applicable update family. Comparing it with a revision of another processor as an overall freshness rating is about as meaningless as comparing numbers of different books without titles and publishers.

Once the Linux kernel takes control, much work remains to be done. It must determine the capabilities of processors, prepare internal structures and run user programs. Early microcode loading precedes decisions that may depend on the patched feature set. If the system first remembered the result of the CPUID enumeration, and then the CPU received new programmatically visible properties, the stored representation does not have to be automatically rebuilt. The order here refers to the operating system’s knowledge of the machine, not just the presence of patch bytes.

Linux Microcode Loader Documentation explains delivery via the initial boot archive initrd. The relevant data is located in the early part of the archive, accessible to the bootloader before the normal system startup. Intel and AMD have their own file names. The distribution usually creates this construction with its own tools. Therefore, updating the original package and updating the actual boot image in use must be distinguished: the old image can continue to deliver the old set, even if new files are added to the root file system.

This difference is especially noticeable when there are multiple kernels installed or multiple boot options. The updated archive of one menu item does not indicate anything about the archive of another. Checking the installed package answers the question about the prepared data; information from a running CPU answers the question about the revision applied. Between them there is a specific selected boot path. It does not automatically become correct just because both ends of the chain have plausible names. The article does not suggest changing this path on the production server for the sake of demonstration.

Terracotta seal and two different impressions in pale clay
ITNWS AI-generated conceptual illustration. A repeated impression evokes delivering a patch at startup. — ITNWS · image_gen · Original ITNWS AI-generated conceptual editorial illustration

Several processors also need a consistent update. Loading on the initial processor does not replace the consistent state of the remaining cores. The Linux documentation describes applying the appropriate update when the initial CPU starts up and then delivering it to others. On systems with SMT, logical threads on the same physical core can share the microcode engine. Therefore, an operation that appears to be local to the logical processor number affects a wider hardware area. A simple entry “updated CPU 0” does not provide a complete description of a running multiprocessor machine.

Early delivery has another advantage: user workloads have not yet had time to build expectations on the old interface. When updating at runtime, such expectations already exist. A program, a hypervisor, or the kernel itself could detect a certain register and start using it. If a patch sequence changes the available interface, the mere fact of a newer revision is not enough to ensure a safe transition. The initial state and the nature of the change are important. A reboot is sometimes valuable precisely because it allows you to re-build a software representation of the CPU.

Revision between two points

Late loading exists as a separate mechanism in Linux, but the documentation notes that as of kernel 5.19 it is not enabled by default. In the same release, the previous interface through the /dev/cpu/microcode device was removed. This information relates to the specified kernel development and does not prove the settings of any installed distribution. The presence of instructions on the Internet does not establish the presence of the corresponding feature in a particular kernel build. To explain the reason for the limitation, it is more useful to consider the concurrent operation of threads than to reproduce the load command.

While changing the microcode, a neighboring SMT thread can execute an instruction or access a register whose behavior is being adjusted. The kernel tries to coordinate the execution of processors, but simply stopping useful work does not cancel all special hardware events. The documentation separately discusses machine checks, NMI, and management interrupts. This explains why runtime update is a special protocol and not the equivalent of a regular file replacement. We do not assess the likelihood of failure and do not claim that ITNWS tested these situations.

There is a development in the documents that cannot be lost when reading the old explanation. Intel Minimum Runtime Microcode Update Revision, updated September 8, 2025, describes the minimum already-loaded revision field for a runtime transition. This is a more specific way to communicate to the software whether a transition is suitable. It does not make any old recommendation or any Linux implementation automatically support the new field.

According to Intel’s description, a non-zero threshold is compared to the current revision. If an already loaded revision is not below the threshold, the incoming update may be eligible for such a transition within the documented conditions. A zero field does not grant permission: older updates may have no information. If the threshold is equal to the new revision’s own, migrating from the old revision in this way is not allowed. What matters is the pair of states, not the adjective “latest” next to the incoming file. This is an explanation of the interface, not a test of a specific production patch.

Let’s imagine the hypothetical revision numbers: the incoming revision 10 requires at least 6 for runtime. The current 7 passes this comparison, the current 4 does not. Installing the same file on two machines therefore does not create the same possibility of updating without starting over. The example repeats the verification logic, but does not indicate actual revisions of the selected model. Using such small numbers, you cannot select a package for a real CPU, just as you cannot find a working server using the example address in a textbook.

The update also doesn’t have to survive a hard reset entirely. Intel describes the normal clearing of loaded microcode during a warm reset and specified exceptions for individual components and persisted state. The practical meaning is the need for planned re-delivery at the start. A patch stored on a drive or in the firmware and a patch located inside a running processor have different lifespans. The Linux documentation specifically specifies storing the appropriate update in memory for use when the CPU returns from sleep.

The virtual machine boundary adds a intermediary to this story. The guest OS sees the interface provided by the hypervisor, and the right to change the physical processor remains with the appropriate platform layer. Even a plausible set of capabilities within the guest is not a complete protocol for delivering patches to the host’s physical cores. When comparing two virtual machines, you need to take into account not only the same disk images. Different hosts may provide different actual environments, and the hypervisor may intentionally present guests with a consistent, limited set of capabilities for compatibility.

The fix itself sometimes provides a remedy whose application depends on program policy. The appearance of the control register does not mean that each program began to independently use it in the desired way. The kernel or hypervisor must select the intended mode at the appropriate locations. Therefore, the phrase “fixed by microcode” requires reading the description of the specific problem: whether the fix inside the CPU is completed or whether the software still needs to use the provided capability. Two machines with the same revision string may differ in the surrounding software solution, and not in the quality of loading the same file.

There is also a timing trap in the log. The successful delivery message is specific to a specific run, and the saved text can survive multiple reboots. During the investigation, it is compared with the current start time and current CPU information. Otherwise, the old confirmation becomes proof of a new state without actual connection. The date of the manufacturer’s document, the date of assembly of the package, the date of installation and the moment of application are independent marks. They do not need to be reduced to one number, since each answers its own question about the origin and effect of the correction.

Performance impacts require their own observational history. Fixing a bug, enabling a security feature, and a program’s security policy may affect different workloads differently. Neither high revision nor early delivery by themselves gives a percentage of speedup or slowdown. For comparison, we need the applicable model, the actual loaded state, program versions and the same operation. Changing the kernel, microcode, and security settings at the same time creates a different experiment than comparing a single change in isolation. There are no such measurements here.

Therefore, it is useful to read a record of the CPU status as a small, dated history: which processor was recognized, what the selected boot path delivered, which revision is currently in effect, what software solutions are associated with it. This is not a reason to endlessly reboot a working machine. This is a way to differentiate between preparing an update and actually applying it, and to see why early delivery has its own purpose. The next boot will again require delivery of suitable data; the package on disk remains part of the story, but never replaces it entirely.

Sources & documentation

  1. Linux microcode loader ↗
  2. Intel microcode update guidance, historical 2020-06-12 ↗
  3. Intel minimum runtime microcode update revision ↗