]> git.ipfire.org Git - thirdparty/qemu.git/commit
s390-ccw: force diag 308 subcode to unsigned long
authorCornelia Huck <cohuck@redhat.com>
Wed, 2 May 2018 12:52:21 +0000 (14:52 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 11 Jul 2018 16:48:16 +0000 (11:48 -0500)
commit38b7a3ea724ecdf63dbe989620970e5aab96b14a
tree7fcc21633faa1b2acf55ae7906078831c85147d1
parentcb7a41f3f93e9d85fc739e3036612e1b622a4651
s390-ccw: force diag 308 subcode to unsigned long

We currently pass an integer as the subcode parameter. However,
the upper bits of the register containing the subcode need to
be 0, which is not guaranteed unless we explicitly specify the
subcode to be an unsigned long value.

Fixes: d046c51dad3 ("pc-bios/s390-ccw: Get device address via diag 308/6")
Cc: qemu-stable@nongnu.org
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Tested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
(cherry picked from commit 63d8b5ace31c1e1f3996fe4cd551d6d377594d5a)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
pc-bios/s390-ccw/iplb.h