block/qdev: Allow configuring rerror/werror with qdev properties
The rerror/werror policies are implemented in the devices, so that's where they should be configured. In comparison to the old options in -drive, the qdev properties are only added to those devices that actually support them. If the option isn't given (or "auto" is specified), the setting of the BlockBackend is used for compatibility with the old options. For block jobs, "auto" is the same as "enospc". Signed-off-by:Kevin Wolf <kwolf@redhat.com> Reviewed-by:
Max Reitz <mreitz@redhat.com>
Showing
- block/block-backend.c 1 addition, 0 deletionsblock/block-backend.c
- blockjob.c 1 addition, 0 deletionsblockjob.c
- hw/block/block.c 12 additions, 0 deletionshw/block/block.c
- hw/block/virtio-blk.c 1 addition, 0 deletionshw/block/virtio-blk.c
- hw/core/qdev-properties.c 13 additions, 0 deletionshw/core/qdev-properties.c
- hw/ide/qdev.c 1 addition, 0 deletionshw/ide/qdev.c
- hw/scsi/scsi-disk.c 1 addition, 0 deletionshw/scsi/scsi-disk.c
- include/hw/block/block.h 8 additions, 0 deletionsinclude/hw/block/block.h
- include/hw/qdev-properties.h 4 additions, 0 deletionsinclude/hw/qdev-properties.h
- qapi/block-core.json 3 additions, 1 deletionqapi/block-core.json
Loading
Please register or sign in to comment