From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Iz8FA-00087H-3E for qemu-devel@nongnu.org; Mon, 03 Dec 2007 05:09:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Iz8F8-00086i-PB for qemu-devel@nongnu.org; Mon, 03 Dec 2007 05:09:39 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Iz8F8-00086Z-IE for qemu-devel@nongnu.org; Mon, 03 Dec 2007 05:09:38 -0500 Received: from ecfrec.frec.bull.fr ([129.183.4.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Iz8F8-0002N7-2E for qemu-devel@nongnu.org; Mon, 03 Dec 2007 05:09:38 -0500 Received: from localhost (localhost [127.0.0.1]) by ecfrec.frec.bull.fr (Postfix) with ESMTP id B2A7F19D922 for ; Mon, 3 Dec 2007 11:09:34 +0100 (CET) Received: from ecfrec.frec.bull.fr ([127.0.0.1]) by localhost (ecfrec.frec.bull.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18605-04 for ; Mon, 3 Dec 2007 11:09:31 +0100 (CET) Received: from ecn002.frec.bull.fr (ecn002.frec.bull.fr [129.183.4.6]) by ecfrec.frec.bull.fr (Postfix) with ESMTP id 0651B19D9D0 for ; Mon, 3 Dec 2007 11:09:30 +0100 (CET) In-Reply-To: Date: Mon, 3 Dec 2007 11:09:19 +0100 Message-Id: <1196676559385@bull.net> Mime-Version: 1.0 From: Laurent Vivier Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="iso-8859-1" Subject: [Qemu-devel] [PATCH 0/2 v2] Open disk images with O_DIRECT Reply-To: Laurent Vivier , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel@nongnu.org These patches allow to open file using O_DIRECT and bypass the host I/O cac= he. The v2 is a new version including comments from Anthony Liguori ("directio"= =20 has been renamed "cache"), from Balazs Attila-Mihaly (for Win32 support,=20 not tested) and Samuel Thibault (for the generic function qemu_memalign()". [PATCH 1/2] Add "cache" parameter to "-drive" Using "cache=3Doff" with "-drive" will open the disk image=20 file using "O_DIRECT". [PATCH 2/2] Direct IDE I/O This patch enhances the "-drive ,cache=3Doff" mode with IDE drive emula= tion by removing the buffer used in the IDE emulation. Laurent