Skip to content

block: copy-before-write: cbw-timeout

Vladimir Sementsov-Ogievskiy qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4util: add qemu-co-timeoutinclude/qemu/coroutine.h util/meson.build util/qemu-co-timeout.c+103 -00 replies
2/4block/block-copy: block_copy(): add timeout_ns parameterblock/block-copy.c include/block/block-copy.h+21 -91 reply
3/4block/copy-before-write: implement cbw-timeout optionblock/copy-before-write.c qapi/block-core.json+9 -20 replies
4/4iotests: copy-before-write: add cases for cbw-timeout optiontests/qemu-iotests/tests/copy-before-write tests/qemu-iotests/tests/copy-before-write.out+80 -20 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/4] block: copy-before-write: cbw-timeout

Hi all!

There is another new option, that allows to limit cbw operation by some timeout.

So, for example, using cbw-timeout=60 and on-cbw-error=break-snapshot you can be sure that guest write will not stuck for more than 60 seconds.

Based-on: <[email protected]>
([PATCH 0/3] block: copy-before-write: on-cbw-error behavior)

Vladimir Sementsov-Ogievskiy (4):
util: add qemu-co-timeout
block/block-copy: block_copy(): add timeout_ns parameter block/copy-before-write: implement cbw-timeout option
iotests: copy-before-write: add cases for cbw-timeout option

 qapi/block-core.json                          |  5 +-
 include/block/block-copy.h                    |  2 +-
 include/qemu/coroutine.h                      | 13 +++
 block/block-copy.c                            | 28 ++++--
 block/copy-before-write.c                     |  6 +-
 util/qemu-co-timeout.c                        | 89 +++++++++++++++++++
 tests/qemu-iotests/tests/copy-before-write    | 78 ++++++++++++++++
 .../qemu-iotests/tests/copy-before-write.out  |  4 +-
 util/meson.build                              |  1 +
 9 files changed, 213 insertions(+), 13 deletions(-)
 create mode 100644 util/qemu-co-timeout.c
Signature · 1 line
2.31.1