Extensions
Forms
1 (1 Legacy)
Data
Intel XED v2026.08.23

HLT stops the logical processor that executes it until something from outside wakes it: an interrupt it accepts, an NMI, an SMI, INIT or RESET. Its home is the operating system’s idle loop, where a core with nothing to run sleeps until the next timer tick or device interrupt instead of spinning. Only that logical processor halts; on a core with two hardware threads, Intel’s optimization manual points out, the other thread then has all of the core’s resources.

Only at CPL 0

HLT is privileged. At CPL 3 it raises #GP(0) before anything happens: Zen 5 raised #GP, changing nothing, in each case of the Operation section. #GP is a fault, so the saved RIP still points at the HLT (Intel’s Volume 3A, Section 7.5). A user program that wants to wait has the operating system’s blocking calls, or UMWAIT and TPAUSE on processors that have them.

STI then HLT

An idle loop must check for work with interrupts disabled, or an interrupt arriving between the check and the HLT would be handled first and the processor would then sleep with the work pending. The usual answer is to end the check with sti; hlt: STI enables interrupts only after the next instruction, so no interrupt can be taken between the two, and an interrupt that is already waiting wakes the HLT at once. The handler returns to the instruction after HLT, where the loop checks again.

With IF clear, only an NMI, an SMI, INIT or RESET ends the halt, as AMD’s manual stresses, so cli; hlt parks a processor until one of those arrives; a loop around it keeps it parked after an NMI.

Under a hypervisor

A guest’s HLT usually leaves the guest: Intel’s VMX can exit on it, and AMD’s SVM has a HLT intercept and an idle-HLT intercept, which exits only if no virtual interrupt is already pending (AMD’s Volume 2). The hypervisor can then run something else on the physical processor until the guest has an interrupt to take. MWAIT, the other way an idle loop can wait, also lets the kernel name a deeper sleep state.

The instruction table of AMD’s Zen 5 guide lists HLT as microcoded.

Forms

Every encoding of HLT that Intel XED knows, one row per XED instruction form (iform). How to read the notation.
InstructionEncodingRequires
HLT HLTF4Base instruction set

Operation

What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.

if CPL > 0:
    fault(GP, 0)
pass                             # halts: no instruction runs until an
                                 # interrupt (with IF set), an NMI, an
                                 # SMI, INIT or RESET wakes it; the
                                 # handler of an interrupt or NMI
                                 # returns to the next instruction
# under a hypervisor, HLT usually leaves the guest, which the
# hypervisor puts to sleep until it has an interrupt for it

Run on AMD Zen 5 (EPYC 9645): 2 cases. Every one raised an exception, at CPL 3, where the probe runs.

Operands

None: XED lists no operands for this form.

Flags

None: XED records no flag that the forms test or change.

Attributes

What else XED records about the forms. How to read.

All forms
privileged: CPL 0 only; may abort a TSX transaction

CPUID and processors

Each form belongs to an XED ISA set. A form can be used when the processor reports every CPUID bit of one of its ISA set's alternatives.

CPUID requirements and processors of the XED ISA sets above. Alternatives are separated by “or”; processors follow XED’s chip model, whose AMD processors end with Zen 2, and the CPU data of this site for Zen 3 to Zen 6.
ISA setCPUIDProcessors
I86

No CPUID bit: part of the base instruction set.

Every x86-64 processor in XED’s model and Zen 3 to Zen 6

More System instructions

Sources

  1. Intel XED v2026.08.23 (commit 0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model.
  2. The CPU data of x86-64.net: Zen 3 to Zen 6, from GCC’s -march feature sets and AMD’s Processor Programming References, which the page of each processor cites.
  3. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): Volume 2A, page 3-439 (HLT)
  4. Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 3 (325384-093, September 2026)
  5. AMD64 Architecture Programmer's Manual, Volume 2: System Programming (24593, rev. 3.42, March 2024), Wayback Machine copy of AMD's PDF
  6. AMD64 Architecture Programmer's Manual, Volume 3: General-Purpose and System Instructions (24594, rev. 3.36, March 2024), Wayback Machine copy of AMD's PDF
  7. Intel 64 and IA-32 Architectures Optimization Reference Manual, Volume 1 (248966-051, October 2026)
  8. Software Optimization Guide for the AMD Zen5 Microarchitecture (58455, rev. 1.00, August 2024), Wayback Machine copy of AMD's ZIP

The tables are derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted them. The text is our own.