vfio-ccw: Introduce a new CRW region
authorFarhan Ali <alifm@linux.ibm.com>
Tue, 5 May 2020 12:27:43 +0000 (14:27 +0200)
committerCornelia Huck <cohuck@redhat.com>
Wed, 3 Jun 2020 09:27:43 +0000 (11:27 +0200)
commitd8cac29b1d52204e6632d2887eff766acd02b9aa
treecef969d5a9b5e23684a582d11218b23ac5512896
parent4296151d231eeee78514bf7f495c46683785255d
vfio-ccw: Introduce a new CRW region

This region provides a mechanism to pass a Channel Report Word
that affect vfio-ccw devices, and needs to be passed to the guest
for its awareness and/or processing.

The base driver (see crw_collect_info()) provides space for two
CRWs, as a subchannel event may have two CRWs chained together
(one for the ssid, one for the subchannel).  As vfio-ccw will
deal with everything at the subchannel level, provide space
for a single CRW to be transferred in one shot.

Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
Signed-off-by: Eric Farman <farman@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Message-Id: <20200505122745.53208-7-farman@linux.ibm.com>
[CH: added padding to ccw_crw_region]
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Documentation/s390/vfio-ccw.rst
drivers/s390/cio/vfio_ccw_chp.c
drivers/s390/cio/vfio_ccw_drv.c
drivers/s390/cio/vfio_ccw_ops.c
drivers/s390/cio/vfio_ccw_private.h
include/uapi/linux/vfio.h
include/uapi/linux/vfio_ccw.h