diff options
author | Stefano Garzarella <sgarzare@redhat.com> | 2022-08-11 10:36:32 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-08-11 04:44:58 -0400 |
commit | 4a44a5eda245453ed7bd14239c596262cb53b665 (patch) | |
tree | 709be0e6e91202e07ba66729236949d29ef193f0 /drivers/vdpa/mlx5 | |
parent | 518083d2f5b2e7c91549ac1723923e8ae3d679ca (diff) | |
download | linux-4a44a5eda245453ed7bd14239c596262cb53b665.tar.bz2 |
vdpa_sim_blk: add support for discard and write-zeroes
Expose VIRTIO_BLK_F_DISCARD and VIRTIO_BLK_F_WRITE_ZEROES features
to the drivers and handle VIRTIO_BLK_T_DISCARD and
VIRTIO_BLK_T_WRITE_ZEROES requests checking ranges and flags.
The simulator behaves like a ramdisk, so for VIRTIO_BLK_F_DISCARD
does nothing, while for VIRTIO_BLK_T_WRITE_ZEROES sets to 0 the
specified region.
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-Id: <20220811083632.77525-5-sgarzare@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'drivers/vdpa/mlx5')
0 files changed, 0 insertions, 0 deletions