summaryrefslogtreecommitdiffstats
path: root/hw/char/xen_console.c
diff options
context:
space:
mode:
authorPaolo Bonzini2019-02-13 14:18:13 +0100
committerMarc-André Lureau2019-02-13 14:23:39 +0100
commit4ad6f6cb149b03ab9399a63208918cde09248294 (patch)
tree7bb7be7dc3fbdd36e7f93e8d9f3ed4858a71eda3 /hw/char/xen_console.c
parentchardev: ensure termios is fully initialized (diff)
downloadqemu-4ad6f6cb149b03ab9399a63208918cde09248294.tar.gz
qemu-4ad6f6cb149b03ab9399a63208918cde09248294.tar.xz
qemu-4ad6f6cb149b03ab9399a63208918cde09248294.zip
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>
Diffstat (limited to 'hw/char/xen_console.c')
-rw-r--r--hw/char/xen_console.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/char/xen_console.c b/hw/char/xen_console.c
index dc6ff0e5b3..91f34ef06c 100644
--- a/hw/char/xen_console.c
+++ b/hw/char/xen_console.c
@@ -211,7 +211,8 @@ static int con_init(struct XenLegacyDevice *xendev)
* FIXME: sure we want to support implicit
* muxed monitors here?
*/
- qemu_chr_new_mux_mon(label, output), &error_abort);
+ qemu_chr_new_mux_mon(label, output, NULL),
+ &error_abort);
}
xenstore_store_pv_console_info(con->xendev.dev,