All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alberto Faria <afaria@redhat.com>
To: linux-block@vger.kernel.org
Cc: virtualization@lists.linux.dev,
	"Michael S. Tsirkin" <mst@redhat.com>,
	"Jens Axboe" <axboe@kernel.dk>,
	"Eugenio Pérez" <eperezma@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Stefan Hajnoczi" <stefanha@redhat.com>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"Jason Wang" <jasowangio@gmail.com>,
	"Alberto Faria" <afaria@redhat.com>
Subject: [PATCH v3 0/2] virtio_blk: add FUA write support
Date: Wed, 25 Nov 2026 08:39:45 +0000	[thread overview]
Message-ID: <20261125083947.263216-1-afaria@redhat.com> (raw)

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


             reply	other threads:[~2026-11-25  8:39 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  8:39 Alberto Faria [this message]
2026-11-25  8:39 ` [PATCH v3 1/2] virtio_blk: add fua write support Alberto Faria
2026-11-25  9:07   ` Johannes Thumshirn
2026-11-25  9:16     ` Alberto Faria
2026-11-25 22:03       ` Damien Le Moal
2026-11-25  9:09   ` Damien Le Moal
2026-11-25 16:44   ` Stefan Hajnoczi
2026-11-25  8:39 ` [PATCH v3 2/2] vdpa_sim_blk: add support for FUA writes Alberto Faria
2026-11-25 16:44   ` Stefan Hajnoczi
2026-11-25  8:48 ` [PATCH v3 0/2] virtio_blk: add FUA write support sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261125083947.263216-1-afaria@redhat.com \
    --to=afaria@redhat.com \
    --cc=axboe@kernel.dk \
    --cc=eperezma@redhat.com \
    --cc=jasowangio@gmail.com \
    --cc=linux-block@vger.kernel.org \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=stefanha@redhat.com \
    --cc=virtualization@lists.linux.dev \
    --cc=xuanzhuo@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.