Skip to content

Commit 15ca354

Browse files
committed
tools arch x86: Sync the msr-index.h copy with the kernel sources
To pick up the changes from these csets: 1b5277c ("x86/srso: Add SRSO_NO support") 8974eb5 ("x86/speculation: Add Gather Data Sampling mitigation") That cause no changes to tooling: $ tools/perf/trace/beauty/tracepoints/x86_msr.sh > before $ cp arch/x86/include/asm/msr-index.h tools/arch/x86/include/asm/msr-index.h $ tools/perf/trace/beauty/tracepoints/x86_msr.sh > after $ diff -u before after $ Just silences this perf build warning: Warning: Kernel ABI header differences: diff -u tools/arch/x86/include/asm/msr-index.h arch/x86/include/asm/msr-index.h Cc: Adrian Hunter <[email protected]> Cc: Borislav Petkov (AMD) <[email protected]> Cc: Daniel Sneddon <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Ian Rogers <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 678ddf7 commit 15ca354

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tools/arch/x86/include/asm/msr-index.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757

5858
#define MSR_IA32_PRED_CMD 0x00000049 /* Prediction Command */
5959
#define PRED_CMD_IBPB BIT(0) /* Indirect Branch Prediction Barrier */
60+
#define PRED_CMD_SBPB BIT(7) /* Selective Branch Prediction Barrier */
6061

6162
#define MSR_PPIN_CTL 0x0000004e
6263
#define MSR_PPIN 0x0000004f
@@ -155,6 +156,15 @@
155156
* Not susceptible to Post-Barrier
156157
* Return Stack Buffer Predictions.
157158
*/
159+
#define ARCH_CAP_GDS_CTRL BIT(25) /*
160+
* CPU is vulnerable to Gather
161+
* Data Sampling (GDS) and
162+
* has controls for mitigation.
163+
*/
164+
#define ARCH_CAP_GDS_NO BIT(26) /*
165+
* CPU is not vulnerable to Gather
166+
* Data Sampling (GDS).
167+
*/
158168

159169
#define ARCH_CAP_XAPIC_DISABLE BIT(21) /*
160170
* IA32_XAPIC_DISABLE_STATUS MSR
@@ -178,6 +188,8 @@
178188
#define RNGDS_MITG_DIS BIT(0) /* SRBDS support */
179189
#define RTM_ALLOW BIT(1) /* TSX development mode */
180190
#define FB_CLEAR_DIS BIT(3) /* CPU Fill buffer clear disable */
191+
#define GDS_MITG_DIS BIT(4) /* Disable GDS mitigation */
192+
#define GDS_MITG_LOCKED BIT(5) /* GDS mitigation locked */
181193

182194
#define MSR_IA32_SYSENTER_CS 0x00000174
183195
#define MSR_IA32_SYSENTER_ESP 0x00000175

0 commit comments

Comments
 (0)