aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>2017-06-09 06:49:03 +0200
committerChristian Borntraeger <borntraeger@de.ibm.com>2017-07-05 12:16:55 +0200
commit1728cff2abef27aa00bc7e5f6f73c13b7bd256cb (patch)
treec3b888680fc2bc3b1f1a67c4446619cae3c518d1
parent517ff12c7d000fa1f5b1e989b22fb86a286f9cc2 (diff)
downloadqemu-1728cff2abef27aa00bc7e5f6f73c13b7bd256cb.zip
qemu-1728cff2abef27aa00bc7e5f6f73c13b7bd256cb.tar.gz
qemu-1728cff2abef27aa00bc7e5f6f73c13b7bd256cb.tar.bz2
s390x/3270: fix instruction interception handler
Commit bab482d7405f ("s390x/css: ccw translation infrastructure") introduced instruction interception handler for different types of subchannels. For emulated 3270 devices, we should assign the virtual subchannel handler to them during device realization process, or 3270 will not work. Fixes: bab482d7405f ("s390x/css: ccw translation infrastructure") Reviewed-by: Jing Liu <liujbjl@linux.vnet.ibm.com> Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
-rw-r--r--hw/s390x/3270-ccw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/s390x/3270-ccw.c b/hw/s390x/3270-ccw.c
index 6e6eee4..1554aa2 100644
--- a/hw/s390x/3270-ccw.c
+++ b/hw/s390x/3270-ccw.c
@@ -126,6 +126,7 @@ static void emulated_ccw_3270_realize(DeviceState *ds, Error **errp)
sch->id.cu_type = EMULATED_CCW_3270_CU_TYPE;
css_sch_build_virtual_schib(sch, (uint8_t)chpid,
EMULATED_CCW_3270_CHPID_TYPE);
+ sch->do_subchannel_work = do_subchannel_work_virtual;
sch->ccw_cb = emulated_ccw_3270_cb;
ck->init(dev, &err);