diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-09-26 17:43:52 -0300 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-10-11 09:42:39 +0200 |
commit | 50fb19008fb91e3825f18b69f4adcae2db9863eb (patch) | |
tree | 8b834722e4e6ae17c744aec47dede825327f8953 /hw | |
parent | af239a62c0f2ef40b42af196203140aa1db32dac (diff) |
ide: Support I/O status
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r-- | 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 b71a356f39..fbc0859b4a 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; } |