s390x/css: fix cc handling for XSCH
commit6c86462220a1c7f5d673663d31d297627a2868a6
authorHalil Pasic <pasic@linux.vnet.ibm.com>
Thu, 31 Aug 2017 12:18:28 +0000 (31 14:18 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 19 Sep 2017 16:21:32 +0000 (19 18:21 +0200)
tree3127d34da49a72043ffd5b5aa83dc619e262ad22
parent7ec6a364916c0d1eba01128481e503a550a2b466
s390x/css: fix cc handling for XSCH

The function ioinst_handle_xsch is presenting cc 2 when it's supposed to
present cc 1 and the other way around, because css_do_xsch has the error
codes mixed up. Because cc 1 has precedence over cc 2 we also have to
swap the two checks.

Let us fix this.

Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Reported-by: Pierre Morel <pmorel@linux.vnet.ibm.com>
Message-Id: <20170831121828.85885-1-pasic@linux.vnet.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/css.c