Instruction
SEAMRET
Returns from the SEAM module in SEAM root operation to the hypervisor that called it with SEAMCALL.
- Extensions
- Forms
- 1 (1 Legacy)
- Data
- Intel XED v2026.08.23
Forms
| Instruction | Encoding | Requires |
|---|---|---|
SEAMRET 64-bit mode only
SEAMRET | 66 0F 01 CD | Base instruction set |
Latency and throughput
| Model | SEAMRET |
|---|---|
| Sapphire Rapids | 100 / 0.25p0156 |
Operation
What the forms do, in pseudocode that our tests run against results recorded on real processors. How to read.
if not seam or vmx_nonroot:
fault(UD) # outside SEAM root operation
if CPL > 0:
fault(GP, 0)
p = current_vmcs # the SEAM-transfer VMCS
if p == NO_VMCS:
vm_fail_invalid()
elif not controls_ok():
vm_fail(7) # the checks of a VM entry that
elif not host_state_ok(): # returns from SMM (34.15.4)
vm_fail(8)
elif not guest_state_ok():
entry_fail(33) # back into the module
else:
load_guest() # the hypervisor's state again
current_vmcs = vmcs_read(p, 0x2800)
if seam_loader: # from the loader: no current
current_vmcs = NO_VMCS # VMCS, every translation dropped
seam_loader = 0
seam = 0 # the SEAM range closed
Run on AMD Zen 5 (EPYC 9645): 2 cases. Every one raised an exception, at CPL 3, where the probe runs.
Operands
| Operand | Kind | Action |
|---|---|---|
SEAMRET 64-bit mode only | ||
RFLAGS | implicit | write |
Flags
| OF | SF | ZF | AF | PF | CF |
|---|---|---|---|---|---|
| All forms | |||||
| 0 | 0 | M | 0 | 0 | M |
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.
| ISA set | CPUID | Processors |
|---|---|---|
TDX | No CPUID bit: processors with SEAM report its range register (SEAMRR) in bit 15 of the IA32_MTRRCAP MSR, and the TDX module has to be loaded. | Emerald Rapids, Granite Rapids, Diamond Rapids |
More TDX instructions
Sources
- Intel XED v2026.08.23 (commit
0bcb6237345c): forms, encodings, operands, flags, exception classes, attributes, ISA sets, CPUID bits and chip model. - LLVM 23.1.2's x86 scheduling models (commit
85ac56026243): the latency, reciprocal throughput and ports of each form, as llvm-mca reports them. - Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 3 (325384-093, September 2026)
- Linux kernel documentation: Intel Trust Domain Extensions (TDX)
- Intel Trust Domain CPU Architectural Extensions (343754-003, August 2026)
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 timings come from LLVM's scheduling models, part of the LLVM Project, licensed under the Apache License 2.0 with LLVM Exceptions. The text is our own.