[Qemu-devel] [PATCHv5 02/03] colo-compare: Use IOThread to Check old packet regularly and Process pactkets of the primary

2017-08-29 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Remove the task which check old packet in the comparing thread, then use IOthread context timer to handle it. Process pactkets in the IOThread which arrived over the socket. we use iothread_get_g_main_context to create a new g_mai

[Qemu-devel] [PATCHv5 01/03] qemu-iothread: IOThread supports the GMainContext event loop

2017-08-29 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> 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, c

[Qemu-devel] [PATCHv5 00/03] Replace the COLO comparing thread with IOThread

2017-08-29 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> It's a good idea to use IOThread instead of COLO comparing thread. comparing thread can be completely replaced by IOThread, so this idea came. This series of updates mainly include IOThread supports the GMainContext event loop, then the old

[Qemu-devel] [PATCHv5 03/03] colo-compare: Update the COLO document to add the IOThread configuration

2017-08-29 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Update colo-proxy.txt,add IOThread configuration. Later we have to configure IOThread,if not COLO can not work. Signed-off-by: Wang Yong <wang.yong...@zte.com.cn> Signed-off-by: Wang Guang <wang.guan...@zte.com.cn> --- docs/colo-pr

[Qemu-devel] [PATCHv4 00/03] Replace the COLO comparing thread with IOThread

2017-08-22 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> It's a good idea to use IOThread instead of COLO comparing thread. comparing thread can be completely replaced by IOThread, so this idea came. This series of updates mainly include IOThread supports the GMainContext event loop, then the old

[Qemu-devel] [PATCHv4 03/03] colo-compare: Update the COLO document to add the IOThread configuration

2017-08-22 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Update colo-proxy.txt,add IOThread configuration. Later we have to configure IOThread,if not COLO can not work. Signed-off-by: Wang Yong <wang.yong...@zte.com.cn> Signed-off-by: Wang Guang <wang.guan...@zte.com.cn> --- docs/colo-pr

[Qemu-devel] [PATCHv4 01/03] qemu-iothread: IOThread supports the GMainContext event loop

2017-08-22 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> 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, c

[Qemu-devel] [PATCHv4 02/03] colo-compare: Use IOThread to Check old packet regularly and Process pactkets of the primary

2017-08-22 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Remove the task which check old packet in the comparing thread, then use IOthread context timer to handle it. Process pactkets in the IOThread which arrived over the socket. we use iothread_get_g_main_context to create a new g_mai

[Qemu-devel] [PATCHv3 02/03] colo-compare: Use IOThread to Check old packet regularly and Process pactkets of the primary

2017-08-17 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Remove the task which check old packet in the comparing thread, then use IOthread context timer to handle it. Process pactkets in the IOThread which arrived over the socket. we use iothread_get_g_main_context to create a new g_mai

[Qemu-devel] [PATCHv3 01/03] qemu-iothread: IOThread supports the GMainContext event loop

2017-08-17 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> 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, c

[Qemu-devel] [PATCHv3 00/03] Replace the COLO comparing thread with IOThread

2017-08-17 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> It's a good idea to use IOThread instead of COLO comparing thread. comparing thread can be completely replaced by IOThread, so this idea came. This series of updates mainly include IOThread supports the GMainContext event loop, then the old

[Qemu-devel] [PATCHv3 03/03] colo-compare: Update the COLO document to add the IOThread configuration

2017-08-17 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Update colo-proxy.txt,add IOThread configuration. Later we have to configure IOThread,if not COLO can not work. Signed-off-by: Wang Yong <wang.yong...@zte.com.cn> Signed-off-by: Wang Guang <wang.guan...@zte.com.cn> --- docs/colo-pr

[Qemu-devel] [PATCHv3 01/02] colo-compare: Use IOThread to Check old packet regularly and Process pactkets of the primary

2017-08-16 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Remove the task which check old packet in the comparing thread, then use IOthread context timer to handle it. Process pactkets in the IOThread which arrived over the socket. we use iothread_get_g_main_context to create a new g_mai

[Qemu-devel] [PATCHv3 02/02] colo-compare: Update the COLO document to add the IOThread configuration

2017-08-16 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Update colo-proxy.txt,add IOThread configuration. Later we have to configure IOThread,if not COLO can not work. Signed-off-by: Wang Yong<wang.yong...@zte.com.cn> Signed-off-by: Wang Guang<wang.guan...@zte.com.cn> --- docs/colo-proxy.t

[Qemu-devel] [PATCHv3 00/02] Replace the COLO comparing thread with IOThread

2017-08-16 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> Note: This series is based on the patch of "qemu-iothread: IOThread supports theGMainContext event loop". It's a good idea to use IOThread instead of COLO comparing thread. comparing thread can be completely replaced by IOThread, s

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

2017-08-15 Thread Wang yong
From: Wang Yong <wang.yong...@zte.com.cn> 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, c

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

2017-08-10 Thread Wang yong
From: Wang Yong<wang.yong...@zte.com.cn> 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, c