chardev: tcp: postpone async connection setup
authorPeter Xu <peterx@redhat.com>
Tue, 6 Mar 2018 05:33:18 +0000 (13:33 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 12 Mar 2018 15:12:46 +0000 (16:12 +0100)
commit25679e5d58e258e9950685ffbd0cae4cd40d9cc2
tree6dfb37d5ed74cfac5ec2f6152b8fc1b7a75934cc
parent3e7d4d20d3a528b1ed10b1dc3d83119bfb0c5f24
chardev: tcp: postpone async connection setup

This patch allows the socket chardev async connection be setup with
non-default gcontext.  We do it by postponing the setup to machine done,
since until then we can know which context we should run the async
operation on.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180306053320.15401-8-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>
chardev/char-socket.c