diff options
author | Xiao Feng Ren | 2017-05-17 02:48:11 +0200 |
---|---|---|
committer | Cornelia Huck | 2017-05-19 12:29:01 +0200 |
commit | bab482d7405f9fe3cac9c213d60f9ca9442c047b (patch) | |
tree | 7dc7df9f07152940bbfb2ee1034a982f44b66682 /hw/s390x/virtio-ccw.c | |
parent | s390x/css: introduce and realize ccw-request callback (diff) | |
download | qemu-bab482d7405f9fe3cac9c213d60f9ca9442c047b.tar.gz qemu-bab482d7405f9fe3cac9c213d60f9ca9442c047b.tar.xz qemu-bab482d7405f9fe3cac9c213d60f9ca9442c047b.zip |
s390x/css: ccw translation infrastructure
Implement a basic infrastructure of handling channel I/O instruction
interception for passed through subchannels:
1. Branch the code path of instruction interception handling by
SubChannel type.
2. For a passed-through subchannel, issue the ORB to kernel to do ccw
translation and perform an I/O operation.
3. Assign different condition code based on the I/O result, or
trigger a program check.
Signed-off-by: Xiao Feng Ren <renxiaof@linux.vnet.ibm.com>
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20170517004813.58227-12-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x/virtio-ccw.c')
-rw-r--r-- | hw/s390x/virtio-ccw.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index 4e386e9781..e6a6f74be3 100644 --- a/hw/s390x/virtio-ccw.c +++ b/hw/s390x/virtio-ccw.c @@ -701,6 +701,7 @@ static void virtio_ccw_device_realize(VirtioCcwDevice *dev, Error **errp) sch->disable_cb = virtio_sch_disable_cb; sch->id.reserved = 0xff; sch->id.cu_type = VIRTIO_CCW_CU_TYPE; + sch->do_subchannel_work = do_subchannel_work_virtual; ccw_dev->sch = sch; dev->indicators = NULL; dev->revision = -1; |