Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of msrtool. |
| 3 | * |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 4 | * Copyright (C) 2013 Anton Kochkov <anton.kochkov@gmail.com> |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 5 | * |
| 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #include "msrtool.h" |
| 17 | |
Anton Kochkov | 59b36f1 | 2012-07-21 07:29:48 +0400 | [diff] [blame] | 18 | int intel_core2_later_probe(const struct targetdef *target, const struct cpuid_t *id) { |
Lubomir Rintel | 199a23c | 2017-01-22 22:19:24 +0100 | [diff] [blame] | 19 | return ((VENDOR_INTEL == id->vendor) && |
| 20 | (0x6 == id->family) && |
| 21 | (0x17 == id->model)); |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 22 | } |
| 23 | |
| 24 | const struct msrdef intel_core2_later_msrs[] = { |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 25 | {0x17, MSRTYPE_RDWR, MSR2(0,0), "IA32_PLATFORM_ID Register", |
| 26 | "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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 29 | { 63, 11, RESERVED }, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 30 | { 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 41 | { 49, 37, RESERVED }, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 42 | { 12, 5, "Maximum Qualified Ratio:", "The maximum allowed bus ratio", |
| 43 | PRESENT_DEC, { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 44 | { BITVAL_EOT } |
| 45 | }}, |
| 46 | { 7, 8, RESERVED }, |
| 47 | { BITS_EOT } |
| 48 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 49 | { 0x2a, MSRTYPE_RDWR, MSR2(0,0), "MSR_EBL_CR_POWERON Register", |
| 50 | "Processor Hard Power-On Configuration", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 51 | { 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 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 128 | {0xcd, MSRTYPE_RDONLY, MSR2(0,0), "MSR_FSB_FREQ", "Scaleable Bus Speed", { |
| 129 | /* This field indicates the intended scaleable bus clock speed */ |
| 130 | { 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 141 | { BITS_EOT } |
| 142 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 143 | {0x11e, MSRTYPE_RDWR, MSR2(0,0), "MSR_BBL_CR_CTL3", "", { |
| 144 | { 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 165 | { BITS_EOT } |
| 166 | }}, |
| 167 | {0x198, MSRTYPE_RDWR, MSR2(0,0), "IA32_PERF_STATUS", "", { |
| 168 | { BITS_EOT } |
| 169 | }}, |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 170 | |
| 171 | // Per core msrs |
| 172 | |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 173 | {0x0, MSRTYPE_RDWR, MSR2(0,0), "IA32_P5_MC_ADDR", "Pentium Processor\ |
| 174 | Machine-Check Exception Address", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 175 | { BITS_EOT } |
| 176 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 177 | {0x1, MSRTYPE_RDWR, MSR2(0,0), "IA32_P5_MC_TYPE", "Pentium Processor\ |
| 178 | Machine-Check Exception Type", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 179 | { BITS_EOT } |
| 180 | }}, |
| 181 | {0x6, MSRTYPE_RDWR, MSR2(0,0), "IA32_MONITOR_FILTER_SIZE", "", { |
| 182 | { BITS_EOT } |
| 183 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 184 | {0x10, MSRTYPE_RDWR, MSR2(0,0), "IA32_TIME_STEP_COUNTER", "TSC", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 185 | { BITS_EOT } |
| 186 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 187 | {0x1b, MSRTYPE_RDWR, MSR2(0,0), "IA32_APIC_BASE", "APIC BASE", { |
| 188 | /* 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 203 | { BITS_EOT } |
| 204 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 205 | {0x3a, MSRTYPE_RDWR, MSR2(0,0), "IA32_FEATURE_CONTROL", |
| 206 | "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 HAOUAS | 75db5966 | 2018-08-23 18:16:26 +0200 | [diff] [blame] | 235 | * VMX in conjunction with SMX to support Intel |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 236 | * 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 258 | { BITS_EOT } |
| 259 | }}, |
| 260 | {0x40, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_0_FROM_IP", "", { |
| 261 | { BITS_EOT } |
| 262 | }}, |
| 263 | {0x41, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_1_FROM_IP", "", { |
| 264 | { BITS_EOT } |
| 265 | }}, |
| 266 | {0x42, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_2_FROM_IP", "", { |
| 267 | { BITS_EOT } |
| 268 | }}, |
| 269 | {0x43, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_3_FROM_IP", "", { |
| 270 | { BITS_EOT } |
| 271 | }}, |
| 272 | {0x60, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_0_TO_LIP", "", { |
| 273 | { BITS_EOT } |
| 274 | }}, |
| 275 | {0x61, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_1_TO_LIP", "", { |
| 276 | { BITS_EOT } |
| 277 | }}, |
| 278 | {0x62, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_2_TO_LIP", "", { |
| 279 | { BITS_EOT } |
| 280 | }}, |
| 281 | {0x63, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_3_TO_LIP", "", { |
| 282 | { BITS_EOT } |
| 283 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 284 | {0x79, MSRTYPE_RDWR, MSR2(0,0), "IA32_BIOS_UPDT_TRIG", |
| 285 | "BIOS Update Trigger Register (W)", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 286 | { BITS_EOT } |
| 287 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 288 | {0x8b, MSRTYPE_RDWR, MSR2(0,0), "IA32_BIOS_SIGN_ID", |
| 289 | "BIOS Update Signature ID (RO)", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 290 | { BITS_EOT } |
| 291 | }}, |
| 292 | {0xa0, MSRTYPE_RDWR, MSR2(0,0), "MSR_SMRR_PHYS_BASE", "", { |
| 293 | { BITS_EOT } |
| 294 | }}, |
| 295 | {0xa1, MSRTYPE_RDWR, MSR2(0,0), "MSR_SMRR_PHYS_MASK", "", { |
| 296 | { BITS_EOT } |
| 297 | }}, |
| 298 | {0xc1, MSRTYPE_RDWR, MSR2(0,0), "IA32_PMC0", "", { |
| 299 | { BITS_EOT } |
| 300 | }}, |
| 301 | {0xc2, MSRTYPE_RDWR, MSR2(0,0), "IA32_PMC1", "", { |
| 302 | { BITS_EOT } |
| 303 | }}, |
| 304 | {0xe7, MSRTYPE_RDWR, MSR2(0,0), "IA32_MPERF", "", { |
| 305 | { BITS_EOT } |
| 306 | }}, |
| 307 | {0xe8, MSRTYPE_RDWR, MSR2(0,0), "IA32_APERF", "", { |
| 308 | { BITS_EOT } |
| 309 | }}, |
| 310 | {0xfe, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRRCAP", "", { |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 311 | { 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 316 | { BITS_EOT } |
| 317 | }}, |
| 318 | {0x174, MSRTYPE_RDWR, MSR2(0,0), "IA32_SYSENTER_CS", "", { |
| 319 | { BITS_EOT } |
| 320 | }}, |
| 321 | {0x175, MSRTYPE_RDWR, MSR2(0,0), "IA32_SYSENTER_ESP", "", { |
| 322 | { BITS_EOT } |
| 323 | }}, |
| 324 | {0x176, MSRTYPE_RDWR, MSR2(0,0), "IA32_SYSENTER_EIP", "", { |
| 325 | { BITS_EOT } |
| 326 | }}, |
| 327 | {0x179, MSRTYPE_RDWR, MSR2(0,0), "IA32_MCG_CAP", "", { |
| 328 | { BITS_EOT } |
| 329 | }}, |
| 330 | {0x17a, MSRTYPE_RDWR, MSR2(0,0), "IA32_MCG_STATUS", "", { |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 331 | { 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 363 | { BITS_EOT } |
| 364 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 365 | /* if CPUID.0AH: EAX[15:8] > 0 */ |
| 366 | {0x186, MSRTYPE_RDWR, MSR2(0,0), "IA32_PERFEVTSEL0", |
| 367 | "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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 423 | { BITS_EOT } |
| 424 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 425 | /* if CPUID.0AH: EAX[15:8] > 0 */ |
| 426 | {0x187, MSRTYPE_RDWR, MSR2(0,0), "IA32_PERFEVTSEL1", |
| 427 | "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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 483 | { BITS_EOT } |
| 484 | }}, |
| 485 | {0x198, MSRTYPE_RDWR, MSR2(0,0), "IA32_PERF_STATUS", "", { |
| 486 | { BITS_EOT } |
| 487 | }}, |
| 488 | {0x199, MSRTYPE_RDWR, MSR2(0,0), "IA32_PERF_CTL", "", { |
| 489 | { BITS_EOT } |
| 490 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 491 | {0x19a, MSRTYPE_RDWR, MSR2(0,0), "IA32_CLOCK_MODULATION", |
| 492 | "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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 503 | { BITS_EOT } |
| 504 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 505 | {0x19b, MSRTYPE_RDWR, MSR2(0,0), "IA32_THERM_INTERRUPT", |
| 506 | "Thermal Interrupt Control", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 507 | { BITS_EOT } |
| 508 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 509 | {0x19c, MSRTYPE_RDWR, MSR2(0,0), "IA32_THERM_STATUS", |
| 510 | "Thermal Monitor Status", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 511 | { BITS_EOT } |
| 512 | }}, |
| 513 | {0x19d, MSRTYPE_RDWR, MSR2(0,0), "MSR_THERM2_CTL", "", { |
| 514 | { BITS_EOT } |
| 515 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 516 | {0x1a0, MSRTYPE_RDWR, MSR2(0,0), "IA32_MISC_ENABLE", |
| 517 | "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, { |
| 565 | { 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" }, |
| 569 | { BITVAL_EOT } |
| 570 | }}, |
| 571 | { 19, 1, "Adjacent Cache Line Prefetch Disable", "R/W", |
| 572 | PRESENT_BIN, { |
| 573 | { 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" }, |
| 577 | { 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" }, |
| 606 | { MSR1(1), "FERR# asserted by the processor to indicate\ |
| 607 | a pending break event within the processor" }, |
| 608 | { 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 628 | { BITS_EOT } |
| 629 | }}, |
| 630 | {0x1c9, MSRTYPE_RDWR, MSR2(0,0), "MSR_LASTBRANCH_TOS", "", { |
| 631 | { BITS_EOT } |
| 632 | }}, |
| 633 | {0x1d9, MSRTYPE_RDWR, MSR2(0,0), "IA32_DEBUGCTL", "", { |
| 634 | { BITS_EOT } |
| 635 | }}, |
| 636 | {0x1dd, MSRTYPE_RDWR, MSR2(0,0), "MSR_LER_FROM_LIP", "", { |
| 637 | { BITS_EOT } |
| 638 | }}, |
| 639 | {0x1de, MSRTYPE_RDWR, MSR2(0,0), "MSR_LER_TO_LIP", "", { |
| 640 | { BITS_EOT } |
| 641 | }}, |
| 642 | {0x200, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_BASE0", "", { |
| 643 | { BITS_EOT } |
| 644 | }}, |
| 645 | {0x201, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_MASK0", "", { |
| 646 | { BITS_EOT } |
| 647 | }}, |
| 648 | {0x202, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_BASE1", "", { |
| 649 | { BITS_EOT } |
| 650 | }}, |
| 651 | {0x203, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_MASK1", "", { |
| 652 | { BITS_EOT } |
| 653 | }}, |
| 654 | {0x204, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_BASE2", "", { |
| 655 | { BITS_EOT } |
| 656 | }}, |
| 657 | {0x205, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_MASK2", "", { |
| 658 | { BITS_EOT } |
| 659 | }}, |
| 660 | {0x206, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_BASE3", "", { |
| 661 | { BITS_EOT } |
| 662 | }}, |
| 663 | {0x207, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_MASK3", "", { |
| 664 | { BITS_EOT } |
| 665 | }}, |
| 666 | {0x208, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_BASE4", "", { |
| 667 | { BITS_EOT } |
| 668 | }}, |
| 669 | {0x209, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_MASK4", "", { |
| 670 | { BITS_EOT } |
| 671 | }}, |
| 672 | {0x20a, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_BASE5", "", { |
| 673 | { BITS_EOT } |
| 674 | }}, |
| 675 | {0x20b, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_MASK5", "", { |
| 676 | { BITS_EOT } |
| 677 | }}, |
| 678 | {0x20c, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_BASE6", "", { |
| 679 | { BITS_EOT } |
| 680 | }}, |
| 681 | {0x20d, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_MASK6", "", { |
| 682 | { BITS_EOT } |
| 683 | }}, |
| 684 | {0x20e, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_BASE7", "", { |
| 685 | { BITS_EOT } |
| 686 | }}, |
| 687 | {0x20f, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_PHYS_MASK7", "", { |
| 688 | { BITS_EOT } |
| 689 | }}, |
| 690 | {0x250, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX64K_00000", "", { |
| 691 | { BITS_EOT } |
| 692 | }}, |
| 693 | {0x258, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX16K_80000", "", { |
| 694 | { BITS_EOT } |
| 695 | }}, |
| 696 | {0x259, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX16K_A0000", "", { |
| 697 | { BITS_EOT } |
| 698 | }}, |
| 699 | {0x268, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX4K_C0000", "", { |
| 700 | { BITS_EOT } |
| 701 | }}, |
| 702 | {0x269, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX4K_C8000", "", { |
| 703 | { BITS_EOT } |
| 704 | }}, |
| 705 | {0x26a, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX4K_D0000", "", { |
| 706 | { BITS_EOT } |
| 707 | }}, |
| 708 | {0x26b, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX4K_D8000", "", { |
| 709 | { BITS_EOT } |
| 710 | }}, |
| 711 | {0x26c, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX4K_E0000", "", { |
| 712 | { BITS_EOT } |
| 713 | }}, |
| 714 | {0x26d, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX4K_E8000", "", { |
| 715 | { BITS_EOT } |
| 716 | }}, |
| 717 | {0x26e, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX4K_F0000", "", { |
| 718 | { BITS_EOT } |
| 719 | }}, |
| 720 | {0x26f, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_FIX4K_F8000", "", { |
| 721 | { BITS_EOT } |
| 722 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 723 | {0x277, MSRTYPE_RDWR, MSR2(0,0), "IA32_PAT", "IA32_PAT", { |
| 724 | { 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 756 | { BITS_EOT } |
| 757 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 758 | {0x2ff, MSRTYPE_RDWR, MSR2(0,0), "IA32_MTRR_DEF_TYPE", |
| 759 | "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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 771 | { BITS_EOT } |
| 772 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 773 | /* if CPUID.0AH: EDX[4:0] > 0 */ |
| 774 | {0x309, MSRTYPE_RDWR, MSR2(0,0), "IA32_FIXED_CTR0", "Fixed-Function \ |
| 775 | Performance Counter Register 0: Counts Instr_Retired.Any", { |
| 776 | /* Also known as MSR_PERF_FIXED_CTR0 */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 777 | { BITS_EOT } |
| 778 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 779 | /* if CPUID.0AH: EDX[4:0] > 1 */ |
| 780 | {0x30a, MSRTYPE_RDWR, MSR2(0,0), "IA32_FIXED_CTR1", "Fixed-Function \ |
| 781 | Performance Counter Register 1: Counts CPU_CLK_Unhalted.Core ", { |
| 782 | /* Also known as MSR_PERF_FIXED_CTR1 */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 783 | { BITS_EOT } |
| 784 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 785 | /* if CPUID.0AH: EDX[4:0] > 2 */ |
| 786 | {0x30b, MSRTYPE_RDWR, MSR2(0,0), "IA32_FIXED_CTR2", "Fixed-Function \ |
| 787 | Performance Counter Register 2: Counts CPU_CLK_Unhalted.Ref", { |
| 788 | /* Also known as MSR_PERF_FIXED_CTR2 */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 789 | { BITS_EOT } |
| 790 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 791 | {0x345, MSRTYPE_RDONLY, MSR2(0,0), "IA32_PERF_CAPABILITIES", "", { |
| 792 | /* Additional info available at Section 17.4.1 of |
| 793 | * Intel 64 and IA-32 Architecures Software Developer's |
| 794 | * 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 Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 806 | { BITS_EOT } |
| 807 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 808 | /* if CPUID.0AH: EAX[7:0] > 1*/ |
| 809 | {0x38d, MSRTYPE_RDWR, MSR2(0,0), "IA32_FIXED_CTR_CTRL", |
| 810 | "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, { |
| 823 | { MSR1(0), "Counter only increments the associated event \ |
Elyes HAOUAS | 75db5966 | 2018-08-23 18:16:26 +0200 | [diff] [blame] | 824 | conditions occurring in the logical processor which programmed the MSR" }, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 825 | { MSR1(1), "Counting the associated event conditions \ |
Elyes HAOUAS | 75db5966 | 2018-08-23 18:16:26 +0200 | [diff] [blame] | 826 | occurring across all logical processors sharing a processor core" }, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 827 | { BITVAL_EOT } |
| 828 | }}, |
| 829 | { 9, 1, "EN2_Usr", "R/W", PRESENT_BIN, { |
| 830 | { MSR1(0), "Nothing" }, |
| 831 | { MSR1(1), "Fixed counter 2 is enabled to count while CPL > 0" }, |
| 832 | { BITVAL_EOT } |
| 833 | }}, |
| 834 | { 8, 1, "EN2_OS", "R/W", PRESENT_BIN, { |
| 835 | { MSR1(0), "Nothing" }, |
| 836 | { MSR1(1), "Fixed counter 2 is enabled to count while CPL = 0" }, |
| 837 | { BITVAL_EOT } |
| 838 | }}, |
| 839 | { 7, 1, "EN1_PMI", "R/W", PRESENT_BIN, { |
| 840 | { MSR1(0), "Nothing" }, |
| 841 | { MSR1(1), "PMI when fixed counter 1 overflows is enabled" }, |
| 842 | { BITVAL_EOT } |
| 843 | }}, |
| 844 | /* if CPUID.0AH: EAX[7:0] > 2 */ |
| 845 | { 6, 1, "AnyThread 1", "R/W", PRESENT_BIN, { |
| 846 | { MSR1(0), "Counter only increments the associated event \ |
Elyes HAOUAS | 75db5966 | 2018-08-23 18:16:26 +0200 | [diff] [blame] | 847 | conditions occurring in the logical processor which programmed the MSR" }, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 848 | { MSR1(1), "Counting the associated event conditions \ |
Elyes HAOUAS | 75db5966 | 2018-08-23 18:16:26 +0200 | [diff] [blame] | 849 | occurring across all logical processors sharing a processor core" }, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 850 | { BITVAL_EOT } |
| 851 | }}, |
| 852 | { 5, 1, "EN1_Usr", "R/W", PRESENT_BIN, { |
| 853 | { MSR1(0), "Nothing" }, |
| 854 | { MSR1(1), "Fixed counter 1 is enabled to count while CPL > 0" }, |
| 855 | { BITVAL_EOT } |
| 856 | }}, |
| 857 | { 4, 1, "EN1_OS", "R/W", PRESENT_BIN, { |
| 858 | { MSR1(0), "Nothing" }, |
| 859 | { MSR1(1), "Fixed counter 1 is enabled to count while CPL = 0" }, |
| 860 | { BITVAL_EOT } |
| 861 | }}, |
| 862 | { 3, 1, "EN0_PMI", "R/W", PRESENT_BIN, { |
| 863 | { MSR1(0), "Nothing" }, |
| 864 | { MSR1(1), "PMI when fixed counter 0 overflows is enabled" }, |
| 865 | { BITVAL_EOT } |
| 866 | }}, |
| 867 | /* if CPUID.0AH: EAX[7:0] > 2 */ |
| 868 | { 2, 1, "AnyThread 0", "R/W", PRESENT_BIN, { |
| 869 | { MSR1(0), "Counter only increments the associated event \ |
Elyes HAOUAS | 75db5966 | 2018-08-23 18:16:26 +0200 | [diff] [blame] | 870 | conditions occurring in the logical processor which programmed the MSR" }, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 871 | { MSR1(1), "Counting the associated event conditions \ |
Elyes HAOUAS | 75db5966 | 2018-08-23 18:16:26 +0200 | [diff] [blame] | 872 | occurring across all logical processors sharing a processor core" }, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 873 | { BITVAL_EOT } |
| 874 | }}, |
| 875 | { 1, 1, "EN0_Usr", "R/W", PRESENT_BIN, { |
| 876 | { MSR1(0), "Nothing" }, |
| 877 | { MSR1(1), "Fixed counter 0 is enabled to count while CPL > 0" }, |
| 878 | { BITVAL_EOT } |
| 879 | }}, |
| 880 | { 0, 1, "EN0_OS", "R/W", PRESENT_BIN, { |
| 881 | { MSR1(0), "Nothing" }, |
| 882 | { MSR1(1), "Fixed counter 0 is enabled to count while CPL = 0" }, |
| 883 | { BITVAL_EOT } |
| 884 | }}, |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 885 | { BITS_EOT } |
| 886 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 887 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 888 | {0x38e, MSRTYPE_RDONLY, MSR2(0,0), "IA32_PERF_GLOBAL_STATUS", |
| 889 | "Global Performance Counter Status", { |
| 890 | /* Also known as MSR_PERF_GLOBAL_STATUS */ |
| 891 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 892 | { 63, 1, "CondChg: Status bits of this register has changed", |
| 893 | "R/O", PRESENT_BIN, { |
| 894 | { BITVAL_EOT } |
| 895 | }}, |
| 896 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 897 | { 62, 1, "OvfBuf: DS SAVE area Buffer overflow status", |
| 898 | "R/O", PRESENT_BIN, { |
| 899 | { BITVAL_EOT } |
| 900 | }}, |
| 901 | /* if CPUID.0AH: EAX[7:0] > 2 */ |
| 902 | { 61, 1, "Ovf_Uncore: Uncore counter overflow status", |
| 903 | "R/O", PRESENT_BIN, { |
| 904 | { BITVAL_EOT } |
| 905 | }}, |
| 906 | { 60, 26, RESERVED }, |
| 907 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 908 | { 34, 1, "Ovf_FixedCtr2: Overflow status of IA32_FIXED_CTR2", |
| 909 | "R/O", PRESENT_BIN, { |
| 910 | { BITVAL_EOT } |
| 911 | }}, |
| 912 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 913 | { 33, 1, "Ovf_FixedCtr1: Overflow status of IA32_FIXED_CTR1", |
| 914 | "R/O", PRESENT_BIN, { |
| 915 | { BITVAL_EOT } |
| 916 | }}, |
| 917 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 918 | { 32, 1, "Ovf_FixedCtr0: Overflow status of IA32_FIXED_CTR0", |
| 919 | "R/O", PRESENT_BIN, { |
| 920 | { BITVAL_EOT } |
| 921 | }}, |
| 922 | { 31, 28, RESERVED }, |
| 923 | /* presented only in 06_2EH Nehalem model */ |
| 924 | { 3, 1, "Ovf_PMC3: Overflow status of IA32_PMC3", "R/O", PRESENT_BIN, { |
| 925 | { BITVAL_EOT } |
| 926 | }}, |
| 927 | /* presented only in 06_2EH Nehalem model */ |
| 928 | { 2, 1, "Ovf_PMC2: Overflow status of IA32_PMC2", "R/O", PRESENT_BIN, { |
| 929 | { BITVAL_EOT } |
| 930 | }}, |
| 931 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 932 | { 1, 1, "Ovf_PMC1: Overflow status of IA32_PMC1", "R/O", PRESENT_BIN, { |
| 933 | { BITVAL_EOT } |
| 934 | }}, |
| 935 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 936 | { 0, 1, "Ovf_PMC0: Overflow status of IA32_PMC0", "R/O", PRESENT_BIN, { |
| 937 | { BITVAL_EOT } |
| 938 | }}, |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 939 | { BITS_EOT } |
| 940 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 941 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 942 | {0x38f, MSRTYPE_RDWR, MSR2(0,0), "IA32_PERF_GLOBAL_CTL", |
| 943 | "Global Performance Counter Control", { |
| 944 | /* Counter increments while the result of ANDing respective |
| 945 | * enable bit in this MSR with corresponding OS or USR bits |
| 946 | * in general-purpose or fixed counter control MSR is true. |
| 947 | */ |
| 948 | { 63, 29, RESERVED }, |
| 949 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 950 | { 34, 1, "EN_FIXED_CTR2", "R/W", PRESENT_BIN, { |
| 951 | { BITVAL_EOT } |
| 952 | }}, |
| 953 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 954 | { 33, 1, "EN_FIXED_CTR1", "R/W", PRESENT_BIN, { |
| 955 | { BITVAL_EOT } |
| 956 | }}, |
| 957 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 958 | { 32, 1, "EN_FIXED_CTR0", "R/W", PRESENT_BIN, { |
| 959 | { BITVAL_EOT } |
| 960 | }}, |
| 961 | { 31, 30, RESERVED }, |
| 962 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 963 | { 1, 1, "EN_PMC1", "R/W", PRESENT_BIN, { |
| 964 | { BITVAL_EOT } |
| 965 | }}, |
| 966 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 967 | { 0, 1, "EN_PMC0", "R/W", PRESENT_BIN, { |
| 968 | { BITVAL_EOT } |
| 969 | }}, |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 970 | { BITS_EOT } |
| 971 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 972 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 973 | {0x390, MSRTYPE_RDWR, MSR2(0,0), "IA32_PERF_GLOBAL_OVF_CTL", |
| 974 | "Global Performance Counter Overflow Control", { |
| 975 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 976 | { 63, 1, "Clear CondChg bit", "R/W", PRESENT_BIN, { |
| 977 | { BITVAL_EOT } |
| 978 | }}, |
| 979 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 980 | { 62, 1, "Clear OvfBuf bit", "R/W", PRESENT_BIN, { |
| 981 | { BITVAL_EOT } |
| 982 | }}, |
| 983 | /* Presented only in 06_2EH Nehalem model */ |
| 984 | { 61, 1, "Clear Ovf_Uncore bit", "R/W", PRESENT_BIN, { |
| 985 | { BITVAL_EOT } |
| 986 | }}, |
| 987 | { 60, 26, RESERVED }, |
| 988 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 989 | { 34, 1, "Clear Ovf_FIXED_CTR2 bit", "R/W", PRESENT_BIN, { |
| 990 | { BITVAL_EOT } |
| 991 | }}, |
| 992 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 993 | { 33, 1, "Clear Ovf_FIXED_CTR1 bit", "R/W", PRESENT_BIN, { |
| 994 | { BITVAL_EOT } |
| 995 | }}, |
| 996 | /* if CPUID.0AH: EAX[7:0] > 1 */ |
| 997 | { 32, 1, "Clear Ovf_FIXED_CTR0 bit", "R/W", PRESENT_BIN, { |
| 998 | { BITVAL_EOT } |
| 999 | }}, |
| 1000 | { 31, 30, RESERVED }, |
| 1001 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 1002 | { 1, 1, "Clear Ovf_PMC1 bit", "R/W", PRESENT_BIN, { |
| 1003 | { BITVAL_EOT } |
| 1004 | }}, |
| 1005 | /* if CPUID.0AH: EAX[7:0] > 0 */ |
| 1006 | { 0, 1, "Clear Ovf_PMC0 bit", "R/W", PRESENT_BIN, { |
| 1007 | { BITVAL_EOT } |
| 1008 | }}, |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1009 | { BITS_EOT } |
| 1010 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1011 | /* See Section 18.6.1.1 of Intel 64 and IA-32 Architectures |
| 1012 | * Software Developer's Manual, Volume 3, |
| 1013 | * "Precise Event Based Sampling (PEBS)". |
| 1014 | */ |
| 1015 | {0x3f1, MSRTYPE_RDWR, MSR2(0,0), "IA32_PEBS_ENABLE", "PEBS Control", { |
| 1016 | { 63, 28, RESERVED }, |
| 1017 | { 35, 1, "Load Latency on IA32_PMC3", "R/W", PRESENT_BIN, { |
| 1018 | { MSR1(0), "Disabled" }, |
| 1019 | { MSR1(1), "Enabled" }, |
| 1020 | { BITVAL_EOT } |
| 1021 | }}, |
| 1022 | { 34, 1, "Load Latency on IA32_PMC2", "R/W", PRESENT_BIN, { |
| 1023 | { MSR1(0), "Disabled" }, |
| 1024 | { MSR1(1), "Enabled" }, |
| 1025 | { BITVAL_EOT } |
| 1026 | }}, |
| 1027 | { 33, 1, "Load Latency on IA32_PMC1", "R/W", PRESENT_BIN, { |
| 1028 | { MSR1(0), "Disabled" }, |
| 1029 | { MSR1(1), "Enabled" }, |
| 1030 | { BITVAL_EOT } |
| 1031 | }}, |
| 1032 | { 32, 1, "Load Latency on IA32_PMC0", "R/W", PRESENT_BIN, { |
| 1033 | { MSR1(0), "Disabled" }, |
| 1034 | { MSR1(1), "Enabled" }, |
| 1035 | { BITVAL_EOT } |
| 1036 | }}, |
| 1037 | { 31, 28, RESERVED }, |
| 1038 | { 3, 1, "PEBS on IA32_PMC3", "R/W", PRESENT_BIN, { |
| 1039 | { MSR1(0), "Disabled" }, |
| 1040 | { MSR1(1), "Enabled" }, |
| 1041 | { BITVAL_EOT } |
| 1042 | }}, |
| 1043 | { 2, 1, "PEBS on IA32_PMC2", "R/W", PRESENT_BIN, { |
| 1044 | { MSR1(0), "Disabled" }, |
| 1045 | { MSR1(1), "Enabled" }, |
| 1046 | { BITVAL_EOT } |
| 1047 | }}, |
| 1048 | { 1, 1, "PEBS on IA32_PMC1", "R/W", PRESENT_BIN, { |
| 1049 | { MSR1(0), "Disabled" }, |
| 1050 | { MSR1(1), "Enabled" }, |
| 1051 | { BITVAL_EOT } |
| 1052 | }}, |
| 1053 | { 0, 1, "PEBS on IA32_PMC0", "R/W", PRESENT_BIN, { |
| 1054 | { MSR1(0), "Disabled" }, |
| 1055 | { MSR1(1), "Enabled" }, |
| 1056 | { BITVAL_EOT } |
| 1057 | }}, |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1058 | { BITS_EOT } |
| 1059 | }}, |
Kyösti Mälkki | 8b72aaf | 2018-05-13 09:19:00 +0300 | [diff] [blame] | 1060 | {0x400, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC0_CTL", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1061 | { BITS_EOT } |
| 1062 | }}, |
Kyösti Mälkki | 8b72aaf | 2018-05-13 09:19:00 +0300 | [diff] [blame] | 1063 | {0x401, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC0_STATUS", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1064 | { BITS_EOT } |
| 1065 | }}, |
Kyösti Mälkki | 8b72aaf | 2018-05-13 09:19:00 +0300 | [diff] [blame] | 1066 | {0x402, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC0_ADDR", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1067 | { BITS_EOT } |
| 1068 | }}, |
| 1069 | {0x403, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC0_MISC", "", { |
| 1070 | { BITS_EOT } |
| 1071 | }}, |
| 1072 | {0x404, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC1_CTL", "", { |
| 1073 | { BITS_EOT } |
| 1074 | }}, |
| 1075 | {0x405, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC1_STATUS", "", { |
| 1076 | { BITS_EOT } |
| 1077 | }}, |
| 1078 | {0x406, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC1_ADDR", "", { |
| 1079 | { BITS_EOT } |
| 1080 | }}, |
| 1081 | {0x407, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC1_MISC", "", { |
| 1082 | { BITS_EOT } |
| 1083 | }}, |
| 1084 | {0x408, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC2_CTL", "", { |
| 1085 | { BITS_EOT } |
| 1086 | }}, |
| 1087 | {0x409, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC2_STATUS", "", { |
| 1088 | { BITS_EOT } |
| 1089 | }}, |
| 1090 | {0x40a, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC2_ADDR", "", { |
| 1091 | { BITS_EOT } |
| 1092 | }}, |
| 1093 | {0x40b, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC2_MISC", "", { |
| 1094 | { BITS_EOT } |
| 1095 | }}, |
Kyösti Mälkki | 15a971b | 2018-05-14 09:09:29 +0300 | [diff] [blame] | 1096 | {0x40c, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC3_CTL", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1097 | { BITS_EOT } |
| 1098 | }}, |
Kyösti Mälkki | 15a971b | 2018-05-14 09:09:29 +0300 | [diff] [blame] | 1099 | {0x40d, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC3_STATUS", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1100 | { BITS_EOT } |
| 1101 | }}, |
Kyösti Mälkki | 15a971b | 2018-05-14 09:09:29 +0300 | [diff] [blame] | 1102 | {0x40e, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC3_ADDR", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1103 | { BITS_EOT } |
| 1104 | }}, |
Kyösti Mälkki | 15a971b | 2018-05-14 09:09:29 +0300 | [diff] [blame] | 1105 | {0x40f, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC3_MISC", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1106 | { BITS_EOT } |
| 1107 | }}, |
Kyösti Mälkki | 15a971b | 2018-05-14 09:09:29 +0300 | [diff] [blame] | 1108 | {0x410, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC4_CTL", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1109 | { BITS_EOT } |
| 1110 | }}, |
Kyösti Mälkki | 15a971b | 2018-05-14 09:09:29 +0300 | [diff] [blame] | 1111 | {0x411, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC4_STATUS", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1112 | { BITS_EOT } |
| 1113 | }}, |
Kyösti Mälkki | 15a971b | 2018-05-14 09:09:29 +0300 | [diff] [blame] | 1114 | {0x412, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC4_ADDR", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1115 | { BITS_EOT } |
| 1116 | }}, |
Kyösti Mälkki | 15a971b | 2018-05-14 09:09:29 +0300 | [diff] [blame] | 1117 | {0x413, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC4_MISC", "", { |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1118 | { BITS_EOT } |
| 1119 | }}, |
| 1120 | {0x414, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC5_CTL", "", { |
| 1121 | { BITS_EOT } |
| 1122 | }}, |
| 1123 | {0x415, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC5_STATUS", "", { |
| 1124 | { BITS_EOT } |
| 1125 | }}, |
| 1126 | {0x416, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC5_ADDR", "", { |
| 1127 | { BITS_EOT } |
| 1128 | }}, |
| 1129 | {0x417, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC5_MISC", "", { |
| 1130 | { BITS_EOT } |
| 1131 | }}, |
| 1132 | {0x418, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC6_CTL", "", { |
| 1133 | { BITS_EOT } |
| 1134 | }}, |
| 1135 | {0x419, MSRTYPE_RDWR, MSR2(0,0), "IA32_MC6_STATUS", "", { |
| 1136 | { BITS_EOT } |
| 1137 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1138 | {0x480, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_BASIC", |
| 1139 | "Reporting Register of Basic VMX Capabilities", { |
| 1140 | /* Additional info available at |
| 1141 | * Appendix A.1, "Basic VMX Information" */ |
| 1142 | { 63, 10, RESERVED }, |
| 1143 | { 53, 4, "Memory type for VMREAD and VMWRITE", "R/O", PRESENT_HEX, { |
| 1144 | { BITVAL_EOT } |
| 1145 | }}, |
| 1146 | { 49, 1, "Support of dual-treatment of system-management functions", |
| 1147 | "R/O", PRESENT_BIN, { |
| 1148 | { BITVAL_EOT } |
| 1149 | }}, |
| 1150 | { 48, 1, "Enable full linear address access", "R/O", PRESENT_BIN, { |
| 1151 | { BITVAL_EOT } |
| 1152 | }}, |
| 1153 | { 47, 3, RESERVED }, |
| 1154 | { 44, 13, "VMXON region allocation size", "R/O", PRESENT_DEC, { |
| 1155 | { BITVAL_EOT } |
| 1156 | }}, |
| 1157 | { 31, 32, "VMCS Revision Identifier", "R/O", PRESENT_HEX, { |
| 1158 | { BITVAL_EOT } |
| 1159 | }}, |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1160 | { BITS_EOT } |
| 1161 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1162 | {0x481, MSRTYPE_RDONLY, MSR2(0,0), "IA32_PINBASED_CTLS", |
| 1163 | "Capability Reporting Register of \ |
| 1164 | Pin-based VM-execution Controls", { |
| 1165 | /* Additional info available at Appendix A.3, |
| 1166 | * "VM-Execution Controls" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1167 | { BITS_EOT } |
| 1168 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1169 | {0x482, MSRTYPE_RDONLY, MSR2(0,0), "IA32_PROCBASED_CTLS", |
| 1170 | "Capability Reporting Register of \ |
| 1171 | Primary Processor-based VM-execution Controls", { |
| 1172 | /* Additional info available at Appendix A.3, |
| 1173 | * "VM-Execution Controls" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1174 | { BITS_EOT } |
| 1175 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1176 | {0x483, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_EXIT_CTLS", |
| 1177 | "Capability Reporting Register of VM-exit Controls", { |
| 1178 | /* Additional info available at Appendix A.4, |
| 1179 | * "VM-Exit Controls" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1180 | { BITS_EOT } |
| 1181 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1182 | {0x484, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_ENTRY_CTLS", |
| 1183 | "Capability Reporting Register of VM-entry Controls", { |
| 1184 | /* Additional info available at Appendix A.5, |
| 1185 | * "VM-Entry Controls" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1186 | { BITS_EOT } |
| 1187 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1188 | {0x485, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_MISC", |
| 1189 | "Reporting Register of Miscellaneous VMX Capabilities", { |
| 1190 | /* Additional info available at Appendix A.6, |
| 1191 | * "Miscellaneous Data" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1192 | { BITS_EOT } |
| 1193 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1194 | {0x486, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_CR0_FIXED0", |
| 1195 | "Capability Reporting Register of CR0 Bits Fixed to 0", { |
| 1196 | /* Additional info available at Appendix A.7, |
| 1197 | * "VMX-Fixed Bits in CR0" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1198 | { BITS_EOT } |
| 1199 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1200 | {0x487, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_CR0_FIXED1", |
| 1201 | "Capability Reporting Register of CR0 Bits Fixed to 1", { |
| 1202 | /* Additional info available at Appendix A.7, |
| 1203 | * "VMX-Fixed Bits in CR0" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1204 | { BITS_EOT } |
| 1205 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1206 | {0x488, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_CR4_FIXED0", |
| 1207 | "Capability Reporting Register of CR4 Bits Fixed to 0", { |
| 1208 | /* Additional info available at Appendix A.8, |
| 1209 | * "VMX-Fixed Bits in CR4" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1210 | { BITS_EOT } |
| 1211 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1212 | {0x489, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_CR4_FIXED1", |
| 1213 | "Capability Reporting Register of CR4 Bits Fixed to 1", { |
| 1214 | /* Additional info available at Appendix A.8, |
| 1215 | * "VMX-Fixed Bits in CR4" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1216 | { BITS_EOT } |
| 1217 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1218 | {0x48a, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_VMCS_ENUM", |
| 1219 | "Capability Reporting Register of VMCS Field Enumeration", { |
| 1220 | /* Additional info available at Appendix A.9, |
| 1221 | * "VMCS Enumeration" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1222 | { BITS_EOT } |
| 1223 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1224 | {0x48b, MSRTYPE_RDONLY, MSR2(0,0), "IA32_VMX_PROCBASED_CTLS2", |
| 1225 | "Capability Reporting Register of Secondary \ |
| 1226 | Processor-based VM-execution Controls", { |
| 1227 | /* Additional info available at Appendix A.3, |
| 1228 | * "VM-Execution Controls" */ |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1229 | { BITS_EOT } |
| 1230 | }}, |
Anton Kochkov | dd678a2 | 2012-07-04 07:39:07 +0400 | [diff] [blame] | 1231 | {0x600, MSRTYPE_RDWR, MSR2(0,0), "IA32_DS_AREA", "DS Save Area", { |
| 1232 | /* Additional info available at Section 18.10.4 of Intel 64 |
| 1233 | * and IA-32 Architectures Software Developer's Manual, |
| 1234 | * "Debug Store (DS) Mechanism". |
| 1235 | */ |
| 1236 | { 63, 32, RESERVED }, // reserved if not in IA-32e mode |
| 1237 | { 31, 32, "Linear address of DS buffer management area", |
| 1238 | "R/W", PRESENT_HEX, { |
| 1239 | { BITVAL_EOT } |
| 1240 | }}, |
Anton Kochkov | 7c634ae | 2011-06-20 23:14:22 +0400 | [diff] [blame] | 1241 | { BITS_EOT } |
| 1242 | }}, |
| 1243 | {0x107cc, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_CTR_CTL0", "", { |
| 1244 | { BITS_EOT } |
| 1245 | }}, |
| 1246 | {0x107cd, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_CTR_CTL1", "", { |
| 1247 | { BITS_EOT } |
| 1248 | }}, |
| 1249 | {0x107ce, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_CTR_CTL2", "", { |
| 1250 | { BITS_EOT } |
| 1251 | }}, |
| 1252 | {0x107cf, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_CTR_CTL3", "", { |
| 1253 | { BITS_EOT } |
| 1254 | }}, |
| 1255 | {0x107d0, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_CTR_CTL4", "", { |
| 1256 | { BITS_EOT } |
| 1257 | }}, |
| 1258 | {0x107d1, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_CTR_CTL5", "", { |
| 1259 | { BITS_EOT } |
| 1260 | }}, |
| 1261 | {0x107d2, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_CTR_CTL6", "", { |
| 1262 | { BITS_EOT } |
| 1263 | }}, |
| 1264 | {0x107d3, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_CTR_CTL7", "", { |
| 1265 | { BITS_EOT } |
| 1266 | }}, |
| 1267 | {0x107d8, MSRTYPE_RDWR, MSR2(0,0), "MSR_EMON_L3_GL_CTL", "", { |
| 1268 | { BITS_EOT } |
| 1269 | }}, |
| 1270 | {0xc0000080, MSRTYPE_RDWR, MSR2(0,0), "IA32_EFER", "", { |
| 1271 | { BITS_EOT } |
| 1272 | }}, |
| 1273 | {0xc0000081, MSRTYPE_RDWR, MSR2(0,0), "IA32_STAR", "", { |
| 1274 | { BITS_EOT } |
| 1275 | }}, |
| 1276 | {0xc0000082, MSRTYPE_RDWR, MSR2(0,0), "IA32_LSTAR", "", { |
| 1277 | { BITS_EOT } |
| 1278 | }}, |
| 1279 | {0xc0000084, MSRTYPE_RDWR, MSR2(0,0), "IA32_FMASK", "", { |
| 1280 | { BITS_EOT } |
| 1281 | }}, |
| 1282 | {0xc0000100, MSRTYPE_RDWR, MSR2(0,0), "IA32_FS_BASE", "", { |
| 1283 | { BITS_EOT } |
| 1284 | }}, |
| 1285 | {0xc0000101, MSRTYPE_RDWR, MSR2(0,0), "IA32_GS_BASE", "", { |
| 1286 | { BITS_EOT } |
| 1287 | }}, |
| 1288 | {0xc0000102, MSRTYPE_RDWR, MSR2(0,0), "IA32_KERNEL_GS_BASE", "", { |
| 1289 | { BITS_EOT } |
| 1290 | }}, |
| 1291 | { MSR_EOT } |
| 1292 | }; |