chardev: use backend chr context when watch for fe
commit91e14fb8e9ee351f01ffe391d7a45cccc3b8da65
authorPeter Xu <peterx@redhat.com>
Thu, 4 Jan 2018 14:18:33 +0000 (4 22:18 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 12 Jan 2018 12:22:02 +0000 (12 13:22 +0100)
treee77056ecfa11fc32f5e2c15b4f2f7bc9e6a242d0
parent0b368a10c71af96f6cf93b0ba5c2ee3bdbd50e96
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>
chardev/char-fe.c