[Qemu-block] [RFC PULL 4/6] virtio-blk: add DISCARD and WRITE_ZEROES features

2019-02-12 Thread Stefan Hajnoczi
From: Stefano Garzarella This patch adds the support of DISCARD and WRITE_ZEROES commands, that have been introduced in the virtio-blk protocol to have better performance when using SSD backend. We support only one segment per request since multiple segments are not widely used and there are no

[Qemu-block] [RFC PULL 4/6] virtio-blk: add DISCARD and WRITE_ZEROES features

2019-02-12 Thread Stefan Hajnoczi
From: Stefano Garzarella This patch adds the support of DISCARD and WRITE_ZEROES commands, that have been introduced in the virtio-blk protocol to have better performance when using SSD backend. We support only one segment per request since multiple segments are not widely used and there are no