This series includes two parts: codes optimization and bug fix.
patch 1 tries to move timer process into colo compare thread as
a new coroutine.
patch 2 ~ 4 fixe some bugs of colo compare.
v2->v3:
- change the definition of remove_fd_in_watch() instead of
introducing a function (Marc-André Lureau's suggestion)
v1->v2:
- Squash patch 3 of last version into patch 2. (ZhangChen's suggestion)
zhanghailiang (4):
colo-compare: use g_timeout_source_new() to process the stale packets
colo-compare: kick compare thread to exit after some cleanup in
finalization
char: remove the right fd been watched in qemu_chr_fe_set_handlers()
colo-compare: Fix removing fds been watched incorrectly in
finalization
chardev/char-fd.c | 6 +--
chardev/char-io.c | 8 ++--
chardev/char-io.h | 2 +-
chardev/char-pty.c | 2 +-
chardev/char-socket.c | 4 +-
chardev/char-udp.c | 6 +--
chardev/char.c | 2 +-
net/colo-compare.c | 115 ++++++++++++++++++++++++++------------------------
8 files changed, 74 insertions(+), 71 deletions(-)