Lines Matching +full:supervisor +full:- +full:mode +full:- +full:visible

1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <asm/required-features.h>
10 #include <asm/disabled-features.h>
16 #define NCAPINTS 21 /* N 32-bit words worth of info */
17 #define NBUGINTS 2 /* N 32-bit bug flags */
25 * please update the table in kernel/cpu/cpuid-deps.c as well.
28 /* Intel-defined CPU features, CPUID level 0x00000001 (EDX), word 0 */
30 #define X86_FEATURE_VME ( 0*32+ 1) /* Virtual Mode Extensions */
34 #define X86_FEATURE_MSR ( 0*32+ 5) /* Model-Specific Registers */
45 #define X86_FEATURE_PSE36 ( 0*32+17) /* 36-bit PSEs */
55 #define X86_FEATURE_HT ( 0*32+28) /* Hyper-Threading */
57 #define X86_FEATURE_IA64 ( 0*32+30) /* IA-64 processor */
60 /* AMD-defined CPU features, CPUID level 0x80000001, word 1 */
69 #define X86_FEATURE_LM ( 1*32+29) /* Long Mode (x86-64, 64-bit support) */
73 /* Transmeta-defined CPU features, CPUID level 0x80860001, word 2 */
74 #define X86_FEATURE_RECOVERY ( 2*32+ 0) /* CPU in recovery mode */
78 /* Other features, Linux-defined mapping, word 3 */
94 #define X86_FEATURE_PEBS ( 3*32+12) /* Precise-Event Based Sampling */
103 #define X86_FEATURE_ALWAYS ( 3*32+21) /* "" Always-present feature */
109 #define X86_FEATURE_AMD_DCM ( 3*32+27) /* AMD multi-node processor */
110 #define X86_FEATURE_APERFMPERF ( 3*32+28) /* P-State hardware coordination feedback capability (AP…
115 /* Intel-defined CPU features, CPUID level 0x00000001 (ECX), word 4 */
116 #define X86_FEATURE_XMM3 ( 4*32+ 0) /* "pni" SSE-3 */
118 #define X86_FEATURE_DTES64 ( 4*32+ 2) /* 64-bit Debug Store */
120 #define X86_FEATURE_DSCPL ( 4*32+ 4) /* "ds_cpl" CPL-qualified (filtered) Debug Store */
122 #define X86_FEATURE_SMX ( 4*32+ 6) /* Safer Mode eXtensions */
125 #define X86_FEATURE_SSSE3 ( 4*32+ 9) /* Supplemental SSE-3 */
128 #define X86_FEATURE_FMA ( 4*32+12) /* Fused multiply-add */
134 #define X86_FEATURE_XMM4_1 ( 4*32+19) /* "sse4_1" SSE-4.1 */
135 #define X86_FEATURE_XMM4_2 ( 4*32+20) /* "sse4_2" SSE-4.2 */
144 #define X86_FEATURE_F16C ( 4*32+29) /* 16-bit FP conversions */
148 /* VIA/Cyrix/Centaur-defined CPU features, CPUID level 0xC0000001, word 5 */
151 #define X86_FEATURE_XCRYPT ( 5*32+ 6) /* "ace" on-CPU crypto (xcrypt) */
152 #define X86_FEATURE_XCRYPT_EN ( 5*32+ 7) /* "ace_en" on-CPU crypto enabled */
161 #define X86_FEATURE_LAHF_LM ( 6*32+ 0) /* LAHF/SAHF in long mode */
165 #define X86_FEATURE_CR8_LEGACY ( 6*32+ 4) /* CR8 in 32-bit mode */
167 #define X86_FEATURE_SSE4A ( 6*32+ 6) /* SSE-4A */
168 #define X86_FEATURE_MISALIGNSSE ( 6*32+ 7) /* Misaligned SSE mode */
170 #define X86_FEATURE_OSVW ( 6*32+ 9) /* OS Visible Workaround */
184 #define X86_FEATURE_PTSC ( 6*32+27) /* Performance time-stamp counter */
189 * Auxiliary flags: Linux defined - For features scattered in various
202 #define X86_FEATURE_HW_PSTATE ( 7*32+ 8) /* AMD HW-PState */
207 #define X86_FEATURE_RSB_VMEXIT ( 7*32+13) /* "" Fill RSB on VM-Exit */
235 #define X86_FEATURE_EPT_AD ( 8*32+17) /* Intel Extended Page Table access-dirty bit */
242 /* Intel-defined CPU features, CPUID level 0x00000007:0 (EBX), word 9 */
250 #define X86_FEATURE_SMEP ( 9*32+ 7) /* Supervisor Mode Execution Protection */
259 #define X86_FEATURE_AVX512F ( 9*32+16) /* AVX-512 Foundation */
260 #define X86_FEATURE_AVX512DQ ( 9*32+17) /* AVX-512 DQ (Double/Quad granular) Instructions */
263 #define X86_FEATURE_SMAP ( 9*32+20) /* Supervisor Mode Access Prevention */
264 #define X86_FEATURE_AVX512IFMA ( 9*32+21) /* AVX-512 Integer Fused Multiply-Add instructions */
268 #define X86_FEATURE_AVX512PF ( 9*32+26) /* AVX-512 Prefetch */
269 #define X86_FEATURE_AVX512ER ( 9*32+27) /* AVX-512 Exponential and Reciprocal */
270 #define X86_FEATURE_AVX512CD ( 9*32+28) /* AVX-512 Conflict Detection */
272 #define X86_FEATURE_AVX512BW ( 9*32+30) /* AVX-512 BW (Byte/Word granular) Instructions */
273 #define X86_FEATURE_AVX512VL ( 9*32+31) /* AVX-512 VL (128/256 Vector Length) Extensions */
283 * Extended auxiliary flags: Linux defined - for features scattered in various
295 #define X86_FEATURE_PER_THREAD_MBA (11*32+ 7) /* "" Per-thread Memory Bandwidth Allocation */
312 /* Intel-defined CPU features, CPUID level 0x00000007:1 (EAX), word 12 */
317 #define X86_FEATURE_FZRM (12*32+10) /* "" Fast zero-length REP MOVSB */
325 /* AMD-defined CPU features, CPUID level 0x80000008 (EBX), word 13 */
334 …MD_STIBP_ALWAYS_ON (13*32+17) /* "" Single Thread Indirect Branch Predictors always-on preferred */
350 #define X86_FEATURE_HWP (14*32+ 7) /* Intel Hardware P-states */
364 #define X86_FEATURE_FLUSHBYASID (15*32+ 6) /* flush-by-ASID support */
376 /* Intel-defined CPU features, CPUID level 0x00000007:0 (ECX), word 16 */
378 #define X86_FEATURE_UMIP (16*32+ 2) /* User Mode Instruction Protection */
385 #define X86_FEATURE_VPCLMULQDQ (16*32+10) /* Carry-Less Multiplication Double Quadword */
387 #define X86_FEATURE_AVX512_BITALG (16*32+12) /* Support for VPOPCNT[B,W] and VPSHUF-BITQMB instruct…
390 #define X86_FEATURE_LA57 (16*32+16) /* 5-level page tables */
399 /* AMD-defined CPU features, CPUID level 0x80000007 (EBX), word 17 */
404 /* Intel-defined CPU features, CPUID level 0x00000007:0 (EDX), word 18 */
405 #define X86_FEATURE_AVX512_4VNNIW (18*32+ 2) /* AVX-512 Neural Network Instructions */
406 #define X86_FEATURE_AVX512_4FMAPS (18*32+ 3) /* AVX-512 Multiply Accumulation Single precision */
408 #define X86_FEATURE_AVX512_VP2INTERSECT (18*32+ 8) /* AVX-512 Intersect for D/Q */
430 /* AMD-defined memory encryption features, CPUID level 0x8000001f (EAX), word 19 */
434 #define X86_FEATURE_SEV_ES (19*32+ 3) /* AMD Secure Encrypted Virtualization - Encrypted State */
436 #define X86_FEATURE_SME_COHERENT (19*32+10) /* "" AMD hardware-enforced cache coherency */
437 #define X86_FEATURE_DEBUG_SWAP (19*32+14) /* AMD SEV-ES full debug state swap support */
439 /* AMD-defined Extended Feature 2 EAX, CPUID level 0x80000021 (EAX), word 20 */
462 * 64-bit kernels don't use X86_BUG_ESPFIX. Make the define conditional
465 #define X86_BUG_ESPFIX X86_BUG(9) /* "" IRET to 16-bit SS corrupts ESP/RSP high bits */
486 #define X86_BUG_SMT_RSB X86_BUG(29) /* CPU is vulnerable to Cross-Thread Return Address Predictio…