Skip to content

virtio-blk: Add support for FUA write requests

Alberto Faria qemu-devel 1 version Applied

Status from this message: Thanks, applied to the block branch.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 5 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2include: Add virtio-blk request flag FUA definitionsinclude/standard-headers/linux/virtio_blk.h+11 -23 replies
2/2virtio-blk: Add support for FUA write requestshw/block/virtio-blk.c hw/core/machine.c hw/virtio/virtio-qmp.c +1 more+33 -01 reply

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

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

virtio-blk FUA write support has been introduced to the virtio spec [1], and a kernel patch is under review [2]. This patch enables FUA on the virtio-blk device, so guests can submit FUA writes instead of the slower alternative of a regular write followed by a flush.

A simple randwrite fio workload on a RAM disk (bs=4k, iodepth=1, direct=1, sync=1) shows a throughput improvement of 17.1k IOPS to 27.7k IOPS (+62%).

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

Alberto Faria (2):
include: Add virtio-blk request flag FUA definitions
virtio-blk: Add support for FUA write requests

 hw/block/virtio-blk.c                       | 27 +++++++++++++++++++++
 hw/core/machine.c                           |  1 +
 hw/virtio/virtio-qmp.c                      |  4 +++
 include/hw/virtio/virtio-blk.h              |  1 +
 include/standard-headers/linux/virtio_blk.h | 13 ++++++++--
 5 files changed, 44 insertions(+), 2 deletions(-)
Signature · 1 line
2.56.0