diff options
author | Peter Xu <peterx@redhat.com> | 2018-01-04 22:18:33 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-01-12 13:22:02 +0100 |
commit | 91e14fb8e9ee351f01ffe391d7a45cccc3b8da65 (patch) | |
tree | e77056ecfa11fc32f5e2c15b4f2f7bc9e6a242d0 /chardev | |
parent | 0b368a10c71af96f6cf93b0ba5c2ee3bdbd50e96 (diff) | |
download | qemu-91e14fb8e9ee351f01ffe391d7a45cccc3b8da65.zip qemu-91e14fb8e9ee351f01ffe391d7a45cccc3b8da65.tar.gz qemu-91e14fb8e9ee351f01ffe391d7a45cccc3b8da65.tar.bz2 |
chardev: use backend chr context when watch for fe
In commit 6bbb6c0644 ("chardev: use per-dev context for
io_add_watch_poll", 2017-09-22) all the chardev watches are converted to
use per-chardev gcontext to support chardev to be run outside default
main thread. However that's still missing one call from the frontend
code. Touch that up.
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180104141835.17987-2-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'chardev')
-rw-r--r-- | chardev/char-fe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chardev/char-fe.c b/chardev/char-fe.c index ee6d596..c611b3f 100644 --- a/chardev/char-fe.c +++ b/chardev/char-fe.c @@ -356,7 +356,7 @@ guint qemu_chr_fe_add_watch(CharBackend *be, GIOCondition cond, } g_source_set_callback(src, (GSourceFunc)func, user_data, NULL); - tag = g_source_attach(src, NULL); + tag = g_source_attach(src, s->gcontext); g_source_unref(src); return tag; |