Skip to content

RFC virtio-blk: Add support for FUA write requests

Alberto Faria qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 RFC Latest4 patches 5 repliesIn review
  2. v1 RFC4 patches 2 repliesSuperseded

Changes in v2 from the cover letter

- Include missing hw/block/virtio-blk.c changes actually implementing VIRTIO_BLK_T_OUT_FUA support.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4include: Add tentative virtio-blk FUA write definitionsinclude/standard-headers/linux/virtio_blk.h+4 -01 reply
2/4virtio-blk: Add VIRTIO_BLK_T_OUT_FUA command supportblock/export/virtio-blk-handler.c hw/block/virtio-blk.c hw/core/machine.c +3 more+88 -231 reply
3/4vhost-user-blk: Add VIRTIO_BLK_T_OUT_FUA command supportblock/export/vhost-user-blk-server.c contrib/vhost-user-blk/vhost-user-blk.c hw/block/vhost-user-blk.c +2 more+74 -31 reply
4/4vduse-blk: Add VIRTIO_BLK_T_OUT_FUA command supportblock/export/vduse-blk.c+2 -12 replies

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchStefan Hajnoczi
1/4R-b
2/4
3/4
4/4R-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 [RFC v2 0/4] virtio-blk: Add support for FUA write requests

There is a proposal to introduce virtio-blk fua write support to the virtio spec [1], and a matching kernel RFC [2]. This series implements the proposal by adding VIRTIO_BLK_{F,T}_OUT_FUA uapi definitions and corresponding virtio-blk, vhost-user-blk, and vduse-blk support.

[1] https://lore.kernel.org/virtio-comment/[email protected]/
[2] https://lore.kernel.org/linux-block/[email protected]/

v2:
- Include missing hw/block/virtio-blk.c changes actually implementing VIRTIO_BLK_T_OUT_FUA support.

Alberto Faria (4):
include: Add tentative virtio-blk FUA write definitions
virtio-blk: Add VIRTIO_BLK_T_OUT_FUA command support
vhost-user-blk: Add VIRTIO_BLK_T_OUT_FUA command support
vduse-blk: Add VIRTIO_BLK_T_OUT_FUA command support

 block/export/vduse-blk.c                    |  3 +-
 block/export/vhost-user-blk-server.c        |  1 +
 block/export/virtio-blk-handler.c           |  7 ++-
 contrib/vhost-user-blk/vhost-user-blk.c     | 16 ++++--
 hw/block/vhost-user-blk.c                   |  3 ++
 hw/block/virtio-blk.c                       | 41 +++++++--------
 hw/core/machine.c                           |  5 +-
 hw/virtio/virtio-qmp.c                      |  2 +
 include/hw/virtio/virtio-blk.h              |  1 +
 include/standard-headers/linux/virtio_blk.h |  4 ++
 tests/qtest/vhost-user-blk-test.c           | 56 +++++++++++++++++++++
 tests/qtest/virtio-blk-test.c               | 56 +++++++++++++++++++++
 12 files changed, 168 insertions(+), 27 deletions(-)
Signature · 1 line
2.49.0