mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	x86/cpufeatures: Move RETPOLINE flags to word 11
In order to extend the RETPOLINE features to 4, move them to word 11 where there is still room. This mostly keeps DISABLE_RETPOLINE simple. Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Borislav Petkov <bp@suse.de> Reviewed-by: Josh Poimboeuf <jpoimboe@kernel.org> Signed-off-by: Borislav Petkov <bp@suse.de>
This commit is contained in:
		
							parent
							
								
									742ab6df97
								
							
						
					
					
						commit
						a883d624ae
					
				
					 1 changed files with 6 additions and 2 deletions
				
			
		| 
						 | 
					@ -203,8 +203,8 @@
 | 
				
			||||||
#define X86_FEATURE_PROC_FEEDBACK	( 7*32+ 9) /* AMD ProcFeedbackInterface */
 | 
					#define X86_FEATURE_PROC_FEEDBACK	( 7*32+ 9) /* AMD ProcFeedbackInterface */
 | 
				
			||||||
#define X86_FEATURE_XCOMPACTED		( 7*32+10) /* "" Use compacted XSTATE (XSAVES or XSAVEC) */
 | 
					#define X86_FEATURE_XCOMPACTED		( 7*32+10) /* "" Use compacted XSTATE (XSAVES or XSAVEC) */
 | 
				
			||||||
#define X86_FEATURE_PTI			( 7*32+11) /* Kernel Page Table Isolation enabled */
 | 
					#define X86_FEATURE_PTI			( 7*32+11) /* Kernel Page Table Isolation enabled */
 | 
				
			||||||
#define X86_FEATURE_RETPOLINE		( 7*32+12) /* "" Generic Retpoline mitigation for Spectre variant 2 */
 | 
					/* FREE!				( 7*32+12) */
 | 
				
			||||||
#define X86_FEATURE_RETPOLINE_LFENCE	( 7*32+13) /* "" Use LFENCE for Spectre variant 2 */
 | 
					/* FREE!				( 7*32+13) */
 | 
				
			||||||
#define X86_FEATURE_INTEL_PPIN		( 7*32+14) /* Intel Processor Inventory Number */
 | 
					#define X86_FEATURE_INTEL_PPIN		( 7*32+14) /* Intel Processor Inventory Number */
 | 
				
			||||||
#define X86_FEATURE_CDP_L2		( 7*32+15) /* Code and Data Prioritization L2 */
 | 
					#define X86_FEATURE_CDP_L2		( 7*32+15) /* Code and Data Prioritization L2 */
 | 
				
			||||||
#define X86_FEATURE_MSR_SPEC_CTRL	( 7*32+16) /* "" MSR SPEC_CTRL is implemented */
 | 
					#define X86_FEATURE_MSR_SPEC_CTRL	( 7*32+16) /* "" MSR SPEC_CTRL is implemented */
 | 
				
			||||||
| 
						 | 
					@ -296,6 +296,10 @@
 | 
				
			||||||
#define X86_FEATURE_PER_THREAD_MBA	(11*32+ 7) /* "" Per-thread Memory Bandwidth Allocation */
 | 
					#define X86_FEATURE_PER_THREAD_MBA	(11*32+ 7) /* "" Per-thread Memory Bandwidth Allocation */
 | 
				
			||||||
#define X86_FEATURE_SGX1		(11*32+ 8) /* "" Basic SGX */
 | 
					#define X86_FEATURE_SGX1		(11*32+ 8) /* "" Basic SGX */
 | 
				
			||||||
#define X86_FEATURE_SGX2		(11*32+ 9) /* "" SGX Enclave Dynamic Memory Management (EDMM) */
 | 
					#define X86_FEATURE_SGX2		(11*32+ 9) /* "" SGX Enclave Dynamic Memory Management (EDMM) */
 | 
				
			||||||
 | 
					/* FREE!				(11*32+10) */
 | 
				
			||||||
 | 
					/* FREE!				(11*32+11) */
 | 
				
			||||||
 | 
					#define X86_FEATURE_RETPOLINE		(11*32+12) /* "" Generic Retpoline mitigation for Spectre variant 2 */
 | 
				
			||||||
 | 
					#define X86_FEATURE_RETPOLINE_LFENCE	(11*32+13) /* "" Use LFENCE for Spectre variant 2 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
/* Intel-defined CPU features, CPUID level 0x00000007:1 (EAX), word 12 */
 | 
					/* Intel-defined CPU features, CPUID level 0x00000007:1 (EAX), word 12 */
 | 
				
			||||||
#define X86_FEATURE_AVX_VNNI		(12*32+ 4) /* AVX VNNI instructions */
 | 
					#define X86_FEATURE_AVX_VNNI		(12*32+ 4) /* AVX VNNI instructions */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue