xref: /qemu/target/s390x/cpu_features_def.h (revision ec3aadb13ed601f8d77bd4efd80b545ddc84c697)
178241744SMichael Mueller /*
278241744SMichael Mueller  * CPU features/facilities for s390
378241744SMichael Mueller  *
478241744SMichael Mueller  * Copyright 2016 IBM Corp.
578241744SMichael Mueller  *
678241744SMichael Mueller  * Author(s): Michael Mueller <mimu@linux.vnet.ibm.com>
778241744SMichael Mueller  *            David Hildenbrand <dahi@linux.vnet.ibm.com>
878241744SMichael Mueller  *
978241744SMichael Mueller  * This work is licensed under the terms of the GNU GPL, version 2 or (at
1078241744SMichael Mueller  * your option) any later version. See the COPYING file in the top-level
1178241744SMichael Mueller  * directory.
1278241744SMichael Mueller  */
1378241744SMichael Mueller 
1478241744SMichael Mueller #ifndef TARGET_S390X_CPU_FEATURES_DEF_H
1578241744SMichael Mueller #define TARGET_S390X_CPU_FEATURES_DEF_H
1678241744SMichael Mueller 
1778241744SMichael Mueller typedef enum {
18*ec3aadb1SJason J. Herne     /* Stfle */
1978241744SMichael Mueller     S390_FEAT_ESAN3 = 0,
2078241744SMichael Mueller     S390_FEAT_ZARCH,
2178241744SMichael Mueller     S390_FEAT_DAT_ENH,
2278241744SMichael Mueller     S390_FEAT_IDTE_SEGMENT,
2378241744SMichael Mueller     S390_FEAT_IDTE_REGION,
2478241744SMichael Mueller     S390_FEAT_ASN_LX_REUSE,
2578241744SMichael Mueller     S390_FEAT_STFLE,
2678241744SMichael Mueller     S390_FEAT_EDAT,
2778241744SMichael Mueller     S390_FEAT_SENSE_RUNNING_STATUS,
2878241744SMichael Mueller     S390_FEAT_CONDITIONAL_SSKE,
2978241744SMichael Mueller     S390_FEAT_CONFIGURATION_TOPOLOGY,
3078241744SMichael Mueller     S390_FEAT_IPTE_RANGE,
3178241744SMichael Mueller     S390_FEAT_NONQ_KEY_SETTING,
3278241744SMichael Mueller     S390_FEAT_EXTENDED_TRANSLATION_2,
3378241744SMichael Mueller     S390_FEAT_MSA,
3478241744SMichael Mueller     S390_FEAT_LONG_DISPLACEMENT,
3578241744SMichael Mueller     S390_FEAT_LONG_DISPLACEMENT_FAST,
3678241744SMichael Mueller     S390_FEAT_HFP_MADDSUB,
3778241744SMichael Mueller     S390_FEAT_EXTENDED_IMMEDIATE,
3878241744SMichael Mueller     S390_FEAT_EXTENDED_TRANSLATION_3,
3978241744SMichael Mueller     S390_FEAT_HFP_UNNORMALIZED_EXT,
4078241744SMichael Mueller     S390_FEAT_ETF2_ENH,
4178241744SMichael Mueller     S390_FEAT_STORE_CLOCK_FAST,
4278241744SMichael Mueller     S390_FEAT_PARSING_ENH,
4378241744SMichael Mueller     S390_FEAT_MOVE_WITH_OPTIONAL_SPEC,
4478241744SMichael Mueller     S390_FEAT_TOD_CLOCK_STEERING,
4578241744SMichael Mueller     S390_FEAT_ETF3_ENH,
4678241744SMichael Mueller     S390_FEAT_EXTRACT_CPU_TIME,
4778241744SMichael Mueller     S390_FEAT_COMPARE_AND_SWAP_AND_STORE,
4878241744SMichael Mueller     S390_FEAT_COMPARE_AND_SWAP_AND_STORE_2,
4978241744SMichael Mueller     S390_FEAT_GENERAL_INSTRUCTIONS_EXT,
5078241744SMichael Mueller     S390_FEAT_EXECUTE_EXT,
5178241744SMichael Mueller     S390_FEAT_ENHANCED_MONITOR,
5278241744SMichael Mueller     S390_FEAT_FLOATING_POINT_EXT,
5378241744SMichael Mueller     S390_FEAT_SET_PROGRAM_PARAMETERS,
5478241744SMichael Mueller     S390_FEAT_FLOATING_POINT_SUPPPORT_ENH,
5578241744SMichael Mueller     S390_FEAT_DFP,
5678241744SMichael Mueller     S390_FEAT_DFP_FAST,
5778241744SMichael Mueller     S390_FEAT_PFPO,
5878241744SMichael Mueller     S390_FEAT_STFLE_45,
5978241744SMichael Mueller     S390_FEAT_CMPSC_ENH,
6078241744SMichael Mueller     S390_FEAT_DFP_ZONED_CONVERSION,
6178241744SMichael Mueller     S390_FEAT_STFLE_49,
6278241744SMichael Mueller     S390_FEAT_CONSTRAINT_TRANSACTIONAL_EXE,
6378241744SMichael Mueller     S390_FEAT_LOCAL_TLB_CLEARING,
6478241744SMichael Mueller     S390_FEAT_INTERLOCKED_ACCESS_2,
6578241744SMichael Mueller     S390_FEAT_STFLE_53,
6678241744SMichael Mueller     S390_FEAT_MSA_EXT_5,
6778241744SMichael Mueller     S390_FEAT_RUNTIME_INSTRUMENTATION,
6878241744SMichael Mueller     S390_FEAT_TRANSACTIONAL_EXE,
6978241744SMichael Mueller     S390_FEAT_STORE_HYPERVISOR_INFO,
7078241744SMichael Mueller     S390_FEAT_ACCESS_EXCEPTION_FS_INDICATION,
7178241744SMichael Mueller     S390_FEAT_MSA_EXT_3,
7278241744SMichael Mueller     S390_FEAT_MSA_EXT_4,
7378241744SMichael Mueller     S390_FEAT_EDAT_2,
7478241744SMichael Mueller     S390_FEAT_DFP_PACKED_CONVERSION,
7578241744SMichael Mueller     S390_FEAT_VECTOR,
76*ec3aadb1SJason J. Herne 
77*ec3aadb1SJason J. Herne     /* Sclp Conf Char */
7878241744SMichael Mueller     S390_FEAT_SIE_GSLS,
7978241744SMichael Mueller     S390_FEAT_ESOP,
80*ec3aadb1SJason J. Herne 
81*ec3aadb1SJason J. Herne     /* Sclp Conf Char Ext */
8278241744SMichael Mueller     S390_FEAT_SIE_64BSCAO,
8378241744SMichael Mueller     S390_FEAT_SIE_CMMA,
8478241744SMichael Mueller     S390_FEAT_SIE_PFMFI,
8578241744SMichael Mueller     S390_FEAT_SIE_IBS,
86*ec3aadb1SJason J. Herne 
87*ec3aadb1SJason J. Herne     /* Sclp Cpu */
8878241744SMichael Mueller     S390_FEAT_SIE_F2,
8978241744SMichael Mueller     S390_FEAT_SIE_SKEY,
9078241744SMichael Mueller     S390_FEAT_SIE_GPERE,
9178241744SMichael Mueller     S390_FEAT_SIE_SIIF,
9278241744SMichael Mueller     S390_FEAT_SIE_SIGPIF,
9378241744SMichael Mueller     S390_FEAT_SIE_IB,
9478241744SMichael Mueller     S390_FEAT_SIE_CEI,
95*ec3aadb1SJason J. Herne 
96*ec3aadb1SJason J. Herne     /* Misc */
9778241744SMichael Mueller     S390_FEAT_DAT_ENH_2,
9878241744SMichael Mueller     S390_FEAT_CMM,
99*ec3aadb1SJason J. Herne 
100*ec3aadb1SJason J. Herne     /* PLO */
10178241744SMichael Mueller     S390_FEAT_PLO_CL,
10278241744SMichael Mueller     S390_FEAT_PLO_CLG,
10378241744SMichael Mueller     S390_FEAT_PLO_CLGR,
10478241744SMichael Mueller     S390_FEAT_PLO_CLX,
10578241744SMichael Mueller     S390_FEAT_PLO_CS,
10678241744SMichael Mueller     S390_FEAT_PLO_CSG,
10778241744SMichael Mueller     S390_FEAT_PLO_CSGR,
10878241744SMichael Mueller     S390_FEAT_PLO_CSX,
10978241744SMichael Mueller     S390_FEAT_PLO_DCS,
11078241744SMichael Mueller     S390_FEAT_PLO_DCSG,
11178241744SMichael Mueller     S390_FEAT_PLO_DCSGR,
11278241744SMichael Mueller     S390_FEAT_PLO_DCSX,
11378241744SMichael Mueller     S390_FEAT_PLO_CSST,
11478241744SMichael Mueller     S390_FEAT_PLO_CSSTG,
11578241744SMichael Mueller     S390_FEAT_PLO_CSSTGR,
11678241744SMichael Mueller     S390_FEAT_PLO_CSSTX,
11778241744SMichael Mueller     S390_FEAT_PLO_CSDST,
11878241744SMichael Mueller     S390_FEAT_PLO_CSDSTG,
11978241744SMichael Mueller     S390_FEAT_PLO_CSDSTGR,
12078241744SMichael Mueller     S390_FEAT_PLO_CSDSTX,
12178241744SMichael Mueller     S390_FEAT_PLO_CSTST,
12278241744SMichael Mueller     S390_FEAT_PLO_CSTSTG,
12378241744SMichael Mueller     S390_FEAT_PLO_CSTSTGR,
12478241744SMichael Mueller     S390_FEAT_PLO_CSTSTX,
125*ec3aadb1SJason J. Herne 
126*ec3aadb1SJason J. Herne     /* PTFF */
12778241744SMichael Mueller     S390_FEAT_PTFF_QTO,
12878241744SMichael Mueller     S390_FEAT_PTFF_QSI,
12978241744SMichael Mueller     S390_FEAT_PTFF_QPT,
13078241744SMichael Mueller     S390_FEAT_PTFF_QUI,
13178241744SMichael Mueller     S390_FEAT_PTFF_QTOU,
13278241744SMichael Mueller     S390_FEAT_PTFF_STO,
13378241744SMichael Mueller     S390_FEAT_PTFF_STOU,
134*ec3aadb1SJason J. Herne 
135*ec3aadb1SJason J. Herne     /* KMAC */
13678241744SMichael Mueller     S390_FEAT_KMAC_DEA,
13778241744SMichael Mueller     S390_FEAT_KMAC_TDEA_128,
13878241744SMichael Mueller     S390_FEAT_KMAC_TDEA_192,
13978241744SMichael Mueller     S390_FEAT_KMAC_EDEA,
14078241744SMichael Mueller     S390_FEAT_KMAC_ETDEA_128,
14178241744SMichael Mueller     S390_FEAT_KMAC_ETDEA_192,
14278241744SMichael Mueller     S390_FEAT_KMAC_AES_128,
14378241744SMichael Mueller     S390_FEAT_KMAC_AES_192,
14478241744SMichael Mueller     S390_FEAT_KMAC_AES_256,
14578241744SMichael Mueller     S390_FEAT_KMAC_EAES_128,
14678241744SMichael Mueller     S390_FEAT_KMAC_EAES_192,
14778241744SMichael Mueller     S390_FEAT_KMAC_EAES_256,
148*ec3aadb1SJason J. Herne 
149*ec3aadb1SJason J. Herne     /* KMC */
15078241744SMichael Mueller     S390_FEAT_KMC_DEA,
15178241744SMichael Mueller     S390_FEAT_KMC_TDEA_128,
15278241744SMichael Mueller     S390_FEAT_KMC_TDEA_192,
15378241744SMichael Mueller     S390_FEAT_KMC_EDEA,
15478241744SMichael Mueller     S390_FEAT_KMC_ETDEA_128,
15578241744SMichael Mueller     S390_FEAT_KMC_ETDEA_192,
15678241744SMichael Mueller     S390_FEAT_KMC_AES_128,
15778241744SMichael Mueller     S390_FEAT_KMC_AES_192,
15878241744SMichael Mueller     S390_FEAT_KMC_AES_256,
15978241744SMichael Mueller     S390_FEAT_KMC_EAES_128,
16078241744SMichael Mueller     S390_FEAT_KMC_EAES_192,
16178241744SMichael Mueller     S390_FEAT_KMC_EAES_256,
16278241744SMichael Mueller     S390_FEAT_KMC_PRNG,
163*ec3aadb1SJason J. Herne 
164*ec3aadb1SJason J. Herne     /* KM */
16578241744SMichael Mueller     S390_FEAT_KM_DEA,
16678241744SMichael Mueller     S390_FEAT_KM_TDEA_128,
16778241744SMichael Mueller     S390_FEAT_KM_TDEA_192,
16878241744SMichael Mueller     S390_FEAT_KM_EDEA,
16978241744SMichael Mueller     S390_FEAT_KM_ETDEA_128,
17078241744SMichael Mueller     S390_FEAT_KM_ETDEA_192,
17178241744SMichael Mueller     S390_FEAT_KM_AES_128,
17278241744SMichael Mueller     S390_FEAT_KM_AES_192,
17378241744SMichael Mueller     S390_FEAT_KM_AES_256,
17478241744SMichael Mueller     S390_FEAT_KM_EAES_128,
17578241744SMichael Mueller     S390_FEAT_KM_EAES_192,
17678241744SMichael Mueller     S390_FEAT_KM_EAES_256,
17778241744SMichael Mueller     S390_FEAT_KM_XTS_AES_128,
17878241744SMichael Mueller     S390_FEAT_KM_XTS_AES_256,
17978241744SMichael Mueller     S390_FEAT_KM_XTS_EAES_128,
18078241744SMichael Mueller     S390_FEAT_KM_XTS_EAES_256,
181*ec3aadb1SJason J. Herne 
182*ec3aadb1SJason J. Herne     /* KIMD */
18378241744SMichael Mueller     S390_FEAT_KIMD_SHA_1,
18478241744SMichael Mueller     S390_FEAT_KIMD_SHA_256,
18578241744SMichael Mueller     S390_FEAT_KIMD_SHA_512,
18678241744SMichael Mueller     S390_FEAT_KIMD_GHASH,
187*ec3aadb1SJason J. Herne 
188*ec3aadb1SJason J. Herne     /* KLMD */
18978241744SMichael Mueller     S390_FEAT_KLMD_SHA_1,
19078241744SMichael Mueller     S390_FEAT_KLMD_SHA_256,
19178241744SMichael Mueller     S390_FEAT_KLMD_SHA_512,
192*ec3aadb1SJason J. Herne 
193*ec3aadb1SJason J. Herne     /* PCKMO */
19478241744SMichael Mueller     S390_FEAT_PCKMO_EDEA,
19578241744SMichael Mueller     S390_FEAT_PCKMO_ETDEA_128,
19678241744SMichael Mueller     S390_FEAT_PCKMO_ETDEA_256,
19778241744SMichael Mueller     S390_FEAT_PCKMO_AES_128,
19878241744SMichael Mueller     S390_FEAT_PCKMO_AES_192,
19978241744SMichael Mueller     S390_FEAT_PCKMO_AES_256,
200*ec3aadb1SJason J. Herne 
201*ec3aadb1SJason J. Herne     /* KMCTR */
20278241744SMichael Mueller     S390_FEAT_KMCTR_DEA,
20378241744SMichael Mueller     S390_FEAT_KMCTR_TDEA_128,
20478241744SMichael Mueller     S390_FEAT_KMCTR_TDEA_192,
20578241744SMichael Mueller     S390_FEAT_KMCTR_EDEA,
20678241744SMichael Mueller     S390_FEAT_KMCTR_ETDEA_128,
20778241744SMichael Mueller     S390_FEAT_KMCTR_ETDEA_192,
20878241744SMichael Mueller     S390_FEAT_KMCTR_AES_128,
20978241744SMichael Mueller     S390_FEAT_KMCTR_AES_192,
21078241744SMichael Mueller     S390_FEAT_KMCTR_AES_256,
21178241744SMichael Mueller     S390_FEAT_KMCTR_EAES_128,
21278241744SMichael Mueller     S390_FEAT_KMCTR_EAES_192,
21378241744SMichael Mueller     S390_FEAT_KMCTR_EAES_256,
214*ec3aadb1SJason J. Herne 
215*ec3aadb1SJason J. Herne     /* KMF */
21678241744SMichael Mueller     S390_FEAT_KMF_DEA,
21778241744SMichael Mueller     S390_FEAT_KMF_TDEA_128,
21878241744SMichael Mueller     S390_FEAT_KMF_TDEA_192,
21978241744SMichael Mueller     S390_FEAT_KMF_EDEA,
22078241744SMichael Mueller     S390_FEAT_KMF_ETDEA_128,
22178241744SMichael Mueller     S390_FEAT_KMF_ETDEA_192,
22278241744SMichael Mueller     S390_FEAT_KMF_AES_128,
22378241744SMichael Mueller     S390_FEAT_KMF_AES_192,
22478241744SMichael Mueller     S390_FEAT_KMF_AES_256,
22578241744SMichael Mueller     S390_FEAT_KMF_EAES_128,
22678241744SMichael Mueller     S390_FEAT_KMF_EAES_192,
22778241744SMichael Mueller     S390_FEAT_KMF_EAES_256,
228*ec3aadb1SJason J. Herne 
229*ec3aadb1SJason J. Herne     /* KMO */
23078241744SMichael Mueller     S390_FEAT_KMO_DEA,
23178241744SMichael Mueller     S390_FEAT_KMO_TDEA_128,
23278241744SMichael Mueller     S390_FEAT_KMO_TDEA_192,
23378241744SMichael Mueller     S390_FEAT_KMO_EDEA,
23478241744SMichael Mueller     S390_FEAT_KMO_ETDEA_128,
23578241744SMichael Mueller     S390_FEAT_KMO_ETDEA_192,
23678241744SMichael Mueller     S390_FEAT_KMO_AES_128,
23778241744SMichael Mueller     S390_FEAT_KMO_AES_192,
23878241744SMichael Mueller     S390_FEAT_KMO_AES_256,
23978241744SMichael Mueller     S390_FEAT_KMO_EAES_128,
24078241744SMichael Mueller     S390_FEAT_KMO_EAES_192,
24178241744SMichael Mueller     S390_FEAT_KMO_EAES_256,
242*ec3aadb1SJason J. Herne 
243*ec3aadb1SJason J. Herne     /* PCC */
24478241744SMichael Mueller     S390_FEAT_PCC_CMAC_DEA,
24578241744SMichael Mueller     S390_FEAT_PCC_CMAC_TDEA_128,
24678241744SMichael Mueller     S390_FEAT_PCC_CMAC_TDEA_192,
24778241744SMichael Mueller     S390_FEAT_PCC_CMAC_ETDEA_128,
24878241744SMichael Mueller     S390_FEAT_PCC_CMAC_ETDEA_192,
24978241744SMichael Mueller     S390_FEAT_PCC_CMAC_TDEA,
25078241744SMichael Mueller     S390_FEAT_PCC_CMAC_AES_128,
25178241744SMichael Mueller     S390_FEAT_PCC_CMAC_AES_192,
25278241744SMichael Mueller     S390_FEAT_PCC_CMAC_AES_256,
25378241744SMichael Mueller     S390_FEAT_PCC_CMAC_EAES_128,
25478241744SMichael Mueller     S390_FEAT_PCC_CMAC_EAES_192,
25578241744SMichael Mueller     S390_FEAT_PCC_CMAC_EAES_256,
25678241744SMichael Mueller     S390_FEAT_PCC_XTS_AES_128,
25778241744SMichael Mueller     S390_FEAT_PCC_XTS_AES_256,
25878241744SMichael Mueller     S390_FEAT_PCC_XTS_EAES_128,
25978241744SMichael Mueller     S390_FEAT_PCC_XTS_EAES_256,
260*ec3aadb1SJason J. Herne 
261*ec3aadb1SJason J. Herne     /* PPNO */
26278241744SMichael Mueller     S390_FEAT_PPNO_SHA_512_DRNG,
26378241744SMichael Mueller     S390_FEAT_MAX,
26478241744SMichael Mueller } S390Feat;
26578241744SMichael Mueller 
26678241744SMichael Mueller #endif /* TARGET_S390X_CPU_FEATURES_DEF_H */
267