Quoting Yaodong Yang (2013-07-08 10:57:25) > Hello Michael, > Thanks for your help! > I read the function of tcp_wait_for_connect(), there is a statement; " > qemu_set_fd_handler2(s->fd, NULL, NULL, NULL, NULL); " I guess this will > disable this file-descriptor from the main loop and make the current > execution parallel with the main loop. Is it correct?
Yup > Also, I did not find any thread_create related function in the > migrate_fd_connect() function. What version of QEMU are you looking at? For current releases you should see the following in migrate_fd_connect(): qemu_thread_create(&s->thread, migration_thread, s, QEMU_THREAD_JOINABLE);