vfio: ccw: push down unsupported IDA check
authorHalil Pasic <pasic@linux.ibm.com>
Wed, 16 May 2018 17:33:42 +0000 (19:33 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 29 May 2018 07:27:41 +0000 (09:27 +0200)
commitfb9e7880af357f0244f57a3dc4dd365091970b1a
treed9848a6af8fd8e7cbdebf5191c00747b8f3abb28
parent2c861d89ccda2fbcea9358eff9cc5f8fae548be5
vfio: ccw: push down unsupported IDA check

There is at least one relevant guest OS that doesn't set the IDA flags in
the ORB as we would like them, but never uses any IDA. So instead of
saying -EOPNOTSUPP when observing an ORB, such that a channel program
specified by it could be a not supported one, let us say -EOPNOTSUPP only
if the channel program is a not supported one.

Of course, the real solution would be doing proper translation for all
IDA. This is possible, but given the current code not straight forward.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Tested-by: Jason J. Herne <jjherne@linux.ibm.com>
Message-Id: <20180516173342.15174-1-pasic@linux.ibm.com>
Reviewed-by: Dong Jia Shi <bjsdjshi@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_cp.c