From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NDzuX-0007tZ-Kx for qemu-devel@nongnu.org; Fri, 27 Nov 2009 07:26:53 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NDzuS-0007pW-G0 for qemu-devel@nongnu.org; Fri, 27 Nov 2009 07:26:53 -0500 Received: from [199.232.76.173] (port=41464 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NDzuS-0007pT-9T for qemu-devel@nongnu.org; Fri, 27 Nov 2009 07:26:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43291) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NDzuR-0007KQ-Pe for qemu-devel@nongnu.org; Fri, 27 Nov 2009 07:26:48 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nARCQk4u017602 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 27 Nov 2009 07:26:46 -0500 From: Kevin Wolf Date: Fri, 27 Nov 2009 13:25:35 +0100 Message-Id: <1259324739-6805-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] rerror option for -drive List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf We already have a werror option in -drive that controls the action to be taken when write accesses to the image fail. A corresponding option for reads is still missing and is added by this patch series. The option is implemented on IDE and virtio-blk. I have left out SCSI for now to avoid conflicts with kraxel's major restructuring work. Kevin Wolf (4): Rename DriveInfo.onerror to on_write_error Introduce rerror option for drives ide: Implement rerror option virtio-blk: Implement rerror option hw/ide/core.c | 54 +++++++++++++++++++++++++++++++++--------------- hw/ide/internal.h | 1 + hw/scsi-disk.c | 3 +- hw/virtio-blk.c | 13 +++++++---- qemu-config.c | 3 ++ sysemu.h | 7 ++++- vl.c | 58 ++++++++++++++++++++++++++++++++++++++-------------- 7 files changed, 98 insertions(+), 41 deletions(-)