Re: [Qemu-devel] [PATCH] qemu-iothread: IOThread supports the GMainContext event loop

2017-08-10 Thread Fam Zheng
On Fri, 08/11 08:29, Wang yong wrote: > From: Wang Yong > > IOThread uses AioContext event loop and does not run a GMainContext. > Therefore,chardev cannot work in IOThread,such as the chardev is > used for colo-compare packets reception. > > This patch makes the IOThread run the GMainContext eve

Re: [Qemu-devel] [PATCH] qemu-iothread: IOThread supports the GMainContext event loop

2017-08-10 Thread Paolo Bonzini
- Original Message - > From: "Wang yong" > To: pbonz...@redhat.com, stefa...@redhat.com, f...@redhat.com, > jasow...@redhat.com > Cc: "wang yong155" , "wang guang55" > , "zhangchen fnst" > , "zhang zhanghailiang" > , lizhij...@cn.fujitsu.com, > qemu-devel@nongnu.org > Sent: Friday, Au

[Qemu-devel] [PATCH] qemu-iothread: IOThread supports the GMainContext event loop

2017-08-10 Thread Wang yong
From: Wang Yong IOThread uses AioContext event loop and does not run a GMainContext. Therefore,chardev cannot work in IOThread,such as the chardev is used for colo-compare packets reception. This patch makes the IOThread run the GMainContext event loop, chardev and IOThread can work together. Si