Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KaC41-0000Fg-Hf for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:15:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KaC3x-0000E9-RO for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:15:37 -0400 Received: from [199.232.76.173] (port=38653 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KaC3x-0000E3-KX for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:15:33 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:39895) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KaC3x-0000vu-1J for qemu-devel@nongnu.org; Mon, 01 Sep 2008 12:15:33 -0400 Received: from mariner.uk.xensource.com ([10.80.2.22]) by smtp01.ad.xensource.com (8.13.1/8.13.1) with ESMTP id m81GFUP6013155 for ; Mon, 1 Sep 2008 09:15:30 -0700 Received: from iwj by mariner.uk.xensource.com with local (Exim 4.63) (envelope-from ) id 1KaC3t-0004gp-Id for qemu-devel@nongnu.org; Mon, 01 Sep 2008 17:15:29 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18620.5409.570126.428085@mariner.uk.xensource.com> Date: Mon, 1 Sep 2008 17:15:29 +0100 From: Ian Jackson Subject: [Qemu-devel] [REPOST] [PATCH 0/2] IDE error checking 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 In these two patches I make the IDE controller emulation pay attention to errors returned by the bdrv functions. The first of these patches was first posted in February 2008 and has been discussed extensively. There was some discussion as to whether it would be better, in cases where the error was ENOSPC, to stop the guest than to pass it an IDE error. However it must be clear that regardless of whether that would be better in some circumstances, giving the guest an IDE error is better than silently ignoring the error, throwing away the guest's data. I would therefore submit that my patch should be applied immediately. If anyone wants to implement automatic stopping of guests on ENOSPC errors this should then be done as an optional enhancement. In this patch pair I don't fix the call to bdrv_flush in FLUSH CACHE. This is because that's entangled with another dropped series of patches to implement use of aio for cache flushing and guest control of the host write cache. Ian.