vfio-ccw: fence off transport mode
authorCornelia Huck <cohuck@redhat.com>
Thu, 22 Feb 2018 14:35:43 +0000 (15:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 May 2018 05:52:37 +0000 (07:52 +0200)
commit7efeaf6d5193ce2d45d736a47b431a2f6202ba05
tree00841d3b07a8d7f4bec3e78981e3e04e61fafb91
parentfe2fc07d2a31f1dbdca0f601ca52d9fdb9a6758f
vfio-ccw: fence off transport mode

[ Upstream commit 9851bc77e62499957567e7c39a5beba7d6de6296 ]

vfio-ccw only supports command mode for channel programs, not transport
mode. User space is supposed to already take care of that and pass us
command-mode ORBs only, but better make sure and return an error to
the caller instead of trying to process tcws as ccws.

Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Acked-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/s390/cio/vfio_ccw_fsm.c