Re: [Qemu-devel] [PATCH 11/47] block: reorganize io error code

2012-08-01 Thread Paolo Bonzini
Il 01/08/2012 11:30, Kevin Wolf ha scritto: > Maybe bool is_read? I was mimicking existing code, but since we're touching this part it's worth cleaning it up. I'll add a patch before this one to convert the existing occurrences of int is_read, and then use bool here too. Paolo

Re: [Qemu-devel] [PATCH 11/47] block: reorganize io error code

2012-08-01 Thread Kevin Wolf
Am 24.07.2012 13:03, schrieb Paolo Bonzini: > 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 job

[Qemu-devel] [PATCH 11/47] block: reorganize io error code

2012-07-24 Thread Paolo Bonzini
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 --- block.c