All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] virtio-blk: Add support for FUA write requests
@ 2026-10-21  6:22 Alberto Faria
  2026-10-21  6:22 ` [PATCH 1/2] include: Add virtio-blk request flag FUA definitions Alberto Faria
  2026-10-21  6:22 ` [PATCH 2/2] virtio-blk: Add support for FUA write requests Alberto Faria
  0 siblings, 2 replies; 7+ messages in thread
From: Alberto Faria @ 2026-10-21  6:22 UTC (permalink / raw)
  To: qemu-block, qemu-devel
  Cc: Kevin Wolf, Hanna Reitz, Zhao Liu, Paolo Bonzini,
	Michael S. Tsirkin, Stefan Hajnoczi, Cornelia Huck,
	Philippe Mathieu-Daudé, Alberto Faria

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/20251112055113.62207-1-afaria@redhat.com/
[2] https://lore.kernel.org/linux-block/20261021055235.648957-1-afaria@redhat.com/

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(-)

-- 
2.56.0



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-10-28 19:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-21  6:22 [PATCH 0/2] virtio-blk: Add support for FUA write requests Alberto Faria
2026-10-21  6:22 ` [PATCH 1/2] include: Add virtio-blk request flag FUA definitions Alberto Faria
2026-10-21  7:59   ` Cornelia Huck
2026-10-21 12:22     ` Kevin Wolf
2026-10-21 12:37       ` Cornelia Huck
2026-10-21  6:22 ` [PATCH 2/2] virtio-blk: Add support for FUA write requests Alberto Faria
2026-10-28 19:55   ` Stefan Hajnoczi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.