]> git.baikalelectronics.ru Git - kernel.git/commit
vdpa_sim_blk: add support for VIRTIO_BLK_T_FLUSH
authorStefano Garzarella <sgarzare@redhat.com>
Thu, 11 Aug 2022 08:36:31 +0000 (10:36 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:44:58 +0000 (04:44 -0400)
commitea0cb87936ce8835e23efa8cb4309c689afc2163
tree6dc72a76411c747ece79ba2c1d7a50f7067b4571
parentd9110919018a0f70a1cabceb4aba3c61c9c3141a
vdpa_sim_blk: add support for VIRTIO_BLK_T_FLUSH

The simulator behaves like a ramdisk, so we don't have to do
anything when a VIRTIO_BLK_T_FLUSH request is received, but it
could be useful to test driver behavior.

Let's expose the VIRTIO_BLK_F_FLUSH feature to inform the driver
that we support the flush command.

Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20220811083632.77525-4-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vdpa/vdpa_sim/vdpa_sim_blk.c