acrn-kernel/drivers/s390/crypto
Harald Freudenberger a7b1868a5f s390/zcrypt: rework ap scan bus code
Rework of the AP bus scan code. The ap_scan_bus() function
is large, so this patch splits the code by introducing a new
new function _ap_scan_bus_adapter() which deals with just
one adapter and thus reduces the scan function code complexity.

Now the AP bus scan can handle a type change of an crypto
adapter on the fly (e.g. from CEX5 to CEX6). This may be
the case with newer versions of zVM where the card may
be pure virtual and a type change is just one click.
However a type or function change requires to unregister
all queue devices and the card device and re-register them.

Comments around the AP bus scan code have been added and/or
improved to provide some hopefully useful hints about what
the code is actually doing.

Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2018-12-13 10:42:27 +01:00
..
Makefile
ap_bus.c s390/zcrypt: rework ap scan bus code 2018-12-13 10:42:27 +01:00
ap_bus.h
ap_card.c
ap_debug.h
ap_queue.c s390/zcrypt: make sysfs reset attribute trigger queue reset 2018-12-13 10:42:26 +01:00
pkey_api.c
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_cex2a.c
zcrypt_cex2a.h
zcrypt_cex2c.c
zcrypt_cex2c.h
zcrypt_cex4.c
zcrypt_cex4.h
zcrypt_debug.h
zcrypt_error.h s390/zcrypt: improve special ap message cmd handling 2018-11-30 07:22:05 +01:00
zcrypt_msgtype6.c
zcrypt_msgtype6.h
zcrypt_msgtype50.c
zcrypt_msgtype50.h
zcrypt_queue.c