Re: [Qemu-devel] [PATCH 3/6] char: add a QEMU_CHAR_FEATURE_GCONTEXT flag

2018-10-29 Thread Marc-André Lureau
Hi On Wed, Oct 10, 2018 at 7:54 AM Peter Xu wrote: > > On Tue, Oct 09, 2018 at 05:12:48PM +0400, Marc-André Lureau wrote: > > The feature should be set if the chardev is able to switch > > GMainContext. Callers that want to put a chardev in a different thread > > context can/should check this cap

Re: [Qemu-devel] [PATCH 3/6] char: add a QEMU_CHAR_FEATURE_GCONTEXT flag

2018-10-09 Thread Peter Xu
On Tue, Oct 09, 2018 at 05:12:48PM +0400, Marc-André Lureau wrote: > The feature should be set if the chardev is able to switch > GMainContext. Callers that want to put a chardev in a different thread > context can/should check this capabilities. IIRC we've had some discussion about whether we sho

[Qemu-devel] [PATCH 3/6] char: add a QEMU_CHAR_FEATURE_GCONTEXT flag

2018-10-09 Thread Marc-André Lureau
The feature should be set if the chardev is able to switch GMainContext. Callers that want to put a chardev in a different thread context can/should check this capabilities. Signed-off-by: Marc-André Lureau --- include/chardev/char.h | 3 +++ chardev/char.c | 11 +++ 2 files cha