summaryrefslogtreecommitdiffstats
path: root/tests/libqos/malloc.c
diff options
context:
space:
mode:
authorDaniel P. Berrange2017-10-09 17:54:07 +0200
committerDaniel P. Berrange2017-10-16 17:57:08 +0200
commit8dfd5f96515ca20c4eb109cb0ee28e2bb32fc505 (patch)
treeefe8a11fd65642f3a7c3c22ad53609827eb797f8 /tests/libqos/malloc.c
parentio: pass a struct iovec into qio_channel_websock_encode (diff)
downloadqemu-8dfd5f96515ca20c4eb109cb0ee28e2bb32fc505.tar.gz
qemu-8dfd5f96515ca20c4eb109cb0ee28e2bb32fc505.tar.xz
qemu-8dfd5f96515ca20c4eb109cb0ee28e2bb32fc505.zip
io: get rid of bounce buffering in websock write path
Currently most outbound I/O on the websock channel gets copied into the rawoutput buffer, and then immediately copied again into the encoutput buffer, with a header prepended. Now that qio_channel_websock_encode accepts a struct iovec, we can trivially remove this bounce buffering and write directly to encoutput. In doing so, we also now correctly validate the encoutput size against the QIO_CHANNEL_WEBSOCK_MAX_BUFFER limit. Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'tests/libqos/malloc.c')
0 files changed, 0 insertions, 0 deletions