Model-specific register
A model-specific register (MSR) is any of various control registers in the x86 system architecture used for debugging, program execution tracing, performance monitoring, and toggling certain CPU features.[src]
A model-specific register (MSR) is any of various control registers in the x86 system architecture used for debugging, program execution tracing, performance monitoring, and toggling certain CPU features.[src] ==History== With the introduction of the 80386 processor, Intel began introducing "experimental" features that would not necessarily be present in future versions of the processor.[src] The first of these were two "test registers" (TR6 and TR7) that enabled testing of the processor's translation lookaside buffer (TLB); a special variant of the instruction allowed moving to and from the test registers.[src] Three additional test registers followed in the 80486 (TR3–TR5) that enabled testing of the processor's caches for code and data.[src] None of these five registers were implemented in the subsequent Pentium processor; the special variant of generated an invalid opcode exception.[src] With the introduction of the Pentium processor, Intel provided a pair of instructions ( and ) to access current and future "model-specific registers", as well as the instruction to determine which features are present on a particular model.[src] Many of these registers have proven useful enough to be retained.[src] Intel has classified these as architectural model-specific registers and has committed to their inclusion in future product lines.[src] On modern x86-based systems, the BIOS or UEFI firmware will initialize CPUID registers and model-specific registers on each system startup.[src] On AArch64 architecture, the same concept exists, called System Registers.[src] ==Using MSRs== Reading and writing to these registers is handled by the rdmsr and wrmsr instructions, respectively.[src] As these are privileged instructions, they can be executed only by the operating system.[src] Use of the Linux msr kernel module creates a pseudo file "/dev/cpu/x/msr" (with a unique x for each processor or processor core).[src] A user with permissions to read and/or write to this file can use the file I/O API to access these registers.[src] The msr-tools package provides a reference implementation.[src] Documentation regarding which MSRs a certain processor implementation supports is usually found in the processor documentation of the CPU vendor.[src] Examples for rather well-known MSRs are the memory type range registers (MTRRs) and the address-range registers (ARRs).[src] ==See also== LOADALL ==References== ==External links== https://www.intel.com/content/www/us/en/developer/articles/technical/software-security-guidance/best-practices/reading-writing-msrs-in-linux.html The Intel Model-Specific Registers (MSRs) are described in-depth in the Intel® 64 and IA-32 Architectures Software Developer’s Manual, Volume 4; the link to the Intel reference manuals (PDFs) download page (which includes Vol 4): https://cdrdv2.intel.com/v1/dl/getContent/671200[src]
19 sentences · 19 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Model-specific register." encyclopegia.org, 2026, https://encyclopegia.org/wiki/model-specific-register. Accessed 25 November 2026.
Chicago
"Model-specific register." encyclopegia.org. Accessed November 25, 2026. https://encyclopegia.org/wiki/model-specific-register.
APA
encyclopegia.org. (2026). Model-specific register. Retrieved November 25, 2026, from https://encyclopegia.org/wiki/model-specific-register
Accessed November 25, 2026 · CC BY-SA 4.0 · citation page · JSON