diff options
author | Tony Krowiak <[email protected]> | 2021-08-23 17:20:46 -0400 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2021-08-24 12:14:05 -0600 |
commit | 1e753732bda6dcf888ea0b90b2a91ac1c1a0bae9 (patch) | |
tree | fe3e3ceaddddd778884646e03eca0ec224f5ee6c /drivers/usb/cdns3/cdns3-trace.c | |
parent | eb24c1007e6852e024dc33b0dd9617b8500a1291 (diff) |
s390/vfio-ap: r/w lock for PQAP interception handler function pointer
The function pointer to the interception handler for the PQAP instruction
can get changed during the interception process. Let's add a
semaphore to struct kvm_s390_crypto to control read/write access to the
function pointer contained therein.
The semaphore must be locked for write access by the vfio_ap device driver
when notified that the KVM pointer has been set or cleared. It must be
locked for read access by the interception framework when the PQAP
instruction is intercepted.
Signed-off-by: Tony Krowiak <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Christian Borntraeger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions