diff options
author | Farhan Ali <alifm@linux.ibm.com> | 2019-07-11 10:28:55 -0400 |
---|---|---|
committer | Cornelia Huck <cohuck@redhat.com> | 2019-07-15 08:22:57 -0400 |
commit | 127e62174041496b383f82d696e1592ce6838604 (patch) | |
tree | 81f23c0114c058e72daa733751d41f088644be6c | |
parent | f4c9939433bd396d0b08e803b2b880a9d02682b9 (diff) |
vfio-ccw: Update documentation for csch/hsch
We now support CLEAR SUBCHANNEL and HALT SUBCHANNEL
via ccw_cmd_region.
Fixes: d5afd5d135c8 ("vfio-ccw: add handling for async channel instructions")
Signed-off-by: Farhan Ali <alifm@linux.ibm.com>
Message-Id: <7d977612c3f3152ffb950d77ae11b4b25c1e20c4.1562854091.git.alifm@linux.ibm.com>
[CH: properly mark region as literal block]
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
-rw-r--r-- | Documentation/s390/vfio-ccw.rst | 31 |
1 files changed, 28 insertions, 3 deletions
diff --git a/Documentation/s390/vfio-ccw.rst b/Documentation/s390/vfio-ccw.rst index 1f6d0b56d53e..be2af10e12b4 100644 --- a/Documentation/s390/vfio-ccw.rst +++ b/Documentation/s390/vfio-ccw.rst | |||
@@ -180,6 +180,13 @@ The process of how these work together. | |||
180 | add it to an iommu_group and a vfio_group. Then we could pass through | 180 | add it to an iommu_group and a vfio_group. Then we could pass through |
181 | the mdev to a guest. | 181 | the mdev to a guest. |
182 | 182 | ||
183 | |||
184 | VFIO-CCW Regions | ||
185 | ---------------- | ||
186 | |||
187 | The vfio-ccw driver exposes MMIO regions to accept requests from and return | ||
188 | results to userspace. | ||
189 | |||
183 | vfio-ccw I/O region | 190 | vfio-ccw I/O region |
184 | ------------------- | 191 | ------------------- |
185 | 192 | ||
@@ -205,6 +212,25 @@ irb_area stores the I/O result. | |||
205 | 212 | ||
206 | ret_code stores a return code for each access of the region. | 213 | ret_code stores a return code for each access of the region. |
207 | 214 | ||
215 | This region is always available. | ||
216 | |||
217 | vfio-ccw cmd region | ||
218 | ------------------- | ||
219 | |||
220 | The vfio-ccw cmd region is used to accept asynchronous instructions | ||
221 | from userspace. | ||
222 | |||
223 | #define VFIO_CCW_ASYNC_CMD_HSCH (1 << 0) | ||
224 | #define VFIO_CCW_ASYNC_CMD_CSCH (1 << 1) | ||
225 | struct ccw_cmd_region { | ||
226 | __u32 command; | ||
227 | __u32 ret_code; | ||
228 | } __packed; | ||
229 | |||
230 | This region is exposed via region type VFIO_REGION_SUBTYPE_CCW_ASYNC_CMD. | ||
231 | |||
232 | Currently, CLEAR SUBCHANNEL and HALT SUBCHANNEL use this region. | ||
233 | |||
208 | vfio-ccw operation details | 234 | vfio-ccw operation details |
209 | -------------------------- | 235 | -------------------------- |
210 | 236 | ||
@@ -306,9 +332,8 @@ Together with the corresponding work in QEMU, we can bring the passed | |||
306 | through DASD/ECKD device online in a guest now and use it as a block | 332 | through DASD/ECKD device online in a guest now and use it as a block |
307 | device. | 333 | device. |
308 | 334 | ||
309 | While the current code allows the guest to start channel programs via | 335 | The current code allows the guest to start channel programs via |
310 | START SUBCHANNEL, support for HALT SUBCHANNEL or CLEAR SUBCHANNEL is | 336 | START SUBCHANNEL, and to issue HALT SUBCHANNEL and CLEAR SUBCHANNEL. |
311 | not yet implemented. | ||
312 | 337 | ||
313 | vfio-ccw supports classic (command mode) channel I/O only. Transport | 338 | vfio-ccw supports classic (command mode) channel I/O only. Transport |
314 | mode (HPF) is not supported. | 339 | mode (HPF) is not supported. |