qemu-iothread: IOThread supports the GMainContext event loop
commit329163cbe64a615b4edf6c40f2fff8c79dbc8fb4
authorWang Yong <wang.yong155@zte.com.cn>
Tue, 29 Aug 2017 07:22:37 +0000 (29 15:22 +0800)
committerJason Wang <jasowang@redhat.com>
Fri, 8 Sep 2017 01:32:48 +0000 (8 09:32 +0800)
treee61eeaf1c0896026a57750ddb83410c5411f7caf
parent61c5f46959ee74d6dabd0ee648ca555932f91955
qemu-iothread: IOThread supports the GMainContext event loop

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.

Reviewed-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Wang Yong <wang.yong155@zte.com.cn>
Signed-off-by: Wang Guang <wang.guang55@zte.com.cn>
Signed-off-by: Jason Wang <jasowang@redhat.com>
include/sysemu/iothread.h
iothread.c