Skip to content

block: thread-safety patches for virtio-blk dataplane rerror/werror

Paolo Bonzini qemu-devel 1 version Applied

Status from this message: Thanks, applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest2 patches 4 repliesApplied

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2vl: allow other threads to do qemu_system_vmstop_requestcpus.c include/sysemu/sysemu.h target-lm32/op_helper.c +1 more+57 -321 reply
2/2block: asynchronously stop the VM on I/O errorsblock.c docs/qmp/qmp-events.txt stubs/vm-stop.c+26 -41 reply

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/2] block: thread-safety patches for virtio-blk dataplane rerror/werror

With virtio-blk dataplane, I/O errors might occur while QEMU is not in the main I/O thread. This makes the block layer's bdrv_error_action() function thread-safe (modulo changes in the monitor to make QMP events thread-safe too, already posted).

Thanks to Kevin for discussing v1, the ideas are based on his input too.

v1->v2: redone, v1 should really have been an RFC

Paolo Bonzini (2):
vl: allow other threads to do qemu_system_vmstop_request
block: asynchronously stop the VM on I/O errors

 block.c                 | 20 ++++++++++--
 cpus.c                  |  1 +
 docs/qmp/qmp-events.txt |  2 +-
 include/sysemu/sysemu.h |  1 +
 stubs/vm-stop.c         |  7 +++-
 target-lm32/op_helper.c |  2 +-
 vl.c                    | 85 +++++++++++++++++++++++++++++++------------------
 7 files changed, 82 insertions(+), 36 deletions(-)
Signature · 1 line
1.8.3.1