mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
a19a161482
This patch introduces a new AP queue internal attribute se_bound which reflects the bound state of an APQN within a Secure Execution environment. With introduction of Secure Execution guests now an AP firmware queue needs to be bound to the guest before usage. This patch introduces a new internal attribute reflecting this bound state and some glue code to handle this new field during lifetime of an AP queue device. Together with that now the zcrypt scheduler considers the state of the AP queues when a message is about to be distributed among the existing queues. There is a new function ap_queue_usable() which returns true only when all conditions for using this AP queue device are fulfilled. In details this means: the AP queue needs to be configured, not checkstopped and within an SE environment it needs to be bound. So the new function gives and indication if the AP queue device is ready to serve requests or not. Signed-off-by: Harald Freudenberger <freude@linux.ibm.com> Reviewed-by: Holger Dengler <dengler@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com> |
||
---|---|---|
.. | ||
ap_bus.c | ||
ap_bus.h | ||
ap_card.c | ||
ap_debug.h | ||
ap_queue.c | ||
Makefile | ||
pkey_api.c | ||
vfio_ap_debug.h | ||
vfio_ap_drv.c | ||
vfio_ap_ops.c | ||
vfio_ap_private.h | ||
zcrypt_api.c | ||
zcrypt_api.h | ||
zcrypt_card.c | ||
zcrypt_cca_key.h | ||
zcrypt_ccamisc.c | ||
zcrypt_ccamisc.h | ||
zcrypt_cex2a.c | ||
zcrypt_cex2a.h | ||
zcrypt_cex2c.c | ||
zcrypt_cex2c.h | ||
zcrypt_cex4.c | ||
zcrypt_cex4.h | ||
zcrypt_debug.h | ||
zcrypt_ep11misc.c | ||
zcrypt_ep11misc.h | ||
zcrypt_error.h | ||
zcrypt_msgtype6.c | ||
zcrypt_msgtype6.h | ||
zcrypt_msgtype50.c | ||
zcrypt_msgtype50.h | ||
zcrypt_queue.c |