Skip to content

vdpa_sim_blk: add support for flush, discard, and write-zeroes

Stefano Garzarella lkml virtualization 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 0 repliesNew
  2. v24 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- fixed clang issue reported by kernel test robot <[email protected]>
- used le*_to_cpu() to access virtio_blk_discard_write_zeroes fields

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4vdpa_sim_blk: check if sector is 0 for commands other than read or writedrivers/vdpa/vdpa_sim/vdpa_sim_blk.c+10 -00 replies
2/4vdpa_sim_blk: make vdpasim_blk_check_range usable by other requestsdrivers/vdpa/vdpa_sim/vdpa_sim_blk.c+23 -150 replies
3/4vdpa_sim_blk: add support for VIRTIO_BLK_T_FLUSHdrivers/vdpa/vdpa_sim/vdpa_sim_blk.c+5 -00 replies
4/4vdpa_sim_blk: add support for discard and write-zeroesdrivers/vdpa/vdpa_sim/vdpa_sim_blk.c+73 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/4] vdpa_sim_blk: add support for flush, discard, and write-zeroes

The first 2 patches are in preparation and generalize parts later used by the following patches that add handling of flush, discard, and write-zeroes requests.

v3:
- fixed clang issue reported by kernel test robot <[email protected]>
- used le*_to_cpu() to access virtio_blk_discard_write_zeroes fields

v2: https://lore.kernel.org/virtualization/[email protected]/
v1: https://lore.kernel.org/virtualization/[email protected]/

Tree available here:
https://gitlab.com/sgarzarella/linux.git vdpa-sim-blk-flush-discard-wz

Thanks,
Stefano

Stefano Garzarella (4):
vdpa_sim_blk: check if sector is 0 for commands other than read or
write
vdpa_sim_blk: make vdpasim_blk_check_range usable by other requests
vdpa_sim_blk: add support for VIRTIO_BLK_T_FLUSH
vdpa_sim_blk: add support for discard and write-zeroes

 drivers/vdpa/vdpa_sim/vdpa_sim_blk.c | 127 +++++++++++++++++++++++----
 1 file changed, 111 insertions(+), 16 deletions(-)
Signature · 6 lines
2.37.1

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization