From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:60120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwF5J-00077o-HE for qemu-devel@nongnu.org; Mon, 08 Jul 2013 13:18:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwF5H-0000Ve-Ug for qemu-devel@nongnu.org; Mon, 08 Jul 2013 13:18:45 -0400 Sender: fluxion Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Michael Roth In-Reply-To: References: <20130708153204.24640.79175@loki> Message-ID: <20130708171836.32002.18544@loki> Date: Mon, 08 Jul 2013 12:18:36 -0500 Subject: Re: [Qemu-devel] QEMU live block-migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yaodong Yang Cc: qemu-devel@nongnu.org, qemu-discuss@nongnu.org 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 wi= ll > 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);