We already have a werror option in -drive that controls the action to be taken
when write accesses to the image fail. A corresponding option for reads is
still missing and is added by this patch series.

The option is implemented on IDE and virtio-blk. I have left out SCSI for now
to avoid conflicts with kraxel's major restructuring work.

Kevin Wolf (4):
  Rename DriveInfo.onerror to on_write_error
  Introduce rerror option for drives
  ide: Implement rerror option
  virtio-blk: Implement rerror option

 hw/ide/core.c     |   54 +++++++++++++++++++++++++++++++++---------------
 hw/ide/internal.h |    1 +
 hw/scsi-disk.c    |    3 +-
 hw/virtio-blk.c   |   13 +++++++----
 qemu-config.c     |    3 ++
 sysemu.h          |    7 ++++-
 vl.c              |   58 ++++++++++++++++++++++++++++++++++++++--------------
 7 files changed, 98 insertions(+), 41 deletions(-)



Reply via email to