]> git.proxmox.com Git - mirror_qemu.git/commit
vhost-user-blk: add discard/write zeroes features support
authorChangpeng Liu <changpeng.liu@intel.com>
Wed, 16 Jan 2019 05:19:30 +0000 (13:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 5 Feb 2019 15:58:33 +0000 (10:58 -0500)
commitcaa1ee43131c060347b32893abd41fe4865eaa2e
treea6ec75423ca14fb5ad7e2c9b516ec919a6eab9e0
parenta56de056c91f87e1e8569a32f8d3513b5ae1d7ec
vhost-user-blk: add discard/write zeroes features support

Linux commit 1f23816b8 "virtio_blk: add discard and write zeroes support"
added the support in the Guest kernel, while here also enable the features
support with vhost-user-blk driver. Also enable the test example utility
with DISCARD and WRITE ZEROES commands.

Signed-off-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
contrib/vhost-user-blk/vhost-user-blk.c
hw/block/vhost-user-blk.c
include/standard-headers/linux/virtio_blk.h