OSDN Git Service

s390x/css: Introduce an ESW struct
authorEric Farman <farman@linux.ibm.com>
Thu, 17 Jun 2021 23:25:34 +0000 (01:25 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 21 Jun 2021 06:48:21 +0000 (08:48 +0200)
commit3fdc622ad79636f3d7f8bed50a53bc28af1850e1
tree845ed9494274840f05c2f7832a6073ee455f6474
parent10b81272b305da375c3c3e9ec86f2e35df702f2e
s390x/css: Introduce an ESW struct

The Interrupt Response Block is comprised of several other
structures concatenated together, but only the 12-byte
Subchannel-Status Word (SCSW) is defined as a proper struct.
Everything else is a simple array of 32-bit words.

Let's define a proper struct for the 20-byte Extended-Status
Word (ESW) so that we can make good decisions about the sense
data that would go into the ECW area for virtual vs
passthrough devices.

[CH: adapted ESW definition to build with mingw, as discussed]
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Message-Id: <20210617232537.1337506-2-farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/css.c
include/hw/s390x/ioinst.h