From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UwDQC-0006Uo-NR for qemu-devel@nongnu.org; Mon, 08 Jul 2013 11:32:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UwDQB-0004gN-I0 for qemu-devel@nongnu.org; Mon, 08 Jul 2013 11:32:12 -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: Message-ID: <20130708153204.24640.79175@loki> Date: Mon, 08 Jul 2013 10:32:04 -0500 Subject: Re: [Qemu-devel] QEMU live block-migration List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Yaodong Yang , qemu-discuss@nongnu.org, qemu-devel@nongnu.org Cc: Yaodong Yang Quoting Yaodong Yang (2013-07-07 09:55:06) > Hello everyone, > I have a short question about the implementation of QEMU. When the qemu > perform the live block migration using "migrate -b tcp:...." command. = Does > a new thread for migration created or not? I went through the code, on= ly > find that this activity is triggered in the main loop (main_loop_wait(= int An outgoing non-blocking connection is triggered by tcp_start_outgoing_migration, once the connection is completed the tcp_wait_for_connect() callback is executed by the main loop. > nonblocking) function). I want to know is there a new dedicated thread > created for this migration task or not? If so, where in the code the n= ew > thread created. Within that callback there's a call to migrate_fd_connect(), which is where= the migration thread is created. Incoming migration is still handled by the main loop's thread > Thanks! > Yaodong > -- > Yaodong Yang > Computer Science and Engineering Department > University of Nebraska--Lincoln, = > Lincoln, NE, U.S.A.