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-pbonz...@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(+) -- 2.20.1