s390x/3270: 3270 data stream handling
commit2dc95b4cac5e8c68563c2e82ee9606896c54217c
authorJing Liu <liujbjl@linux.vnet.ibm.com>
Fri, 1 Apr 2016 06:32:58 +0000 (1 08:32 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 4 May 2017 08:34:37 +0000 (4 10:34 +0200)
treec4f8fec7cb74ebefcf83add20a9d4ddb83374118
parentb8476205409ace2140d734c04ba4ea7f649692cf
s390x/3270: 3270 data stream handling

This introduces the input and output handlers for 3270 device, setting
up the data tunnel among guest kernel, qemu and the 3270 client.

After the client connected and TN3270 handshake done, signal the not-ready
to ready status by an unsolicited device-end interrupt, and then the 3270
data stream could be handled correctly between the channel and socket.
Multiple commands generated by "Reset" key on x3270 are not supported now,
just simply terminate the connection.

Signed-off-by: Jing Liu <liujbjl@linux.vnet.ibm.com>
Signed-off-by: Yang Chen <bjcyang@linux.vnet.ibm.com>
Reviewed-by: QingFeng Hao <haoqf@linux.vnet.ibm.com>
Reviewed-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/char/terminal3270.c
hw/s390x/3270-ccw.c
hw/s390x/css.c
include/hw/s390x/3270-ccw.h