diff options
author | Harald Freudenberger <freude@linux.ibm.com> | 2019-11-22 16:30:06 +0100 |
---|---|---|
committer | Vasily Gorbik <gor@linux.ibm.com> | 2020-01-09 16:59:18 +0100 |
commit | 0c874cd04292c7ee22d70eefc341fa2648f41f46 (patch) | |
tree | 2902a080a58180da1d8949f85a905b91943b725d /arch | |
parent | s390/zcrypt: Fix CCA cipher key gen with clear key value function (diff) | |
download | linux-0c874cd04292c7ee22d70eefc341fa2648f41f46.tar.xz linux-0c874cd04292c7ee22d70eefc341fa2648f41f46.zip |
s390/zcrypt: move ap device reset from bus to driver code
This patch moves the reset invocation of an ap device when
fresh detected from the ap bus to the probe() function of
the driver responsible for this device.
The virtualisation of ap devices makes it necessary to
remove unconditioned resets on fresh appearing apqn devices.
It may be that such a device is already enabled for guest
usage. So there may be a race condition between host ap bus
and guest ap bus doing the reset. This patch moves the
reset from the ap bus to the zcrypt drivers. So if there
is no zcrypt driver bound to an ap device - for example
the ap device is bound to the vfio device driver - the
ap device is untouched passed to the vfio device driver.
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions