From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=60035 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P8DnT-0003ES-GN for qemu-devel@nongnu.org; Tue, 19 Oct 2010 11:08:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P8DnS-0006po-2o for qemu-devel@nongnu.org; Tue, 19 Oct 2010 11:08:14 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41763) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P8DnR-0006pj-S7 for qemu-devel@nongnu.org; Tue, 19 Oct 2010 11:08:14 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o9JF8Dsb007898 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 19 Oct 2010 11:08:13 -0400 From: Kevin Wolf Date: Tue, 19 Oct 2010 17:08:50 +0200 Message-Id: <1287500932-7366-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] ide: Handle bdrv_aio_flush errors List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kwolf@redhat.com Until now, errors returned by bdrv_aio_flush were silently ignored, so that from a guest point of view, FLUSH would never fail even if the data hasn't made it to the host disk. This applies the werror option also to flushes, so that by default errors are reported back to the guest, and qemu can be configured to stop the VM instead. Kevin Wolf (2): ide: Factor ide_flush_cache out ide: Handle flush failure hw/ide/core.c | 24 +++++++++++++++++++----- hw/ide/internal.h | 3 ++- 2 files changed, 21 insertions(+), 6 deletions(-) -- 1.7.2.3