Based-on: <20180305064324.9238-1-pet...@redhat.com> This series is based on the QIO part: [PATCH v3 0/6] qio: general non-default GMainContext support
And it is splitted out from version 2 of the QIO series V2: http://lists.gnu.org/archive/html/qemu-devel/2018-03/msg00016.html Please review, thanks. Peter Xu (9): vl: export machine_init_done chardev: fix leak in tcp_chr_telnet_init_io() chardev: update net listener gcontext chardev: allow telnet gsource to switch gcontext chardev: introduce chr_machine_done hook chardev: use chardev's gcontext for async connect chardev: tcp: postpone async connection setup chardev: tcp: let TLS run on chardev context chardev: tcp: postpone TLS work until machine done chardev/char-mux.c | 33 ++++++++-- chardev/char-socket.c | 153 ++++++++++++++++++++++++++++++++++------------ chardev/char.c | 43 ++++++------- include/chardev/char.h | 2 + include/sysemu/sysemu.h | 2 + stubs/machine-init-done.c | 2 + vl.c | 4 +- 7 files changed, 169 insertions(+), 70 deletions(-) -- 2.14.3