From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GJqmQ-0002rh-Cl for qemu-devel@nongnu.org; Sun, 03 Sep 2006 08:08:51 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GJqmM-0002mt-AY for qemu-devel@nongnu.org; Sun, 03 Sep 2006 08:08:48 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GJqmM-0002ml-5r for qemu-devel@nongnu.org; Sun, 03 Sep 2006 08:08:46 -0400 Received: from [65.74.133.4] (helo=mail.codesourcery.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GJqwd-0004OK-Ip for qemu-devel@nongnu.org; Sun, 03 Sep 2006 08:19:23 -0400 From: Paul Brook Subject: Re: [Qemu-devel] AIO and savevm Date: Sun, 3 Sep 2006 13:08:38 +0100 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609031308.40023.paul@codesourcery.com> 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 On Sunday 03 September 2006 12:14, Blue Swirl wrote: > >qemu_aio_poll doesn't wait. It returns immediately if IO has not completed > >yet. > > You're right, sorry. How's this version then? Though there is a race > condition where the AIO signal is received between checking for AIO and > waiting for it. I moved it into a separate routine, and fixed the race condition. We also need to flush AIO requests before doing loadvm. Paul