summaryrefslogtreecommitdiff
path: root/chardev/char-mux.c
diff options
context:
space:
mode:
authorPeter Xu <peterx@redhat.com>2018-03-06 13:33:15 +0800
committerPaolo Bonzini <pbonzini@redhat.com>2018-03-12 16:12:46 +0100
commitce1230c054e97932660aecd9ba61ee31d461e339 (patch)
tree710c36664f86686f277e5d541be62347288e39a2 /chardev/char-mux.c
parent3da9de5ce22125c917f722f13f91a0e3b096a251 (diff)
downloadqemu-ce1230c054e97932660aecd9ba61ee31d461e339.tar.gz
chardev: allow telnet gsource to switch gcontext
It was originally created by qio_channel_add_watch() so it's always assigning the task to main context. Now we use the new API called qio_channel_add_watch_source() so that we get the GSource handle rather than the tag ID. Meanwhile, caching the gsource and TCPChardevTelnetInit (which holds the handshake data) in SocketChardev.telnet_source so that we can also do dynamic context switch when update read handlers. Signed-off-by: Peter Xu <peterx@redhat.com> Message-Id: <20180306053320.15401-5-peterx@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'chardev/char-mux.c')
0 files changed, 0 insertions, 0 deletions