Linux virtualization list
 help / color / mirror / Atom feed
* [PATCH v3 0/2] virtio_blk: add FUA write support
@ 2026-11-25  8:39 Alberto Faria
  2026-11-25  8:39 ` [PATCH v3 1/2] virtio_blk: add fua " Alberto Faria
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Alberto Faria @ 2026-11-25  8:39 UTC (permalink / raw)
  To: linux-block
  Cc: virtualization, Michael S. Tsirkin, Jens Axboe,
	Eugenio Pérez, Paolo Bonzini, Stefan Hajnoczi, Xuan Zhuo,
	Jason Wang, Alberto Faria

virtio-blk FUA write support has been added to the virtio spec [1]. This series
implements that by adding the new request flag uapi definitions and
corresponding virtio-blk support. It also enables vdpa_sim_blk to handle fua
writes.

[1] https://lore.kernel.org/virtio-comment/20251112055113.62207-1-afaria@redhat.com/

v2:
- Check for VIRTIO_BLK_F_REQ_FLAGS_OUT_FUA when handling requests with REQ_FUA.
- Don't advertise FUA support on zoned devices.
- Restore BLK_FEAT_FUA in cache_type_store().
- vdpa_sim: Reject VIRTIO_BLK_F_REQ_FLAGS_OUT_FUA without VIRTIO_BLK_F_REQ_FLAGS.

v3:
- (sashiko) virtio_blK: Check for both VIRTIO_BLK_F_REQ_FLAGS and
  VIRTIO_BLK_F_REQ_FLAGS_OUT_FUA when handling REQ_FUA.
- (sashiko) vdpa_sim: Fix possible ERR_PTR(0) return.

Alberto Faria (2):
  virtio_blk: add fua write support
  vdpa_sim_blk: add support for FUA writes

 drivers/block/virtio_blk.c           | 29 ++++++++++++++++++++++++++--
 drivers/vdpa/vdpa_sim/vdpa_sim.c     | 15 +++++++++++++-
 drivers/vdpa/vdpa_sim/vdpa_sim.h     |  1 +
 drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 14 +++++++++++++-
 include/uapi/linux/virtio_blk.h      | 13 +++++++++++--
 5 files changed, 66 insertions(+), 6 deletions(-)

-- 
2.56.1


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

end of thread, other threads:[~2026-11-25  9:17 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-25  8:39 [PATCH v3 0/2] virtio_blk: add FUA write support Alberto Faria
2026-11-25  8:39 ` [PATCH v3 1/2] virtio_blk: add fua " Alberto Faria
2026-11-25  9:07   ` Johannes Thumshirn
2026-11-25  9:16     ` Alberto Faria
2026-11-25  9:09   ` Damien Le Moal
2026-11-25  8:39 ` [PATCH v3 2/2] vdpa_sim_blk: add support for FUA writes Alberto Faria
2026-11-25  8:48 ` [PATCH v3 0/2] virtio_blk: add FUA write support sashiko-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox