diff options
author | Stefano Garzarella <[email protected]> | 2022-08-11 10:36:32 +0200 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2022-08-11 04:44:58 -0400 |
commit | 4a44a5eda245453ed7bd14239c596262cb53b665 (patch) | |
tree | 709be0e6e91202e07ba66729236949d29ef193f0 /lib/mpi/mpi-cmp.c | |
parent | 518083d2f5b2e7c91549ac1723923e8ae3d679ca (diff) |
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 <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions