Jason found some problems with 3270 which he traced down to insufficient output buffer size. I've looked into the underlying issue (and the relevant code) and I saw strange things. Among others an unreasonable assert requiring the payload of a ccw being less than some more or less arbitrary limit (dictated by the size of the output buffer).
Because we were already considering converting 3270 to CcwDataStream I've decided to try do get rid of this strange limitation on the length of the writes too. This series depends on my IDA work, which can be found here: https://lists.nongnu.org/archive/html/qemu-devel/2017-09/msg03434.html. Halil Pasic (2): s390x/3270: IDA support for 3270 via CcwDataStream s390x/3270: handle writes of arbitrary length hw/char/terminal3270.c | 46 +++++++++++++++++++++++++++------------------ hw/s390x/3270-ccw.c | 4 ++-- include/hw/s390x/3270-ccw.h | 5 ++--- 3 files changed, 32 insertions(+), 23 deletions(-) -- 2.13.5