MSR instructions
USER-MSR-EVEX exception class
USER-MSR-EVEX is the APX specification's exception class for URDMSR and UWRMSR in their EVEX encoding, with the MSR address in a register or an immediate and the registers R16 to R31 available.
- Class
USER-MSR-EVEXin Intel XED- Applies to
- The EVEX encodings of URDMSR and UWRMSR (USER_MSR with APX): the register forms in map 4 and the immediate forms in map 7.
- Instructions
- 2 mnemonics, 4 forms
- Data
- Intel XED v2026.08.23
Exception conditions
| Exception | Real | Virtual-8086 | Protected | 64-bit | Condition |
|---|---|---|---|---|---|
#UD | yes | yes | yes | no | Always: URDMSR and UWRMSR exist only in 64-bit mode. |
#UD | no | no | no | yes | A LOCK, 66H, F2H, F3H or REX prefix comes before the EVEX prefix. |
#UD | no | no | no | yes | EVEX.W or EVEX.L is 1, or EVEX.V4 and EVEX.vvvv are not all 1s. |
#UD | no | no | no | yes | A bit of the last EVEX payload byte other than V4 is 1. |
#UD | no | no | no | yes | ModRM.mod is not 11B or EVEX.U is 0: the operands are registers. |
#UD | no | no | no | yes | XCR0 bit 19 (APX) or CR4.OSXSAVE is 0: the operating system has not enabled APX. |
#UD | no | no | no | yes | CPUID reports no APX_F or no USER_MSR. |
#UD | no | no | no | yes | The operating system has not enabled the instructions: bit 0 (ENABLE) of IA32_USER_MSR_CTL is 0. |
#GP(0) | no | no | no | yes | The MSR address is 4000H or above: bits 63:14 are not all zero. |
#GP(0) | no | no | no | yes | The MSR’s bit in the operating system’s bitmap is 0: the URDMSR half of the bitmap for URDMSR, the UWRMSR half for UWRMSR. |
#GP(0) | no | no | no | yes | UWRMSR only: the MSR is not one that UWRMSR may write. |
#GP(0) | no | no | no | yes | The instruction runs inside an enclave and the access would cause a VM exit. |
#GP(0) | no | no | no | yes | RDMSR or WRMSR of the same MSR would raise #GP(0), for example for reserved bits in the value. |
Notes
The #GP(0) for an access that would cause a VM exit inside an enclave is in the APX table only; the SDM’s pages for the legacy and VEX forms do not list it. The operating system’s bitmap works as described for USER-MSR-LEGACY.
Related classes
Instructions
Intel XED puts forms of 2 mnemonics in this class, listed here by extension. Where a mnemonic also has forms of other classes, its link leads to its first form of this one.
APX
Sources
- Intel Advanced Performance Extensions (Intel APX) Architecture Specification, revision 7.0 (July 2025): Section 4.2.22, Table 4.23.
- Intel 64 and IA-32 Architectures Software Developer's Manual, Volume 2 (325383-093, September 2026): URDMSR and UWRMSR, 64-Bit Mode Exceptions.
- Intel XED v2026.08.23 (commit
0bcb6237345c): the exception class of each instruction form.
The list of instructions is derived from Intel XED, Copyright Intel Corporation, licensed under the Apache License 2.0; x86-64.net converted and reformatted it. The text is our own.