~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/x86/include/asm/disabled-features.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /arch/x86/include/asm/disabled-features.h (Architecture sparc64) and /arch/m68k/include/asm-m68k/disabled-features.h (Architecture m68k)


  1 #ifndef _ASM_X86_DISABLED_FEATURES_H                1 
  2 #define _ASM_X86_DISABLED_FEATURES_H              
  3                                                   
  4 /* These features, although they might be avai    
  5  * will not be used because the compile option    
  6  * them are not present.                          
  7  *                                                
  8  * This code allows them to be checked and dis    
  9  * compile time without an explicit #ifdef.  U    
 10  * cpu_feature_enabled().                         
 11  */                                               
 12                                                   
 13 #ifdef CONFIG_X86_UMIP                            
 14 # define DISABLE_UMIP   0                         
 15 #else                                             
 16 # define DISABLE_UMIP   (1<<(X86_FEATURE_UMIP     
 17 #endif                                            
 18                                                   
 19 #ifdef CONFIG_X86_64                              
 20 # define DISABLE_VME            (1<<(X86_FEATU    
 21 # define DISABLE_K6_MTRR        (1<<(X86_FEATU    
 22 # define DISABLE_CYRIX_ARR      (1<<(X86_FEATU    
 23 # define DISABLE_CENTAUR_MCR    (1<<(X86_FEATU    
 24 # define DISABLE_PCID           0                 
 25 #else                                             
 26 # define DISABLE_VME            0                 
 27 # define DISABLE_K6_MTRR        0                 
 28 # define DISABLE_CYRIX_ARR      0                 
 29 # define DISABLE_CENTAUR_MCR    0                 
 30 # define DISABLE_PCID           (1<<(X86_FEATU    
 31 #endif /* CONFIG_X86_64 */                        
 32                                                   
 33 #ifdef CONFIG_X86_INTEL_MEMORY_PROTECTION_KEYS    
 34 # define DISABLE_PKU            0                 
 35 # define DISABLE_OSPKE          0                 
 36 #else                                             
 37 # define DISABLE_PKU            (1<<(X86_FEATU    
 38 # define DISABLE_OSPKE          (1<<(X86_FEATU    
 39 #endif /* CONFIG_X86_INTEL_MEMORY_PROTECTION_K    
 40                                                   
 41 #ifdef CONFIG_X86_5LEVEL                          
 42 # define DISABLE_LA57   0                         
 43 #else                                             
 44 # define DISABLE_LA57   (1<<(X86_FEATURE_LA57     
 45 #endif                                            
 46                                                   
 47 #ifdef CONFIG_MITIGATION_PAGE_TABLE_ISOLATION     
 48 # define DISABLE_PTI            0                 
 49 #else                                             
 50 # define DISABLE_PTI            (1 << (X86_FEA    
 51 #endif                                            
 52                                                   
 53 #ifdef CONFIG_MITIGATION_RETPOLINE                
 54 # define DISABLE_RETPOLINE      0                 
 55 #else                                             
 56 # define DISABLE_RETPOLINE      ((1 << (X86_FE    
 57                                  (1 << (X86_FE    
 58 #endif                                            
 59                                                   
 60 #ifdef CONFIG_MITIGATION_RETHUNK                  
 61 # define DISABLE_RETHUNK        0                 
 62 #else                                             
 63 # define DISABLE_RETHUNK        (1 << (X86_FEA    
 64 #endif                                            
 65                                                   
 66 #ifdef CONFIG_MITIGATION_UNRET_ENTRY              
 67 # define DISABLE_UNRET          0                 
 68 #else                                             
 69 # define DISABLE_UNRET          (1 << (X86_FEA    
 70 #endif                                            
 71                                                   
 72 #ifdef CONFIG_MITIGATION_CALL_DEPTH_TRACKING      
 73 # define DISABLE_CALL_DEPTH_TRACKING    0         
 74 #else                                             
 75 # define DISABLE_CALL_DEPTH_TRACKING    (1 <<     
 76 #endif                                            
 77                                                   
 78 #ifdef CONFIG_ADDRESS_MASKING                     
 79 # define DISABLE_LAM            0                 
 80 #else                                             
 81 # define DISABLE_LAM            (1 << (X86_FEA    
 82 #endif                                            
 83                                                   
 84 #ifdef CONFIG_INTEL_IOMMU_SVM                     
 85 # define DISABLE_ENQCMD         0                 
 86 #else                                             
 87 # define DISABLE_ENQCMD         (1 << (X86_FEA    
 88 #endif                                            
 89                                                   
 90 #ifdef CONFIG_X86_SGX                             
 91 # define DISABLE_SGX    0                         
 92 #else                                             
 93 # define DISABLE_SGX    (1 << (X86_FEATURE_SGX    
 94 #endif                                            
 95                                                   
 96 #ifdef CONFIG_XEN_PV                              
 97 # define DISABLE_XENPV          0                 
 98 #else                                             
 99 # define DISABLE_XENPV          (1 << (X86_FEA    
100 #endif                                            
101                                                   
102 #ifdef CONFIG_INTEL_TDX_GUEST                     
103 # define DISABLE_TDX_GUEST      0                 
104 #else                                             
105 # define DISABLE_TDX_GUEST      (1 << (X86_FEA    
106 #endif                                            
107                                                   
108 #ifdef CONFIG_X86_USER_SHADOW_STACK               
109 #define DISABLE_USER_SHSTK      0                 
110 #else                                             
111 #define DISABLE_USER_SHSTK      (1 << (X86_FEA    
112 #endif                                            
113                                                   
114 #ifdef CONFIG_X86_KERNEL_IBT                      
115 #define DISABLE_IBT     0                         
116 #else                                             
117 #define DISABLE_IBT     (1 << (X86_FEATURE_IBT    
118 #endif                                            
119                                                   
120 #ifdef CONFIG_X86_FRED                            
121 # define DISABLE_FRED   0                         
122 #else                                             
123 # define DISABLE_FRED   (1 << (X86_FEATURE_FRE    
124 #endif                                            
125                                                   
126 #ifdef CONFIG_KVM_AMD_SEV                         
127 #define DISABLE_SEV_SNP         0                 
128 #else                                             
129 #define DISABLE_SEV_SNP         (1 << (X86_FEA    
130 #endif                                            
131                                                   
132 /*                                                
133  * Make sure to add features to the correct ma    
134  */                                               
135 #define DISABLED_MASK0  (DISABLE_VME)             
136 #define DISABLED_MASK1  0                         
137 #define DISABLED_MASK2  0                         
138 #define DISABLED_MASK3  (DISABLE_CYRIX_ARR|DIS    
139 #define DISABLED_MASK4  (DISABLE_PCID)            
140 #define DISABLED_MASK5  0                         
141 #define DISABLED_MASK6  0                         
142 #define DISABLED_MASK7  (DISABLE_PTI)             
143 #define DISABLED_MASK8  (DISABLE_XENPV|DISABLE    
144 #define DISABLED_MASK9  (DISABLE_SGX)             
145 #define DISABLED_MASK10 0                         
146 #define DISABLED_MASK11 (DISABLE_RETPOLINE|DIS    
147                          DISABLE_CALL_DEPTH_TR    
148 #define DISABLED_MASK12 (DISABLE_FRED|DISABLE_    
149 #define DISABLED_MASK13 0                         
150 #define DISABLED_MASK14 0                         
151 #define DISABLED_MASK15 0                         
152 #define DISABLED_MASK16 (DISABLE_PKU|DISABLE_O    
153                          DISABLE_ENQCMD)          
154 #define DISABLED_MASK17 0                         
155 #define DISABLED_MASK18 (DISABLE_IBT)             
156 #define DISABLED_MASK19 (DISABLE_SEV_SNP)         
157 #define DISABLED_MASK20 0                         
158 #define DISABLED_MASK21 0                         
159 #define DISABLED_MASK_CHECK BUILD_BUG_ON_ZERO(    
160                                                   
161 #endif /* _ASM_X86_DISABLED_FEATURES_H */         
162                                                   

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php