Skip to content

rerror option for -drive

Kevin Wolf qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Rename DriveInfo.onerror to on_write_errorhw/ide/core.c hw/scsi-disk.c hw/virtio-blk.c +2 more+16 -83 replies
2/4Introduce rerror option for drivesqemu-config.c sysemu.h vl.c+44 -190 replies
3/4ide: Implement rerror optionhw/ide/core.c hw/ide/internal.h vl.c+39 -180 replies
4/4virtio-blk: Implement rerror optionhw/virtio-blk.c vl.c+9 -60 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] rerror option for -drive

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(-)