s390x/css: {c,h,t,r,x}sch: require enable AND device number valid
commitc679e74d2e29fa08ede9121d59aee4e9675611d7
authorSascha Silbe <silbe@linux.vnet.ibm.com>
Mon, 19 Sep 2016 19:12:03 +0000 (19 21:12 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 28 Sep 2016 11:24:51 +0000 (28 13:24 +0200)
tree15297a8249488223ee6f6638693f57677fbbb9d0
parent6b5ffb14b78f8bb4835d0cd8e3d2826720acfa43
s390x/css: {c,h,t,r,x}sch: require enable AND device number valid

According to the PoP, subchannels are only considered operational if
they are enabled _and_ the device number is valid. With the current
checks being enabled _or_ having a valid device number was
sufficient. This caused qemu to allow IO on subchannels that were not
enabled.

Fix the checks to require both bits to be set.

Signed-off-by: Sascha Silbe <silbe@linux.vnet.ibm.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/s390x/css.c