qemu-e2k/hw/block
Stefano Garzarella 37b06f8d46 virtio-blk: add DISCARD and WRITE_ZEROES features
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 userspace APIs that allow
applications to submit multiple segments in a single call.

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-id: 20190221103314.58500-7-sgarzare@redhat.com
Message-Id: <20190221103314.58500-7-sgarzare@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2019-02-22 09:42:17 +00:00
..
dataplane xen-block: handle resize callback 2019-02-04 11:04:49 +00:00
block.c
cdrom.c
ecc.c
fdc.c
hd-geometry.c
m25p80.c
Makefile.objs xen: remove the legacy 'xen_disk' backend 2019-01-14 13:45:40 +00:00
nand.c
nvme.c nvme: use pci_dev directly in nvme_realize 2019-01-31 00:38:19 +01:00
nvme.h qemu/queue.h: leave head structs anonymous unless necessary 2019-01-11 15:46:55 +01:00
onenand.c
pflash_cfi01.c
pflash_cfi02.c
tc58128.c hw/block/tc58128.c: Don't use load_image() 2018-12-14 13:30:52 +00:00
trace-events xen-block: handle resize callback 2019-02-04 11:04:49 +00:00
vhost-user-blk.c vhost-user-blk: add discard/write zeroes features support 2019-02-05 10:58:33 -05:00
virtio-blk.c virtio-blk: add DISCARD and WRITE_ZEROES features 2019-02-22 09:42:17 +00:00
xen_blkif.h
xen-block.c xen-block: handle resize callback 2019-02-04 11:04:49 +00:00