s390/zcrypt: Introduce pre-allocated device status array for ep11 misc
authorHarald Freudenberger <freude@linux.ibm.com>
Thu, 24 Apr 2025 13:36:04 +0000 (15:36 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 30 Apr 2025 09:34:01 +0000 (11:34 +0200)
commitd2fd25b390fd5a75cd69de1a87dc129a26509baa
tree50f2c1d148e22bb9727a6a74da1386a7c48b2446
parentef800db6152e2879af1ae40b3a0974771752ad34
s390/zcrypt: Introduce pre-allocated device status array for ep11 misc

Introduce a pre-allocated device status array memory together with
a mutex controlling the occupation to be used by the findcard()
function. Limit the device status array to max 128 cards and max
128 domains to reduce the size of this pre-allocated memory to 64 KB.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Reviewed-by: Holger Dengler <dengler@linux.ibm.com>
Link: https://lore.kernel.org/r/20250424133619.16495-11-freude@linux.ibm.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
drivers/s390/crypto/zcrypt_ep11misc.c