blob: fda85327bd63caa72bf8be2fb8a5380ae6246017 [file] [log] [blame]
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001/*
2 * This file is part of msrtool.
3 *
Anton Kochkovdd678a22012-07-04 07:39:07 +04004 * Copyright (C) 2013 Anton Kochkov <anton.kochkov@gmail.com>
Anton Kochkov7c634ae2011-06-20 23:14:22 +04005 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
Anton Kochkov7c634ae2011-06-20 23:14:22 +040014 */
15
16#include "msrtool.h"
17
Anton Kochkov59b36f12012-07-21 07:29:48 +040018int intel_core2_later_probe(const struct targetdef *target, const struct cpuid_t *id) {
Lubomir Rintel199a23c2017-01-22 22:19:24 +010019 return ((VENDOR_INTEL == id->vendor) &&
20 (0x6 == id->family) &&
21 (0x17 == id->model));
Anton Kochkov7c634ae2011-06-20 23:14:22 +040022}
23
24const struct msrdef intel_core2_later_msrs[] = {
Patrick Georgi5c65d002020-01-29 13:45:45 +010025 {0x17, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PLATFORM_ID Register",
Anton Kochkovdd678a22012-07-04 07:39:07 +040026 "Model Specific Platform ID", {
27 /* The OS can use this MSR to determine "slot" information for the
28 * processor and the proper microcode update to load. */
Anton Kochkov7c634ae2011-06-20 23:14:22 +040029 { 63, 11, RESERVED },
Anton Kochkovdd678a22012-07-04 07:39:07 +040030 { 52, 3, "Platform ID", "R/O", PRESENT_BIN, {
31 { MSR1(0), "Processor Flag 0" },
32 { MSR1(1), "Processor Flag 1" },
33 { MSR1(2), "Processor Flag 2" },
34 { MSR1(3), "Processor Flag 3" },
35 { MSR1(4), "Processor Flag 4" },
36 { MSR1(5), "Processor Flag 5" },
37 { MSR1(6), "Processor Flag 6" },
38 { MSR1(7), "Processor Flag 7" },
39 { BITVAL_EOT }
40 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +040041 { 49, 37, RESERVED },
Anton Kochkovdd678a22012-07-04 07:39:07 +040042 { 12, 5, "Maximum Qualified Ratio:", "The maximum allowed bus ratio",
43 PRESENT_DEC, {
Anton Kochkov7c634ae2011-06-20 23:14:22 +040044 { BITVAL_EOT }
45 }},
46 { 7, 8, RESERVED },
47 { BITS_EOT }
48 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +010049 { 0x2a, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EBL_CR_POWERON Register",
Anton Kochkovdd678a22012-07-04 07:39:07 +040050 "Processor Hard Power-On Configuration", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +040051 { 63, 41, RESERVED },
52 { 26, 5, "Integer Bus Frequency Ratio:", "R/O", PRESENT_DEC, {
53 { BITVAL_EOT }
54 }},
55 { 21, 2, "Symmetric Arbitration ID:", "R/O", PRESENT_BIN, {
56 { BITVAL_EOT }
57 }},
58 { 19, 1, RESERVED },
59 { 18, 1, "N/2:", "Non-integer bus ratio", PRESENT_DEC, {
60 { MSR1(0), "Integer ratio" },
61 { MSR1(1), "Non-integer ratio" },
62 { BITVAL_EOT }
63 }},
64 { 17, 2, "APIC Cluster ID:", "R/O", PRESENT_HEX, {
65 { BITVAL_EOT }
66 }},
67 { 15, 1, RESERVED },
68 { 14, 1, "1 Mbyte Power on Reset Vector", "R/O", PRESENT_DEC, {
69 { MSR1(0), "4 GBytes Power on Reset Vector" },
70 { MSR1(1), "1 Mbyte Power on Reset Vector" },
71 { BITVAL_EOT }
72 }},
73 { 13, 1, RESERVED },
74 { 12, 1, "BINIT# Observation", "R/O", PRESENT_DEC, {
75 { MSR1(0), "BINIT# Observation disabled" },
76 { MSR1(1), "BINIT# Observation enabled" },
77 { BITVAL_EOT }
78 }},
79 { 11, 1, "TXT", "Intel TXT Capable Chipset", PRESENT_DEC, {
80 { MSR1(0), "Intel TXT Capable Chipset not present" },
81 { MSR1(1), "Intel TXT Capable Chipset present" },
82 { BITVAL_EOT }
83 }},
84 { 10, 1, "MCERR# Observation:", "R/O", PRESENT_DEC, {
85 { MSR1(0), "MCERR# Observation disabled" },
86 { MSR1(1), "MCERR# Observation enabled" },
87 { BITVAL_EOT }
88 }},
89 { 9, 1, "Execute BIST", "R/O", PRESENT_DEC, {
90 { MSR1(0), "Execute BIST disabled" },
91 { MSR1(1), "Execute BIST enabled" },
92 { BITVAL_EOT }
93 }},
94 { 8, 1, "Output Tri-state", "R/O", PRESENT_DEC, {
95 { MSR1(0), "Output Tri-state disabled" },
96 { MSR1(1), "Output Tri-state enabled" },
97 { BITVAL_EOT }
98 }},
99 { 7, 1, "BINIT# Driver Enable", "R/W", PRESENT_DEC, {
100 { MSR1(0), "BINIT# Driver disabled" },
101 { MSR1(1), "BINIT# Driver enabled" },
102 { BITVAL_EOT }
103 }},
104 { 6, 2, RESERVED },
105 { 4, 1, "Address parity enable", "R/W", PRESENT_DEC, {
106 { MSR1(0), "Address parity disabled" },
107 { MSR1(1), "Address parity enabled" },
108 { BITVAL_EOT }
109 }},
110 { 3, 1, "MCERR# Driver Enable", "R/W", PRESENT_DEC, {
111 { MSR1(0), "MCERR# Driver disabled" },
112 { MSR1(1), "MCERR# Driver enabled" },
113 { BITVAL_EOT }
114 }},
115 { 2, 1, "Response error checking enable", "R/W", PRESENT_DEC, {
116 { MSR1(0), "Response Error Checking disabled" },
117 { MSR1(1), "Response Error Checking enabled" },
118 { BITVAL_EOT }
119 }},
120 { 1, 1, "Data error checking enable", "R/W", PRESENT_DEC, {
121 { MSR1(0), "Data error checking disabled" },
122 { MSR1(1), "Data error checking enabled" },
123 { BITVAL_EOT }
124 }},
125 { 0, 1, RESERVED },
126 { BITS_EOT }
127 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100128 {0xcd, MSRTYPE_RDONLY, MSR2(0, 0), "MSR_FSB_FREQ", "Scalable Bus Speed", {
Patrick Georgifbbef022020-01-29 13:31:16 +0100129 /* This field indicates the intended scalable bus clock speed */
Anton Kochkovdd678a22012-07-04 07:39:07 +0400130 { 63, 61, RESERVED },
131 { 2, 3, "Speed", "R/O", PRESENT_BIN, {
132 { MSR1(0), "267 MHz (FSB 1067)" },
133 { MSR1(1), "133 MHz (FSB 533)" },
134 { MSR1(2), "200 MHz (FSB 800)" },
135 { MSR1(3), "167 MHz (FSB 667)" },
136 { MSR1(4), "333 MHz (FSB 1333)" },
137 { MSR1(5), "100 MHz (FSB 400)" },
138 { MSR1(6), "400 MHz (FSB 1600)" },
139 { BITVAL_EOT }
140 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400141 { BITS_EOT }
142 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100143 {0x11e, MSRTYPE_RDWR, MSR2(0, 0), "MSR_BBL_CR_CTL3", "", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400144 { 63, 40, RESERVED },
145 { 23, 1, "L2 Present", "R/O", PRESENT_BIN, {
146 { MSR1(0), "L2 Present" },
147 { MSR1(1), "L2 Not Present" },
148 { BITVAL_EOT }
149 }},
150 { 22, 14, RESERVED },
151 { 8, 1, "L2 Enabled", "R/W", PRESENT_BIN, {
152 /* Until this bit is set the processor will not respond
153 * to the WBINVD instruction or the assertion
154 * of the FLUSH# input. */
155 { MSR1(0), "L2 is disabled" },
156 { MSR1(1), "L2 cache has been initialized" },
157 { BITVAL_EOT }
158 }},
159 { 7, 7, RESERVED},
160 { 0, 1, "L2 Hardware Enabled", "R/O", PRESENT_BIN, {
161 { MSR1(0), "L2 is hardware-disabled" },
162 { MSR1(1), "L2 is hardware-enabled" },
163 { BITVAL_EOT }
164 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400165 { BITS_EOT }
166 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100167 {0x198, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400168 { BITS_EOT }
169 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400170
171 // Per core msrs
172
Patrick Georgi5c65d002020-01-29 13:45:45 +0100173 {0x0, MSRTYPE_RDWR, MSR2(0, 0), "IA32_P5_MC_ADDR",
174 "Pentium Processor Machine-Check Exception Address", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400175 { BITS_EOT }
176 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100177 {0x1, MSRTYPE_RDWR, MSR2(0, 0), "IA32_P5_MC_TYPE",
178 "Pentium Processor Machine-Check Exception Type", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400179 { BITS_EOT }
180 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100181 {0x6, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MONITOR_FILTER_SIZE", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400182 { BITS_EOT }
183 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100184 {0x10, MSRTYPE_RDWR, MSR2(0, 0), "IA32_TIME_STEP_COUNTER", "TSC", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400185 { BITS_EOT }
186 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100187 {0x1b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_APIC_BASE", "APIC BASE", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400188 /* In Intel's manual there is MAXPHYWID,
189 * which determine index of highest bit of
190 * APIC Base itself, so marking it as
191 * 'RESERVED'.
192 */
193 { 63, 52, RESERVED },
194 { 11, 1, "APIC Global Enable", "R/W", PRESENT_BIN, {
195 { BITVAL_EOT }
196 }},
197 { 10, 1, RESERVED },
198 { 9, 1, RESERVED },
199 { 8, 1, "BSP Flag", "R/W", PRESENT_BIN, {
200 { BITVAL_EOT }
201 }},
202 { 7, 8, RESERVED },
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400203 { BITS_EOT }
204 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100205 {0x3a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_FEATURE_CONTROL",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400206 "Control features in Intel 64Processor", {
207 { 63, 48, RESERVED },
208 /* if CPUID.01H: ECX[6] = 1 */
209 { 15, 1, "SENTER Global Enable", "R/WL", PRESENT_BIN, {
210 { MSR1(0), "SENTER leaf functions are disabled" },
211 { MSR1(1), "SENTER leaf functions are enabled" },
212 { BITVAL_EOT }
213 }},
214 /* if CPUID.01H: ECX[6] = 1 */
215 { 14, 7, "SENTER Local Function Enables", "R/WL", PRESENT_BIN, {
216 { BITVAL_EOT }
217 }},
218 { 7, 4, RESERVED },
219 { 3, 1, "SMRR Enable", "R/WL", PRESENT_BIN, {
220 { MSR1(0), "SMRR_PHYS_BASE and SMRR_PHYS_MASK are invisible in SMM" },
221 { MSR1(1), "SMRR_PHYS_BASE and SMRR_PHYS_MASK accessible from SMM" },
222 { BITVAL_EOT }
223 }},
224 /* if CPUID.01H: ECX[5 or 6] = 1 */
225 { 2, 1, "VMX outside of SMX operation", "R/WL", PRESENT_BIN, {
226 /* This bit enables VMX for system executive
227 * that do not require SMX.
228 */
229 { MSR1(0), "VMX outside of SMX operation disabled" },
230 { MSR1(1), "VMX outside of SMX operation enabled" },
231 { BITVAL_EOT }
232 }},
233 { 1, 1, "VMX inside of SMX operation", "R/WL", PRESENT_BIN, {
234 /* This bit enables a system executive to use
Elyes HAOUAS75db59662018-08-23 18:16:26 +0200235 * VMX in conjunction with SMX to support Intel
Anton Kochkovdd678a22012-07-04 07:39:07 +0400236 * Trusted Execution Technology.
237 */
238 { MSR1(0), "VMX inside of SMX operation disabled" },
239 { MSR1(1), "VMX outside of SMX operation enabled" },
240 { BITVAL_EOT }
241 }},
242 /* if CPUID.01H: ECX[5 or 6] = 1 */
243 { 0, 1, "Lock bit", "R/WO", PRESENT_BIN, {
244 /* Once the Lock bit is set, the contents
245 * of this register cannot be modified.
246 * Therefore the lock bit must be set after
247 * configuring support for Intel Virtualization
248 * Technology and prior transferring control
249 * to an Option ROM or bootloader. Hence, once
250 * the lock bit is set, the entire IA32_FEATURE_CONTROL_MSR
251 * contents are preserved across RESET when
252 * PWRGOOD it not deasserted.
253 */
254 { MSR1(0), "IA32_FEATURE_CONTROL MSR can be modified" },
255 { MSR1(1), "IA32_FEATURE_CONTROL MSR cannot be modified" },
256 { BITVAL_EOT }
257 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400258 { BITS_EOT }
259 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100260 {0x40, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_0_FROM_IP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400261 { BITS_EOT }
262 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100263 {0x41, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_1_FROM_IP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400264 { BITS_EOT }
265 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100266 {0x42, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_2_FROM_IP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400267 { BITS_EOT }
268 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100269 {0x43, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_3_FROM_IP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400270 { BITS_EOT }
271 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100272 {0x60, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_0_TO_LIP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400273 { BITS_EOT }
274 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100275 {0x61, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_1_TO_LIP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400276 { BITS_EOT }
277 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100278 {0x62, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_2_TO_LIP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400279 { BITS_EOT }
280 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100281 {0x63, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_3_TO_LIP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400282 { BITS_EOT }
283 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100284 {0x79, MSRTYPE_RDWR, MSR2(0, 0), "IA32_BIOS_UPDT_TRIG",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400285 "BIOS Update Trigger Register (W)", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400286 { BITS_EOT }
287 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100288 {0x8b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_BIOS_SIGN_ID",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400289 "BIOS Update Signature ID (RO)", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400290 { BITS_EOT }
291 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100292 {0xa0, MSRTYPE_RDWR, MSR2(0, 0), "MSR_SMRR_PHYS_BASE", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400293 { BITS_EOT }
294 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100295 {0xa1, MSRTYPE_RDWR, MSR2(0, 0), "MSR_SMRR_PHYS_MASK", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400296 { BITS_EOT }
297 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100298 {0xc1, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PMC0", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400299 { BITS_EOT }
300 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100301 {0xc2, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PMC1", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400302 { BITS_EOT }
303 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100304 {0xe7, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MPERF", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400305 { BITS_EOT }
306 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100307 {0xe8, MSRTYPE_RDWR, MSR2(0, 0), "IA32_APERF", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400308 { BITS_EOT }
309 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100310 {0xfe, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRRCAP", "", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400311 { 63, 52, RESERVED },
312 { 11, 1, "SMRR Capability Using MSR 0xa0 and 0xa1", "R/O", PRESENT_BIN, {
313 { BITVAL_EOT }
314 }},
315 { 10, 11, RESERVED },
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400316 { BITS_EOT }
317 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100318 {0x174, MSRTYPE_RDWR, MSR2(0, 0), "IA32_SYSENTER_CS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400319 { BITS_EOT }
320 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100321 {0x175, MSRTYPE_RDWR, MSR2(0, 0), "IA32_SYSENTER_ESP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400322 { BITS_EOT }
323 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100324 {0x176, MSRTYPE_RDWR, MSR2(0, 0), "IA32_SYSENTER_EIP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400325 { BITS_EOT }
326 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100327 {0x179, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MCG_CAP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400328 { BITS_EOT }
329 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100330 {0x17a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MCG_STATUS", "", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400331 { 63, 61, RESERVED },
332 { 2, 1, "MCIP", "R/W", PRESENT_BIN, {
333 /* When set, bit indicates that a machine check has been
334 * generated. If a second machine check is detected while
335 * this bit is still set, the processor enters a shutdown state.
336 * Software should write this bit to 0 after processing
337 * a machine check exception.
338 */
339 { MSR1(0), "Nothing" },
340 { MSR1(1), "Machine check has been generated" },
341 { BITVAL_EOT }
342 }},
343 { 1, 1, "EPIV", "R/W", PRESENT_BIN, {
344 /* When set, bit indicates that the instruction addressed
345 * by the instruction pointer pushed on the stack (when
346 * the machine check was generated) is directly associated
347 * with the error
348 */
349 { MSR1(0), "Nothing" },
350 { MSR1(1), "Instruction addressed directly associated with the error" },
351 { BITVAL_EOT }
352 }},
353 { 0, 1, "RIPV", "R/W", PRESENT_BIN, {
354 /* When set, bit indicates that the instruction addressed
355 * by the instruction pointer pushed on the stack (when
356 * the machine check was generated) can be used to restart
357 * the program. If cleared, the program cannot be reliably restarted
358 */
359 { MSR1(0), "Program cannot be reliably restarted" },
360 { MSR1(1), "Instruction addressed can be used to restart the program" },
361 { BITVAL_EOT }
362 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400363 { BITS_EOT }
364 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400365 /* if CPUID.0AH: EAX[15:8] > 0 */
Patrick Georgi5c65d002020-01-29 13:45:45 +0100366 {0x186, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERFEVTSEL0",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400367 "Performance Event Select Register 0", {
368 { 63, 32, RESERVED },
369 { 31, 8, "CMASK", "R/W", PRESENT_HEX, {
370 /* When CMASK is not zero, the corresponding performance
371 * counter 0 increments each cycle if the event count
372 * is greater than or equal to the CMASK.
373 */
374 { BITVAL_EOT }
375 }},
376 { 23, 1, "INV", "R/W", PRESENT_BIN, {
377 { MSR1(0), "CMASK using as is" },
378 { MSR1(1), "CMASK inerting" },
379 { BITVAL_EOT }
380 }},
381 { 22, 1, "EN", "R/W", PRESENT_BIN, {
382 { MSR1(0), "No commence counting" },
383 { MSR1(1), "Commence counting" },
384 { BITVAL_EOT }
385 }},
386 { 21, 1, "AnyThread", "R/W", PRESENT_BIN, {
387 { BITVAL_EOT }
388 }},
389 { 20, 1, "INT", "R/W", PRESENT_BIN, {
390 { MSR1(0), "Interrupt on counter overflow is disabled" },
391 { MSR1(1), "Interrupt on counter overflow is enabled" },
392 { BITVAL_EOT }
393 }},
394 { 19, 1, "PC", "R/W", PRESENT_BIN, {
395 { MSR1(0), "Disabled pin control" },
396 { MSR1(1), "Enabled pin control" },
397 { BITVAL_EOT }
398 }},
399 { 18, 1, "Edge", "R/W", PRESENT_BIN, {
400 { MSR1(0), "Disabled edge detection" },
401 { MSR1(1), "Enabled edge detection" },
402 { BITVAL_EOT }
403 }},
404 { 17, 1, "OS", "R/W", PRESENT_BIN, {
405 { MSR1(0), "Nothing" },
406 { MSR1(1), "Counts while in privilege level is ring 0" },
407 { BITVAL_EOT }
408 }},
409 { 16, 1, "USR", "R/W", PRESENT_BIN, {
410 { MSR1(0), "Nothing" },
411 { MSR1(1), "Counts while in privilege level is not ring 0" },
412 { BITVAL_EOT }
413 }},
414 { 15, 8, "UMask", "R/W", PRESENT_HEX, {
415 /* Qualifies the microarchitectural condition
416 * to detect on the selected event logic. */
417 { BITVAL_EOT }
418 }},
419 { 7, 8, "Event Select", "R/W", PRESENT_HEX, {
420 /* Selects a performance event logic unit. */
421 { BITVAL_EOT }
422 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400423 { BITS_EOT }
424 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400425 /* if CPUID.0AH: EAX[15:8] > 0 */
Patrick Georgi5c65d002020-01-29 13:45:45 +0100426 {0x187, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERFEVTSEL1",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400427 "Performance Event Select Register 1", {
428 { 63, 32, RESERVED },
429 { 31, 8, "CMASK", "R/W", PRESENT_HEX, {
430 /* When CMASK is not zero, the corresponding performance
431 * counter 1 increments each cycle if the event count
432 * is greater than or equal to the CMASK.
433 */
434 { BITVAL_EOT }
435 }},
436 { 23, 1, "INV", "R/W", PRESENT_BIN, {
437 { MSR1(0), "CMASK using as is" },
438 { MSR1(1), "CMASK inerting" },
439 { BITVAL_EOT }
440 }},
441 { 22, 1, "EN", "R/W", PRESENT_BIN, {
442 { MSR1(0), "No commence counting" },
443 { MSR1(1), "Commence counting" },
444 { BITVAL_EOT }
445 }},
446 { 21, 1, "AnyThread", "R/W", PRESENT_BIN, {
447 { BITVAL_EOT }
448 }},
449 { 20, 1, "INT", "R/W", PRESENT_BIN, {
450 { MSR1(0), "Interrupt on counter overflow is disabled" },
451 { MSR1(1), "Interrupt on counter overflow is enabled" },
452 { BITVAL_EOT }
453 }},
454 { 19, 1, "PC", "R/W", PRESENT_BIN, {
455 { MSR1(0), "Disabled pin control" },
456 { MSR1(1), "Enabled pin control" },
457 { BITVAL_EOT }
458 }},
459 { 18, 1, "Edge", "R/W", PRESENT_BIN, {
460 { MSR1(0), "Disabled edge detection" },
461 { MSR1(1), "Enabled edge detection" },
462 { BITVAL_EOT }
463 }},
464 { 17, 1, "OS", "R/W", PRESENT_BIN, {
465 { MSR1(0), "Nothing" },
466 { MSR1(1), "Counts while in privilege level is ring 0" },
467 { BITVAL_EOT }
468 }},
469 { 16, 1, "USR", "R/W", PRESENT_BIN, {
470 { MSR1(0), "Nothing" },
471 { MSR1(1), "Counts while in privilege level is not ring 0" },
472 { BITVAL_EOT }
473 }},
474 { 15, 8, "UMask", "R/W", PRESENT_HEX, {
475 /* Qualifies the microarchitectural condition
476 * to detect on the selected event logic. */
477 { BITVAL_EOT }
478 }},
479 { 7, 8, "Event Select", "R/W", PRESENT_HEX, {
480 /* Selects a performance event logic unit. */
481 { BITVAL_EOT }
482 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400483 { BITS_EOT }
484 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100485 {0x198, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400486 { BITS_EOT }
487 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100488 {0x199, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400489 { BITS_EOT }
490 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100491 {0x19a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_CLOCK_MODULATION",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400492 "Clock Modulation", {
493 { 63, 59, RESERVED },
494 { 4, 1, "On demand Clock Modulation", "R/W", PRESENT_BIN, {
495 { MSR1(0), "On demand Clock Modulation is disabled" },
496 { MSR1(1), "On demand Clock Modulation is enabled" },
497 { BITVAL_EOT }
498 }},
499 { 3, 3, "On demand Clock Modulation Duty Cycle", "R/W", PRESENT_HEX, {
500 { BITVAL_EOT }
501 }},
502 { 0, 1, RESERVED },
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400503 { BITS_EOT }
504 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100505 {0x19b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_THERM_INTERRUPT",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400506 "Thermal Interrupt Control", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400507 { BITS_EOT }
508 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100509 {0x19c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_THERM_STATUS",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400510 "Thermal Monitor Status", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400511 { BITS_EOT }
512 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100513 {0x19d, MSRTYPE_RDWR, MSR2(0, 0), "MSR_THERM2_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400514 { BITS_EOT }
515 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100516 {0x1a0, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MISC_ENABLE",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400517 "Enable miscellaneous processor features", {
518 { 63, 24, RESERVED },
519 { 39, 1, "IP Prefetcher Disable", "R/W", PRESENT_BIN, {
520 { MSR1(0), "IP Prefetcher enabled" },
521 { MSR1(1), "IP Prefetcher disabled" },
522 { BITVAL_EOT }
523 }},
524 /* Note: [38] bit using for whole package,
525 * while some other bits can be Core or Thread
526 * specific.
527 */
528 { 38, 1, "IDA Disable", "R/W", PRESENT_BIN, {
529 /* When set to a 0 on processors that support IDA,
530 * CPUID.06H: EAX[1] reports the processor's
531 * support of turbo mode is enabled.
532 */
533 { MSR1(0), "IDA enabled" },
534 /* When set 1 on processors that support Intel Turbo Boost
535 * technology, the turbo mode feature is disabled and
536 * the IDA_Enable feature flag will be clear (CPUID.06H: EAX[1]=0).
537 */
538 { MSR1(1), "IDA disabled" },
539 { BITVAL_EOT }
540 /* Note: the power-on default value is used by BIOS to detect
541 * hardware support of turbo mode. If power-on default value is 1,
542 * turbo mode is available in the processor. If power-on default
543 * value is 0, turbo mode not available.
544 */
545 }},
546 { 37, 1, "DCU Prefetcher Disable", "R/W", PRESENT_BIN, {
547 { MSR1(0), "DCU L1 data cache prefetcher is enabled" },
548 { MSR1(1), "DCU L1 data cache prefetcher is disabled" },
549 { BITVAL_EOT }
550 }},
551 { 36, 2, RESERVED },
552 { 34, 1, "XD Bit Disable", "R/W", PRESENT_BIN, {
553 { BITVAL_EOT }
554 }},
555 { 33, 10, RESERVED },
556 { 23, 1, "xTPR Message Disable", "R/W", PRESENT_BIN, {
557 { BITVAL_EOT }
558 }},
559 { 22, 1, "Limit CPUID Maxval", "R/W", PRESENT_BIN, {
560 { BITVAL_EOT }
561 }},
562 { 21, 1, RESERVED },
563 { 20, 1, "Enhanced Intel SpeedStep Select Lock", "R/W",
564 PRESENT_BIN, {
Patrick Georgi5c65d002020-01-29 13:45:45 +0100565 { MSR1(0), "Enhanced Intel SpeedStep Select "
566 "and Enable bits are writeable" },
567 { MSR1(1), "Enhanced Intel SpeedStep Select "
568 "and Enable bits are locked and R/O" },
Anton Kochkovdd678a22012-07-04 07:39:07 +0400569 { BITVAL_EOT }
570 }},
571 { 19, 1, "Adjacent Cache Line Prefetch Disable", "R/W",
572 PRESENT_BIN, {
Patrick Georgi5c65d002020-01-29 13:45:45 +0100573 { MSR1(0), "Fetching cache lines that comprise a cache "
574 "line pair (128 bytes)" },
575 { MSR1(1), "Fetching cache line that contains data "
576 "currently required by the processor" },
Anton Kochkovdd678a22012-07-04 07:39:07 +0400577 { BITVAL_EOT }
578 }},
579 { 18, 1, "Enable Monitor FSM", "R/W", PRESENT_BIN, {
580 { BITVAL_EOT }
581 }},
582 { 17, 1, "UNDOCUMENTED", "R/W", PRESENT_BIN, {
583 { BITVAL_EOT }
584 }},
585 /* Note: [16] bit using for whole package,
586 * while some other bits can be Core or Thread
587 * specific.
588 */
589 { 16, 1, "Enhanced Intel SpeedStep Technology Enable", "R/W",
590 PRESENT_BIN, {
591 { BITVAL_EOT }
592 }},
593 { 15, 2, RESERVED },
594 { 13, 1, "TM2 Enable", "R/W", PRESENT_BIN, {
595 { BITVAL_EOT }
596 }},
597 { 12, 1, "Precise Event Based Sampling Unavailable", "R/O",
598 PRESENT_BIN, {
599 { BITVAL_EOT }
600 }},
601 { 11, 1, "Branch Trace Storage Unavailable", "R/O", PRESENT_BIN, {
602 { BITVAL_EOT }
603 }},
604 { 10, 1, "FERR# Multiplexing Enable", "R/W", PRESENT_BIN, {
605 { MSR1(0), "FERR# signaling compatible behaviour" },
Patrick Georgi5c65d002020-01-29 13:45:45 +0100606 { MSR1(1), "FERR# asserted by the processor to indicate "
607 "a pending break event within the processor" },
Anton Kochkovdd678a22012-07-04 07:39:07 +0400608 { BITVAL_EOT }
609 }},
610 { 9, 1, "Hardware Prefetcher Disable", "R/W", PRESENT_BIN, {
611 { MSR1(0), "Hardware prefetcher is enabled" },
612 { MSR1(1), "Hardware prefetcher is disabled" },
613 { BITVAL_EOT }
614 }},
615 { 8, 1, RESERVED },
616 { 7, 1, "Performance Monitoring Available", "R", PRESENT_BIN, {
617 { BITVAL_EOT }
618 }},
619 { 6, 3, RESERVED },
620 { 3, 1, "Automatic Thermal Control Circuit Enable", "R/W"
621 , PRESENT_BIN, {
622 { BITVAL_EOT }
623 }},
624 { 2, 2, RESERVED },
625 { 0, 1, "Fast-Strings Enable", "R/W", PRESENT_BIN, {
626 { BITVAL_EOT }
627 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400628 { BITS_EOT }
629 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100630 {0x1c9, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LASTBRANCH_TOS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400631 { BITS_EOT }
632 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100633 {0x1d9, MSRTYPE_RDWR, MSR2(0, 0), "IA32_DEBUGCTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400634 { BITS_EOT }
635 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100636 {0x1dd, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LER_FROM_LIP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400637 { BITS_EOT }
638 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100639 {0x1de, MSRTYPE_RDWR, MSR2(0, 0), "MSR_LER_TO_LIP", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400640 { BITS_EOT }
641 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100642 {0x200, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_BASE0", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400643 { BITS_EOT }
644 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100645 {0x201, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_MASK0", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400646 { BITS_EOT }
647 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100648 {0x202, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_BASE1", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400649 { BITS_EOT }
650 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100651 {0x203, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_MASK1", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400652 { BITS_EOT }
653 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100654 {0x204, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_BASE2", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400655 { BITS_EOT }
656 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100657 {0x205, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_MASK2", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400658 { BITS_EOT }
659 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100660 {0x206, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_BASE3", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400661 { BITS_EOT }
662 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100663 {0x207, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_MASK3", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400664 { BITS_EOT }
665 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100666 {0x208, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_BASE4", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400667 { BITS_EOT }
668 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100669 {0x209, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_MASK4", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400670 { BITS_EOT }
671 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100672 {0x20a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_BASE5", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400673 { BITS_EOT }
674 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100675 {0x20b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_MASK5", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400676 { BITS_EOT }
677 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100678 {0x20c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_BASE6", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400679 { BITS_EOT }
680 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100681 {0x20d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_MASK6", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400682 { BITS_EOT }
683 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100684 {0x20e, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_BASE7", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400685 { BITS_EOT }
686 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100687 {0x20f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_PHYS_MASK7", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400688 { BITS_EOT }
689 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100690 {0x250, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX64K_00000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400691 { BITS_EOT }
692 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100693 {0x258, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX16K_80000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400694 { BITS_EOT }
695 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100696 {0x259, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX16K_A0000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400697 { BITS_EOT }
698 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100699 {0x268, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_C0000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400700 { BITS_EOT }
701 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100702 {0x269, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_C8000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400703 { BITS_EOT }
704 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100705 {0x26a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_D0000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400706 { BITS_EOT }
707 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100708 {0x26b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_D8000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400709 { BITS_EOT }
710 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100711 {0x26c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_E0000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400712 { BITS_EOT }
713 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100714 {0x26d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_E8000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400715 { BITS_EOT }
716 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100717 {0x26e, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_F0000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400718 { BITS_EOT }
719 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100720 {0x26f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_FIX4K_F8000", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400721 { BITS_EOT }
722 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100723 {0x277, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PAT", "IA32_PAT", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400724 { 63, 5, RESERVED },
725 { 58, 3, "PA7", "R/W", PRESENT_BIN, {
726 { BITVAL_EOT }
727 }},
728 { 55, 5, RESERVED },
729 { 40, 3, "PA6", "R/W", PRESENT_BIN, {
730 { BITVAL_EOT }
731 }},
732 { 47, 5, RESERVED },
733 { 42, 3, "PA5", "R/W", PRESENT_BIN, {
734 { BITVAL_EOT }
735 }},
736 { 39, 5, RESERVED },
737 { 34, 3, "PA4", "R/W", PRESENT_BIN, {
738 { BITVAL_EOT }
739 }},
740 { 31, 5, RESERVED },
741 { 26, 3, "PA3", "R/W", PRESENT_BIN, {
742 { BITVAL_EOT }
743 }},
744 { 23, 5, RESERVED },
745 { 18, 3, "PA2", "R/W", PRESENT_BIN, {
746 { BITVAL_EOT }
747 }},
748 { 15, 5, RESERVED },
749 { 10, 3, "PA1", "R/W", PRESENT_BIN, {
750 { BITVAL_EOT }
751 }},
752 { 7, 5, RESERVED },
753 { 2, 3, "PA0", "R/W", PRESENT_BIN, {
754 { BITVAL_EOT }
755 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400756 { BITS_EOT }
757 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100758 {0x2ff, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MTRR_DEF_TYPE",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400759 "Default Memory Types", {
760 { 63, 52, RESERVED },
761 { 11, 1, "MTRR Enable", "R/W", PRESENT_BIN, {
762 { BITVAL_EOT }
763 }},
764 { 10, 1, "Fixed Range MTRR Enable", "R/W", PRESENT_BIN, {
765 { BITVAL_EOT }
766 }},
767 { 9, 7, RESERVED },
768 { 2, 3, "Default Memory Type", "R/W", PRESENT_HEX, {
769 { BITVAL_EOT }
770 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400771 { BITS_EOT }
772 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400773 /* if CPUID.0AH: EDX[4:0] > 0 */
Patrick Georgi5c65d002020-01-29 13:45:45 +0100774 {0x309, MSRTYPE_RDWR, MSR2(0, 0), "IA32_FIXED_CTR0", "Fixed-Function "
775 "Performance Counter Register 0: Counts Instr_Retired.Any", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400776 /* Also known as MSR_PERF_FIXED_CTR0 */
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400777 { BITS_EOT }
778 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400779 /* if CPUID.0AH: EDX[4:0] > 1 */
Patrick Georgi5c65d002020-01-29 13:45:45 +0100780 {0x30a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_FIXED_CTR1", "Fixed-Function "
781 "Performance Counter Register 1: Counts CPU_CLK_Unhalted.Core ", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400782 /* Also known as MSR_PERF_FIXED_CTR1 */
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400783 { BITS_EOT }
784 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400785 /* if CPUID.0AH: EDX[4:0] > 2 */
Patrick Georgi5c65d002020-01-29 13:45:45 +0100786 {0x30b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_FIXED_CTR2", "Fixed-Function "
787 "Performance Counter Register 2: Counts CPU_CLK_Unhalted.Ref", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400788 /* Also known as MSR_PERF_FIXED_CTR2 */
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400789 { BITS_EOT }
790 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +0100791 {0x345, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_PERF_CAPABILITIES", "", {
Anton Kochkovdd678a22012-07-04 07:39:07 +0400792 /* Additional info available at Section 17.4.1 of
Patrick Georgifbbef022020-01-29 13:31:16 +0100793 * Intel 64 and IA-32 Architectures Software Developer's
Anton Kochkovdd678a22012-07-04 07:39:07 +0400794 * Manual, Volume 3.
795 */
796 { 63, 56, RESERVED },
797 { 7, 1, "PEBSSaveArchRegs", "R/O", PRESENT_BIN, {
798 { BITVAL_EOT }
799 }},
800 { 6, 1, "PEBS Record Format", "R/O", PRESENT_BIN, {
801 { BITVAL_EOT }
802 }},
803 { 5, 6, "LBR Format", "R/O", PRESENT_HEX, {
804 { BITVAL_EOT }
805 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400806 { BITS_EOT }
807 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400808 /* if CPUID.0AH: EAX[7:0] > 1*/
Patrick Georgi5c65d002020-01-29 13:45:45 +0100809 {0x38d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_FIXED_CTR_CTRL",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400810 "Fixed-Function-Counter Control Register", {
811 /* Also known as MSR_PERF_FIXED_CTR_CTRL.
812 * Counter increments while the results of ANDing respective enable bit
813 * in IA32_PERF_GLOBAL_CTRL with the corresponding OS or USR bits
814 * in this MSR is true. */
815 { 63, 52, RESERVED },
816 { 11, 1, "EN2_PMI", "R/W", PRESENT_BIN, {
817 { MSR1(0), "Nothing" },
818 { MSR1(1), "PMI when fixed counter 2 overflows is enabled" },
819 { BITVAL_EOT }
820 }},
821 /* if CPUID.0AH EAX[7:0] > 2 */
822 { 10, 1, "AnyThread 2", "R/W", PRESENT_BIN, {
Patrick Georgi5c65d002020-01-29 13:45:45 +0100823 { MSR1(0), "Counter only increments the associated event "
824 "conditions occurring in the logical processor "
825 "which programmed the MSR" },
826 { MSR1(1), "Counting the associated event conditions "
827 "occurring across all logical processors sharing "
828 "a processor core" },
Anton Kochkovdd678a22012-07-04 07:39:07 +0400829 { BITVAL_EOT }
830 }},
831 { 9, 1, "EN2_Usr", "R/W", PRESENT_BIN, {
832 { MSR1(0), "Nothing" },
833 { MSR1(1), "Fixed counter 2 is enabled to count while CPL > 0" },
834 { BITVAL_EOT }
835 }},
836 { 8, 1, "EN2_OS", "R/W", PRESENT_BIN, {
837 { MSR1(0), "Nothing" },
838 { MSR1(1), "Fixed counter 2 is enabled to count while CPL = 0" },
839 { BITVAL_EOT }
840 }},
841 { 7, 1, "EN1_PMI", "R/W", PRESENT_BIN, {
842 { MSR1(0), "Nothing" },
843 { MSR1(1), "PMI when fixed counter 1 overflows is enabled" },
844 { BITVAL_EOT }
845 }},
846 /* if CPUID.0AH: EAX[7:0] > 2 */
847 { 6, 1, "AnyThread 1", "R/W", PRESENT_BIN, {
Patrick Georgi5c65d002020-01-29 13:45:45 +0100848 { MSR1(0), "Counter only increments the associated event "
849 "conditions occurring in the logical processor "
850 "which programmed the MSR" },
851 { MSR1(1), "Counting the associated event conditions "
852 "occurring across all logical processors sharing "
853 "a processor core" },
Anton Kochkovdd678a22012-07-04 07:39:07 +0400854 { BITVAL_EOT }
855 }},
856 { 5, 1, "EN1_Usr", "R/W", PRESENT_BIN, {
857 { MSR1(0), "Nothing" },
858 { MSR1(1), "Fixed counter 1 is enabled to count while CPL > 0" },
859 { BITVAL_EOT }
860 }},
861 { 4, 1, "EN1_OS", "R/W", PRESENT_BIN, {
862 { MSR1(0), "Nothing" },
863 { MSR1(1), "Fixed counter 1 is enabled to count while CPL = 0" },
864 { BITVAL_EOT }
865 }},
866 { 3, 1, "EN0_PMI", "R/W", PRESENT_BIN, {
867 { MSR1(0), "Nothing" },
868 { MSR1(1), "PMI when fixed counter 0 overflows is enabled" },
869 { BITVAL_EOT }
870 }},
871 /* if CPUID.0AH: EAX[7:0] > 2 */
872 { 2, 1, "AnyThread 0", "R/W", PRESENT_BIN, {
Patrick Georgi5c65d002020-01-29 13:45:45 +0100873 { MSR1(0), "Counter only increments the associated event "
874 "conditions occurring in the logical processor "
875 "which programmed the MSR" },
876 { MSR1(1), "Counting the associated event conditions "
877 "occurring across all logical processors sharing "
878 "a processor core" },
Anton Kochkovdd678a22012-07-04 07:39:07 +0400879 { BITVAL_EOT }
880 }},
881 { 1, 1, "EN0_Usr", "R/W", PRESENT_BIN, {
882 { MSR1(0), "Nothing" },
883 { MSR1(1), "Fixed counter 0 is enabled to count while CPL > 0" },
884 { BITVAL_EOT }
885 }},
886 { 0, 1, "EN0_OS", "R/W", PRESENT_BIN, {
887 { MSR1(0), "Nothing" },
888 { MSR1(1), "Fixed counter 0 is enabled to count while CPL = 0" },
889 { BITVAL_EOT }
890 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400891 { BITS_EOT }
892 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400893 /* if CPUID.0AH: EAX[7:0] > 0 */
Patrick Georgi5c65d002020-01-29 13:45:45 +0100894 {0x38e, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_PERF_GLOBAL_STATUS",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400895 "Global Performance Counter Status", {
896 /* Also known as MSR_PERF_GLOBAL_STATUS */
897 /* if CPUID.0AH: EAX[7:0] > 0 */
898 { 63, 1, "CondChg: Status bits of this register has changed",
899 "R/O", PRESENT_BIN, {
900 { BITVAL_EOT }
901 }},
902 /* if CPUID.0AH: EAX[7:0] > 0 */
903 { 62, 1, "OvfBuf: DS SAVE area Buffer overflow status",
904 "R/O", PRESENT_BIN, {
905 { BITVAL_EOT }
906 }},
907 /* if CPUID.0AH: EAX[7:0] > 2 */
908 { 61, 1, "Ovf_Uncore: Uncore counter overflow status",
909 "R/O", PRESENT_BIN, {
910 { BITVAL_EOT }
911 }},
912 { 60, 26, RESERVED },
913 /* if CPUID.0AH: EAX[7:0] > 1 */
914 { 34, 1, "Ovf_FixedCtr2: Overflow status of IA32_FIXED_CTR2",
915 "R/O", PRESENT_BIN, {
916 { BITVAL_EOT }
917 }},
918 /* if CPUID.0AH: EAX[7:0] > 1 */
919 { 33, 1, "Ovf_FixedCtr1: Overflow status of IA32_FIXED_CTR1",
920 "R/O", PRESENT_BIN, {
921 { BITVAL_EOT }
922 }},
923 /* if CPUID.0AH: EAX[7:0] > 1 */
924 { 32, 1, "Ovf_FixedCtr0: Overflow status of IA32_FIXED_CTR0",
925 "R/O", PRESENT_BIN, {
926 { BITVAL_EOT }
927 }},
928 { 31, 28, RESERVED },
929 /* presented only in 06_2EH Nehalem model */
930 { 3, 1, "Ovf_PMC3: Overflow status of IA32_PMC3", "R/O", PRESENT_BIN, {
931 { BITVAL_EOT }
932 }},
933 /* presented only in 06_2EH Nehalem model */
934 { 2, 1, "Ovf_PMC2: Overflow status of IA32_PMC2", "R/O", PRESENT_BIN, {
935 { BITVAL_EOT }
936 }},
937 /* if CPUID.0AH: EAX[7:0] > 0 */
938 { 1, 1, "Ovf_PMC1: Overflow status of IA32_PMC1", "R/O", PRESENT_BIN, {
939 { BITVAL_EOT }
940 }},
941 /* if CPUID.0AH: EAX[7:0] > 0 */
942 { 0, 1, "Ovf_PMC0: Overflow status of IA32_PMC0", "R/O", PRESENT_BIN, {
943 { BITVAL_EOT }
944 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400945 { BITS_EOT }
946 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400947 /* if CPUID.0AH: EAX[7:0] > 0 */
Patrick Georgi5c65d002020-01-29 13:45:45 +0100948 {0x38f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_GLOBAL_CTL",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400949 "Global Performance Counter Control", {
950 /* Counter increments while the result of ANDing respective
951 * enable bit in this MSR with corresponding OS or USR bits
952 * in general-purpose or fixed counter control MSR is true.
953 */
954 { 63, 29, RESERVED },
955 /* if CPUID.0AH: EAX[7:0] > 1 */
956 { 34, 1, "EN_FIXED_CTR2", "R/W", PRESENT_BIN, {
957 { BITVAL_EOT }
958 }},
959 /* if CPUID.0AH: EAX[7:0] > 1 */
960 { 33, 1, "EN_FIXED_CTR1", "R/W", PRESENT_BIN, {
961 { BITVAL_EOT }
962 }},
963 /* if CPUID.0AH: EAX[7:0] > 1 */
964 { 32, 1, "EN_FIXED_CTR0", "R/W", PRESENT_BIN, {
965 { BITVAL_EOT }
966 }},
967 { 31, 30, RESERVED },
968 /* if CPUID.0AH: EAX[7:0] > 0 */
969 { 1, 1, "EN_PMC1", "R/W", PRESENT_BIN, {
970 { BITVAL_EOT }
971 }},
972 /* if CPUID.0AH: EAX[7:0] > 0 */
973 { 0, 1, "EN_PMC0", "R/W", PRESENT_BIN, {
974 { BITVAL_EOT }
975 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +0400976 { BITS_EOT }
977 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +0400978 /* if CPUID.0AH: EAX[7:0] > 0 */
Patrick Georgi5c65d002020-01-29 13:45:45 +0100979 {0x390, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PERF_GLOBAL_OVF_CTL",
Anton Kochkovdd678a22012-07-04 07:39:07 +0400980 "Global Performance Counter Overflow Control", {
981 /* if CPUID.0AH: EAX[7:0] > 0 */
982 { 63, 1, "Clear CondChg bit", "R/W", PRESENT_BIN, {
983 { BITVAL_EOT }
984 }},
985 /* if CPUID.0AH: EAX[7:0] > 0 */
986 { 62, 1, "Clear OvfBuf bit", "R/W", PRESENT_BIN, {
987 { BITVAL_EOT }
988 }},
989 /* Presented only in 06_2EH Nehalem model */
990 { 61, 1, "Clear Ovf_Uncore bit", "R/W", PRESENT_BIN, {
991 { BITVAL_EOT }
992 }},
993 { 60, 26, RESERVED },
994 /* if CPUID.0AH: EAX[7:0] > 1 */
995 { 34, 1, "Clear Ovf_FIXED_CTR2 bit", "R/W", PRESENT_BIN, {
996 { BITVAL_EOT }
997 }},
998 /* if CPUID.0AH: EAX[7:0] > 1 */
999 { 33, 1, "Clear Ovf_FIXED_CTR1 bit", "R/W", PRESENT_BIN, {
1000 { BITVAL_EOT }
1001 }},
1002 /* if CPUID.0AH: EAX[7:0] > 1 */
1003 { 32, 1, "Clear Ovf_FIXED_CTR0 bit", "R/W", PRESENT_BIN, {
1004 { BITVAL_EOT }
1005 }},
1006 { 31, 30, RESERVED },
1007 /* if CPUID.0AH: EAX[7:0] > 0 */
1008 { 1, 1, "Clear Ovf_PMC1 bit", "R/W", PRESENT_BIN, {
1009 { BITVAL_EOT }
1010 }},
1011 /* if CPUID.0AH: EAX[7:0] > 0 */
1012 { 0, 1, "Clear Ovf_PMC0 bit", "R/W", PRESENT_BIN, {
1013 { BITVAL_EOT }
1014 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001015 { BITS_EOT }
1016 }},
Anton Kochkovdd678a22012-07-04 07:39:07 +04001017 /* See Section 18.6.1.1 of Intel 64 and IA-32 Architectures
1018 * Software Developer's Manual, Volume 3,
1019 * "Precise Event Based Sampling (PEBS)".
1020 */
Patrick Georgi5c65d002020-01-29 13:45:45 +01001021 {0x3f1, MSRTYPE_RDWR, MSR2(0, 0), "IA32_PEBS_ENABLE", "PEBS Control", {
Anton Kochkovdd678a22012-07-04 07:39:07 +04001022 { 63, 28, RESERVED },
1023 { 35, 1, "Load Latency on IA32_PMC3", "R/W", PRESENT_BIN, {
1024 { MSR1(0), "Disabled" },
1025 { MSR1(1), "Enabled" },
1026 { BITVAL_EOT }
1027 }},
1028 { 34, 1, "Load Latency on IA32_PMC2", "R/W", PRESENT_BIN, {
1029 { MSR1(0), "Disabled" },
1030 { MSR1(1), "Enabled" },
1031 { BITVAL_EOT }
1032 }},
1033 { 33, 1, "Load Latency on IA32_PMC1", "R/W", PRESENT_BIN, {
1034 { MSR1(0), "Disabled" },
1035 { MSR1(1), "Enabled" },
1036 { BITVAL_EOT }
1037 }},
1038 { 32, 1, "Load Latency on IA32_PMC0", "R/W", PRESENT_BIN, {
1039 { MSR1(0), "Disabled" },
1040 { MSR1(1), "Enabled" },
1041 { BITVAL_EOT }
1042 }},
1043 { 31, 28, RESERVED },
1044 { 3, 1, "PEBS on IA32_PMC3", "R/W", PRESENT_BIN, {
1045 { MSR1(0), "Disabled" },
1046 { MSR1(1), "Enabled" },
1047 { BITVAL_EOT }
1048 }},
1049 { 2, 1, "PEBS on IA32_PMC2", "R/W", PRESENT_BIN, {
1050 { MSR1(0), "Disabled" },
1051 { MSR1(1), "Enabled" },
1052 { BITVAL_EOT }
1053 }},
1054 { 1, 1, "PEBS on IA32_PMC1", "R/W", PRESENT_BIN, {
1055 { MSR1(0), "Disabled" },
1056 { MSR1(1), "Enabled" },
1057 { BITVAL_EOT }
1058 }},
1059 { 0, 1, "PEBS on IA32_PMC0", "R/W", PRESENT_BIN, {
1060 { MSR1(0), "Disabled" },
1061 { MSR1(1), "Enabled" },
1062 { BITVAL_EOT }
1063 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001064 { BITS_EOT }
1065 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001066 {0x400, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC0_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001067 { BITS_EOT }
1068 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001069 {0x401, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC0_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001070 { BITS_EOT }
1071 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001072 {0x402, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC0_ADDR", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001073 { BITS_EOT }
1074 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001075 {0x403, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC0_MISC", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001076 { BITS_EOT }
1077 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001078 {0x404, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC1_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001079 { BITS_EOT }
1080 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001081 {0x405, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC1_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001082 { BITS_EOT }
1083 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001084 {0x406, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC1_ADDR", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001085 { BITS_EOT }
1086 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001087 {0x407, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC1_MISC", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001088 { BITS_EOT }
1089 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001090 {0x408, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC2_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001091 { BITS_EOT }
1092 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001093 {0x409, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC2_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001094 { BITS_EOT }
1095 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001096 {0x40a, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC2_ADDR", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001097 { BITS_EOT }
1098 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001099 {0x40b, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC2_MISC", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001100 { BITS_EOT }
1101 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001102 {0x40c, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC3_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001103 { BITS_EOT }
1104 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001105 {0x40d, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC3_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001106 { BITS_EOT }
1107 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001108 {0x40e, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC3_ADDR", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001109 { BITS_EOT }
1110 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001111 {0x40f, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC3_MISC", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001112 { BITS_EOT }
1113 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001114 {0x410, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC4_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001115 { BITS_EOT }
1116 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001117 {0x411, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC4_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001118 { BITS_EOT }
1119 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001120 {0x412, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC4_ADDR", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001121 { BITS_EOT }
1122 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001123 {0x413, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC4_MISC", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001124 { BITS_EOT }
1125 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001126 {0x414, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC5_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001127 { BITS_EOT }
1128 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001129 {0x415, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC5_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001130 { BITS_EOT }
1131 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001132 {0x416, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC5_ADDR", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001133 { BITS_EOT }
1134 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001135 {0x417, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC5_MISC", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001136 { BITS_EOT }
1137 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001138 {0x418, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC6_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001139 { BITS_EOT }
1140 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001141 {0x419, MSRTYPE_RDWR, MSR2(0, 0), "IA32_MC6_STATUS", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001142 { BITS_EOT }
1143 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001144 {0x480, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_BASIC",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001145 "Reporting Register of Basic VMX Capabilities", {
1146 /* Additional info available at
1147 * Appendix A.1, "Basic VMX Information" */
1148 { 63, 10, RESERVED },
1149 { 53, 4, "Memory type for VMREAD and VMWRITE", "R/O", PRESENT_HEX, {
1150 { BITVAL_EOT }
1151 }},
1152 { 49, 1, "Support of dual-treatment of system-management functions",
1153 "R/O", PRESENT_BIN, {
1154 { BITVAL_EOT }
1155 }},
1156 { 48, 1, "Enable full linear address access", "R/O", PRESENT_BIN, {
1157 { BITVAL_EOT }
1158 }},
1159 { 47, 3, RESERVED },
1160 { 44, 13, "VMXON region allocation size", "R/O", PRESENT_DEC, {
1161 { BITVAL_EOT }
1162 }},
1163 { 31, 32, "VMCS Revision Identifier", "R/O", PRESENT_HEX, {
1164 { BITVAL_EOT }
1165 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001166 { BITS_EOT }
1167 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001168 {0x481, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_PINBASED_CTLS",
1169 "Capability Reporting Register of "
1170 "Pin-based VM-execution Controls", {
Anton Kochkovdd678a22012-07-04 07:39:07 +04001171 /* Additional info available at Appendix A.3,
1172 * "VM-Execution Controls" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001173 { BITS_EOT }
1174 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001175 {0x482, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_PROCBASED_CTLS",
1176 "Capability Reporting Register of "
1177 "Primary Processor-based VM-execution Controls", {
Anton Kochkovdd678a22012-07-04 07:39:07 +04001178 /* Additional info available at Appendix A.3,
1179 * "VM-Execution Controls" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001180 { BITS_EOT }
1181 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001182 {0x483, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_EXIT_CTLS",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001183 "Capability Reporting Register of VM-exit Controls", {
1184 /* Additional info available at Appendix A.4,
1185 * "VM-Exit Controls" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001186 { BITS_EOT }
1187 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001188 {0x484, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_ENTRY_CTLS",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001189 "Capability Reporting Register of VM-entry Controls", {
1190 /* Additional info available at Appendix A.5,
1191 * "VM-Entry Controls" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001192 { BITS_EOT }
1193 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001194 {0x485, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_MISC",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001195 "Reporting Register of Miscellaneous VMX Capabilities", {
1196 /* Additional info available at Appendix A.6,
1197 * "Miscellaneous Data" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001198 { BITS_EOT }
1199 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001200 {0x486, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_CR0_FIXED0",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001201 "Capability Reporting Register of CR0 Bits Fixed to 0", {
1202 /* Additional info available at Appendix A.7,
1203 * "VMX-Fixed Bits in CR0" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001204 { BITS_EOT }
1205 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001206 {0x487, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_CR0_FIXED1",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001207 "Capability Reporting Register of CR0 Bits Fixed to 1", {
1208 /* Additional info available at Appendix A.7,
1209 * "VMX-Fixed Bits in CR0" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001210 { BITS_EOT }
1211 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001212 {0x488, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_CR4_FIXED0",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001213 "Capability Reporting Register of CR4 Bits Fixed to 0", {
1214 /* Additional info available at Appendix A.8,
1215 * "VMX-Fixed Bits in CR4" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001216 { BITS_EOT }
1217 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001218 {0x489, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_CR4_FIXED1",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001219 "Capability Reporting Register of CR4 Bits Fixed to 1", {
1220 /* Additional info available at Appendix A.8,
1221 * "VMX-Fixed Bits in CR4" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001222 { BITS_EOT }
1223 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001224 {0x48a, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_VMCS_ENUM",
Anton Kochkovdd678a22012-07-04 07:39:07 +04001225 "Capability Reporting Register of VMCS Field Enumeration", {
1226 /* Additional info available at Appendix A.9,
1227 * "VMCS Enumeration" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001228 { BITS_EOT }
1229 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001230 {0x48b, MSRTYPE_RDONLY, MSR2(0, 0), "IA32_VMX_PROCBASED_CTLS2",
1231 "Capability Reporting Register of Secondary "
1232 "Processor-based VM-execution Controls", {
Anton Kochkovdd678a22012-07-04 07:39:07 +04001233 /* Additional info available at Appendix A.3,
1234 * "VM-Execution Controls" */
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001235 { BITS_EOT }
1236 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001237 {0x600, MSRTYPE_RDWR, MSR2(0, 0), "IA32_DS_AREA", "DS Save Area", {
Anton Kochkovdd678a22012-07-04 07:39:07 +04001238 /* Additional info available at Section 18.10.4 of Intel 64
1239 * and IA-32 Architectures Software Developer's Manual,
1240 * "Debug Store (DS) Mechanism".
1241 */
1242 { 63, 32, RESERVED }, // reserved if not in IA-32e mode
1243 { 31, 32, "Linear address of DS buffer management area",
1244 "R/W", PRESENT_HEX, {
1245 { BITVAL_EOT }
1246 }},
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001247 { BITS_EOT }
1248 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001249 {0x107cc, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_CTR_CTL0", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001250 { BITS_EOT }
1251 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001252 {0x107cd, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_CTR_CTL1", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001253 { BITS_EOT }
1254 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001255 {0x107ce, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_CTR_CTL2", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001256 { BITS_EOT }
1257 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001258 {0x107cf, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_CTR_CTL3", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001259 { BITS_EOT }
1260 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001261 {0x107d0, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_CTR_CTL4", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001262 { BITS_EOT }
1263 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001264 {0x107d1, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_CTR_CTL5", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001265 { BITS_EOT }
1266 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001267 {0x107d2, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_CTR_CTL6", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001268 { BITS_EOT }
1269 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001270 {0x107d3, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_CTR_CTL7", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001271 { BITS_EOT }
1272 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001273 {0x107d8, MSRTYPE_RDWR, MSR2(0, 0), "MSR_EMON_L3_GL_CTL", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001274 { BITS_EOT }
1275 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001276 {0xc0000080, MSRTYPE_RDWR, MSR2(0, 0), "IA32_EFER", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001277 { BITS_EOT }
1278 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001279 {0xc0000081, MSRTYPE_RDWR, MSR2(0, 0), "IA32_STAR", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001280 { BITS_EOT }
1281 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001282 {0xc0000082, MSRTYPE_RDWR, MSR2(0, 0), "IA32_LSTAR", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001283 { BITS_EOT }
1284 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001285 {0xc0000084, MSRTYPE_RDWR, MSR2(0, 0), "IA32_FMASK", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001286 { BITS_EOT }
1287 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001288 {0xc0000100, MSRTYPE_RDWR, MSR2(0, 0), "IA32_FS_BASE", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001289 { BITS_EOT }
1290 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001291 {0xc0000101, MSRTYPE_RDWR, MSR2(0, 0), "IA32_GS_BASE", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001292 { BITS_EOT }
1293 }},
Patrick Georgi5c65d002020-01-29 13:45:45 +01001294 {0xc0000102, MSRTYPE_RDWR, MSR2(0, 0), "IA32_KERNEL_GS_BASE", "", {
Anton Kochkov7c634ae2011-06-20 23:14:22 +04001295 { BITS_EOT }
1296 }},
1297 { MSR_EOT }
1298};