]> git.proxmox.com Git - mirror_qemu.git/commit - block.c
iostatus: reorganize io error code
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 28 Sep 2012 15:22:57 +0000 (17:22 +0200)
committerKevin Wolf <kwolf@redhat.com>
Fri, 28 Sep 2012 17:40:56 +0000 (19:40 +0200)
commit3e1caa5f76a9104a0d574b0f28b3dafe986a8408
treebed937dd724bd2c6d2eb2a2678606f52fe1407a3
parent1ceee0d5cc841fc9ca8e72b81450b598ab307f14
iostatus: reorganize io error code

Move the common part of IDE/SCSI/virtio error handling to the block
layer.  The new function bdrv_error_action subsumes all three of
bdrv_emit_qmp_error_event, vm_stop, bdrv_iostatus_set_err.

The same scheme will be used for errors in block jobs.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c
block.h
hw/ide/core.c
hw/scsi-disk.c
hw/virtio-blk.c
qemu-tool.c