mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
cpacfstats: add MSA 10 and MSA 11 counters
MSA 10 and MSA 11 introduce new function codes containing Full XTS functions for KM instruction and HMAC functions for KMAC instruction. Additional Full XTS and HMAC for PCKMO instruction is introduced. Signed-off-by: Finn Callies <fcallies@linux.ibm.com> Reviewed-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Ingo Franzki <ifranzki@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
c364692e7a
commit
5218c243f4
@@ -23,7 +23,7 @@
|
|||||||
* Number of PAI counters. Contains all counters regardless of kernel or user
|
* Number of PAI counters. Contains all counters regardless of kernel or user
|
||||||
* space
|
* space
|
||||||
*/
|
*/
|
||||||
#define MAX_NUM_PAI 156
|
#define MAX_NUM_PAI 172
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is the sysfs directory from which cpacfstatsd daemon application loads
|
* This is the sysfs directory from which cpacfstatsd daemon application loads
|
||||||
|
|||||||
@@ -192,7 +192,27 @@ const struct pai_counter pai[] = {
|
|||||||
[152] = {"PCKMO ECC Ed25519", KERNEL_ONLY_COUNTER},
|
[152] = {"PCKMO ECC Ed25519", KERNEL_ONLY_COUNTER},
|
||||||
[153] = {"PCKMO ECC Ed448", KERNEL_ONLY_COUNTER},
|
[153] = {"PCKMO ECC Ed448", KERNEL_ONLY_COUNTER},
|
||||||
[154] = {"Reserved 1", KERNEL_ONLY_COUNTER},
|
[154] = {"Reserved 1", KERNEL_ONLY_COUNTER},
|
||||||
[155] = {"Reserved 2", KERNEL_ONLY_COUNTER}
|
[155] = {"Reserved 2", KERNEL_ONLY_COUNTER},
|
||||||
|
[156] = {"KM AES-XTS (full) 128bit", KERNEL_AND_USER_COUNTER},
|
||||||
|
[157] = {"KM AES-XTS (full) 256bit", KERNEL_AND_USER_COUNTER},
|
||||||
|
[158] = {"KM AES-XTS (full) 128bit protected key",
|
||||||
|
KERNEL_AND_USER_COUNTER},
|
||||||
|
[159] = {"KM AES-XTS (full) 256bit protected key",
|
||||||
|
KERNEL_AND_USER_COUNTER},
|
||||||
|
[160] = {"KMAC HMAC SHA 224", KERNEL_AND_USER_COUNTER},
|
||||||
|
[161] = {"KMAC HMAC SHA 256", KERNEL_AND_USER_COUNTER},
|
||||||
|
[162] = {"KMAC HMAC SHA 384", KERNEL_AND_USER_COUNTER},
|
||||||
|
[163] = {"KMAC HMAC SHA 512", KERNEL_AND_USER_COUNTER},
|
||||||
|
[164] = {"KMAC HMAC SHA 224 protected key", KERNEL_AND_USER_COUNTER},
|
||||||
|
[165] = {"KMAC HMAC SHA 256 protected key", KERNEL_AND_USER_COUNTER},
|
||||||
|
[166] = {"KMAC HMAC SHA 384 protected key", KERNEL_AND_USER_COUNTER},
|
||||||
|
[167] = {"KMAC HMAC SHA 512 protected key", KERNEL_AND_USER_COUNTER},
|
||||||
|
[168] = {"PCKMO HMAC 512 protected key", KERNEL_ONLY_COUNTER},
|
||||||
|
[169] = {"PCKMO HMAC 1024 protected key", KERNEL_ONLY_COUNTER},
|
||||||
|
[170] = {"PCKMO AES-XTS 128bit double key protected key",
|
||||||
|
KERNEL_ONLY_COUNTER},
|
||||||
|
[171] = {"PCKMO AES-XTS 256bit double key protected key",
|
||||||
|
KERNEL_ONLY_COUNTER}
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -39,7 +39,8 @@ static volatile int stopsig;
|
|||||||
*/
|
*/
|
||||||
static const unsigned int pai_idx[] = {
|
static const unsigned int pai_idx[] = {
|
||||||
// KM
|
// KM
|
||||||
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
|
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 156, 157, 158,
|
||||||
|
159,
|
||||||
// KMC
|
// KMC
|
||||||
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
|
||||||
// KMA
|
// KMA
|
||||||
@@ -55,7 +56,8 @@ static const unsigned int pai_idx[] = {
|
|||||||
// KLMD
|
// KLMD
|
||||||
81, 82, 83, 84, 85, 86, 87, 88, 89,
|
81, 82, 83, 84, 85, 86, 87, 88, 89,
|
||||||
// KMAC
|
// KMAC
|
||||||
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101,
|
90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 160, 161, 162, 163,
|
||||||
|
164, 165, 166, 167,
|
||||||
// PCC
|
// PCC
|
||||||
102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
|
102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113,
|
||||||
114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
|
114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124,
|
||||||
@@ -65,7 +67,7 @@ static const unsigned int pai_idx[] = {
|
|||||||
128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139,
|
||||||
140, 141, 142,
|
140, 141, 142,
|
||||||
// PCKMO
|
// PCKMO
|
||||||
143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153,
|
143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 168, 169, 170, 171,
|
||||||
// Reserved
|
// Reserved
|
||||||
154, 155
|
154, 155
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user