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>
Showing
- chardev/char.c 19 additions, 13 deletionschardev/char.c
- gdbstub.c 2 additions, 2 deletionsgdbstub.c
- hmp.c 1 addition, 1 deletionhmp.c
- hw/arm/omap2.c 1 addition, 1 deletionhw/arm/omap2.c
- hw/bt/hci-csr.c 1 addition, 1 deletionhw/bt/hci-csr.c
- hw/char/omap_uart.c 2 additions, 2 deletionshw/char/omap_uart.c
- hw/char/xen_console.c 2 additions, 1 deletionhw/char/xen_console.c
- hw/isa/isa-superio.c 2 additions, 2 deletionshw/isa/isa-superio.c
- hw/mips/boston.c 1 addition, 1 deletionhw/mips/boston.c
- hw/mips/mips_malta.c 1 addition, 1 deletionhw/mips/mips_malta.c
- hw/usb/dev-serial.c 1 addition, 1 deletionhw/usb/dev-serial.c
- include/chardev/char.h 12 additions, 4 deletionsinclude/chardev/char.h
- net/slirp.c 1 addition, 1 deletionnet/slirp.c
- qtest.c 1 addition, 1 deletionqtest.c
- tests/test-char.c 19 additions, 19 deletionstests/test-char.c
- tests/vhost-user-test.c 1 addition, 1 deletiontests/vhost-user-test.c
- vl.c 4 additions, 4 deletionsvl.c
Loading
Please register or sign in to comment