|
@@ -451,7 +451,8 @@ static void compare_pri_chr_in(void *opaque, const uint8_t *buf, int size)
|
|
|
|
|
|
ret = net_fill_rstate(&s->pri_rs, buf, size);
|
|
|
if (ret == -1) {
|
|
|
- qemu_chr_fe_set_handlers(&s->chr_pri_in, NULL, NULL, NULL, NULL, NULL);
|
|
|
+ qemu_chr_fe_set_handlers(&s->chr_pri_in, NULL, NULL, NULL,
|
|
|
+ NULL, NULL, true);
|
|
|
error_report("colo-compare primary_in error");
|
|
|
}
|
|
|
}
|
|
@@ -467,7 +468,8 @@ static void compare_sec_chr_in(void *opaque, const uint8_t *buf, int size)
|
|
|
|
|
|
ret = net_fill_rstate(&s->sec_rs, buf, size);
|
|
|
if (ret == -1) {
|
|
|
- qemu_chr_fe_set_handlers(&s->chr_sec_in, NULL, NULL, NULL, NULL, NULL);
|
|
|
+ qemu_chr_fe_set_handlers(&s->chr_sec_in, NULL, NULL, NULL,
|
|
|
+ NULL, NULL, true);
|
|
|
error_report("colo-compare secondary_in error");
|
|
|
}
|
|
|
}
|
|
@@ -481,9 +483,9 @@ static void *colo_compare_thread(void *opaque)
|
|
|
worker_context = g_main_context_new();
|
|
|
|
|
|
qemu_chr_fe_set_handlers(&s->chr_pri_in, compare_chr_can_read,
|
|
|
- compare_pri_chr_in, NULL, s, worker_context);
|
|
|
+ compare_pri_chr_in, NULL, s, worker_context, true);
|
|
|
qemu_chr_fe_set_handlers(&s->chr_sec_in, compare_chr_can_read,
|
|
|
- compare_sec_chr_in, NULL, s, worker_context);
|
|
|
+ compare_sec_chr_in, NULL, s, worker_context, true);
|
|
|
|
|
|
compare_loop = g_main_loop_new(worker_context, FALSE);
|
|
|
|