mbox series

[RFC,0/2] virtio-blk: add DISCARD and WRITE ZEROES features

Message ID 20190124172323.230296-1-sgarzare@redhat.com (mailing list archive)
Headers show
Series virtio-blk: add DISCARD and WRITE ZEROES features | expand

Message

Stefano Garzarella Jan. 24, 2019, 5:23 p.m. UTC
This series adds the support of DISCARD and WRITE ZEROES commands
and extends the virtio-blk-test to test WRITE_ZEROES command when
the feature is enabled.

RFC because I'm not sure if the "case" conditions that I used in
virtio-blk.c is clean enough.

This series requires the new virtio headers from linux v5.0-rc1
already imported by Paolo:

Based-on: <20190104082731.24967-1-pbonzini@redhat.com>

Thanks,
Stefano

Stefano Garzarella (2):
  virtio-blk: add DISCARD and WRITE ZEROES features
  tests/virtio-blk: add test for WRITE_ZEROES command

 hw/block/virtio-blk.c   | 79 +++++++++++++++++++++++++++++++++++++++++
 tests/virtio-blk-test.c | 63 ++++++++++++++++++++++++++++++++
 2 files changed, 142 insertions(+)