Skip to content

blockdev: support dataplane in QMP 'transaction' command

Stefan Hajnoczi qemu-devel 1 version Applied

Status from this message: Applied to my block-next tree:

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 9 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/4blockdev: update outdated qmp_transaction() commentsblockdev.c+6 -102 replies
2/4blockdev: drop unnecessary DriveBackupState field assignmentblockdev.c+0 -21 reply
3/4blockdev: acquire AioContext in QMP 'transaction' actionsblockdev.c hw/block/dataplane/virtio-blk.c+53 -12 replies
4/4blockdev: check for BLOCK_OP_TYPE_EXTERNAL_SNAPSHOTblockdev.c+4 -03 replies

Reviews trailers per patch

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

PatchMax Reitz
1/4R-b
2/4R-b
3/4R-b
4/4R-b

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] blockdev: support dataplane in QMP 'transaction' command

These patches make the QMP 'transaction' command work with virtio-blk dataplane. Each 'transaction' action must take care to acquire AioContext around BlockDriverState accesses. Once that protection is in place we can unblock the op blockers for these commands.

The meat is in Patch 3.

Patches 1 & 2 are minor cleanups.
Patch 4 protects the external snapshot command (oops, we forgot!).

Stefan Hajnoczi (4):
blockdev: update outdated qmp_transaction() comments
blockdev: drop unnecessary DriveBackupState field assignment
blockdev: acquire AioContext in QMP 'transaction' actions
blockdev: check for BLOCK_OP_TYPE_EXTERNAL_SNAPSHOT

 blockdev.c                      | 74 +++++++++++++++++++++++++++++++++--------
 hw/block/dataplane/virtio-blk.c |  2 ++
 2 files changed, 63 insertions(+), 13 deletions(-)
Signature · 1 line
2.1.0