]> git.proxmox.com Git - mirror_qemu.git/commit
char: allow specifying a GMainContext at opening time
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 13 Feb 2019 13:18:13 +0000 (14:18 +0100)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 13 Feb 2019 13:23:39 +0000 (14:23 +0100)
commit4ad6f6cb149b03ab9399a63208918cde09248294
tree7bb7be7dc3fbdd36e7f93e8d9f3ed4858a71eda3
parent211ef6c4b6297a6275015c16b76bc72de35c56c3
char: allow specifying a GMainContext at opening time

This will be needed by vhost-user-test, when each test switches to
its own GMainLoop and GMainContext.  Otherwise, for a reconnecting
socket the initial connection will happen on the default GMainContext,
and no one will be listening on it.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20190202110834.24880-1-pbonzini@redhat.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
17 files changed:
chardev/char.c
gdbstub.c
hmp.c
hw/arm/omap2.c
hw/bt/hci-csr.c
hw/char/omap_uart.c
hw/char/xen_console.c
hw/isa/isa-superio.c
hw/mips/boston.c
hw/mips/mips_malta.c
hw/usb/dev-serial.c
include/chardev/char.h
net/slirp.c
qtest.c
tests/test-char.c
tests/vhost-user-test.c
vl.c