diff options
author | Peter Xu | 2018-03-06 06:33:15 +0100 |
---|---|---|
committer | Paolo Bonzini | 2018-03-12 16:12:46 +0100 |
commit | ce1230c054e97932660aecd9ba61ee31d461e339 (patch) | |
tree | 710c36664f86686f277e5d541be62347288e39a2 /linux-user/linux_loop.h | |
parent | chardev: update net listener gcontext (diff) | |
download | qemu-ce1230c054e97932660aecd9ba61ee31d461e339.tar.gz qemu-ce1230c054e97932660aecd9ba61ee31d461e339.tar.xz qemu-ce1230c054e97932660aecd9ba61ee31d461e339.zip |
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 'linux-user/linux_loop.h')
0 files changed, 0 insertions, 0 deletions