From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:58727) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REktv-0005cV-5T for qemu-devel@nongnu.org; Fri, 14 Oct 2011 12:46:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REktu-0001B6-AH for qemu-devel@nongnu.org; Fri, 14 Oct 2011 12:46:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:60551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REktt-0001Ar-M1 for qemu-devel@nongnu.org; Fri, 14 Oct 2011 12:46:26 -0400 From: Kevin Wolf Date: Fri, 14 Oct 2011 18:49:00 +0200 Message-Id: <1318610959-17971-6-git-send-email-kwolf@redhat.com> In-Reply-To: <1318610959-17971-1-git-send-email-kwolf@redhat.com> References: <1318610959-17971-1-git-send-email-kwolf@redhat.com> Subject: [Qemu-devel] [PATCH 05/24] ide: Support I/O status List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: kwolf@redhat.com, qemu-devel@nongnu.org From: Luiz Capitulino Signed-off-by: Luiz Capitulino Reviewed-by: Markus Armbruster Signed-off-by: Kevin Wolf --- hw/ide/core.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/ide/core.c b/hw/ide/core.c index b71a356..fbc0859 100644 --- a/hw/ide/core.c +++ b/hw/ide/core.c @@ -528,6 +528,7 @@ static int ide_handle_rw_error(IDEState *s, int error, int op) s->bus->error_status = op; bdrv_mon_event(s->bs, BDRV_ACTION_STOP, is_read); vm_stop(RUN_STATE_IO_ERROR); + bdrv_iostatus_set_err(s->bs, error); } else { if (op & BM_STATUS_DMA_RETRY) { dma_buf_commit(s, 0); @@ -1872,6 +1873,7 @@ int ide_init_drive(IDEState *s, BlockDriverState *bs, IDEDriveKind kind, } ide_reset(s); + bdrv_iostatus_enable(bs); return 0; } -- 1.7.6.4