Linux virtualization list
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Alberto Faria <afaria@redhat.com>
Cc: linux-block@vger.kernel.org, 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>,
	"Xuan Zhuo" <xuanzhuo@linux.alibaba.com>,
	"Jason Wang" <jasowangio@gmail.com>
Subject: Re: [PATCH v3 2/2] vdpa_sim_blk: add support for FUA writes
Date: Wed, 25 Nov 2026 11:44:01 -0500	[thread overview]
Message-ID: <20261125164401.GD10456@shajnocz.csb> (raw)
In-Reply-To: <20261125083947.263216-3-afaria@redhat.com>

On Wed, Nov 25, 2026 at 08:39:47AM +0000, Alberto Faria wrote:
> diff --git a/drivers/vdpa/vdpa_sim/vdpa_sim.h b/drivers/vdpa/vdpa_sim/vdpa_sim.h
> index bb137e4797633..70890974b6e56 100644
> --- a/drivers/vdpa/vdpa_sim/vdpa_sim.h
> +++ b/drivers/vdpa/vdpa_sim/vdpa_sim.h
> @@ -45,6 +45,7 @@ struct vdpasim_dev_attr {
>  	u32 nas;
>  
>  	void (*work_fn)(struct vdpasim *vdpasim);
> +	int (*validate_features)(u64 features);

This is okay for now. Possible future changes:
- It may be necessary to split validate_features() into
  validate_device_features() and validate_driver_features(). This is
  because the device can advertise all possible features even though
  drivers may not be allowed to enable all of them simultaneously.
- A struct vdpasim *vdpasim argument will probably be needed for checks
  that depend on the device itself.

Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>


  reply	other threads:[~2026-11-25 16:44 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 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 [this message]
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=20261125164401.GD10456@shajnocz.csb \
    --to=stefanha@redhat.com \
    --cc=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=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox