From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LaBXn-0001Ly-CY for qemu-devel@nongnu.org; Thu, 19 Feb 2009 11:14:35 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LaBXm-0001Lm-Ls for qemu-devel@nongnu.org; Thu, 19 Feb 2009 11:14:35 -0500 Received: from [199.232.76.173] (port=34395 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LaBXm-0001Li-Eu for qemu-devel@nongnu.org; Thu, 19 Feb 2009 11:14:34 -0500 Received: from mx2.redhat.com ([66.187.237.31]:37793) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LaBXl-0006cp-Ub for qemu-devel@nongnu.org; Thu, 19 Feb 2009 11:14:34 -0500 Message-ID: <499D8564.1070007@redhat.com> Date: Thu, 19 Feb 2009 18:14:28 +0200 From: Uri Lublin MIME-Version: 1.0 Subject: Re: [Qemu-devel] migration: adding migration to/from a file (v2) References: <499D4654.9000305@redhat.com> <499D652D.60803@codemonkey.ws> In-Reply-To: <499D652D.60803@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anthony Liguori wrote: > Uri Lublin wrote: >> >> Migration to file, uses migration-to-fd (supports live migration). >> Migration from file, uses qemu-fopen directly. > > Eh? Haven't we already talked about why this doesn't work? Maybe > there's a v3 that you meant to send? > Actually I do have a v3 which uses posix-aio-compat.c It's a much more complicated solution then just writing to a file though. Also I am not sure if I need to use a signal or not as the migration (to-fd) code is polling. And if I use signal should I use SIGUSR2 or a different one and use a pipe similar to block-raw-posix.c ? Your concern in the previous patch was that write() to a regular file might block. That's why I'm calling select before calling write. Do you think select will mark the fd as writeable but write would still block ? Thanks, Uri.